This work is produced by Johan Leitet for the course Introduction to Web Programming (1DV525) at Linnaeus University.
All content in this work excluding photographs, icons, picture of course litterature and Linnaeus University logotype and symbol, is licensied under a
Creative Commons Attribution 4.0 International License.
If you change the content do not use the photographs, icons, picture of the course literature or Linnaeus University logotype and symbol in your new work!
At all times you must give credit to: ”Linnaeus university – Introduction to Web Programming (1DV022)” with the link https://coursepress.lnu.se/kurs/introduction-to-web-programming/ and to the Creative Common-license above.
TCP/IP model | ||
---|---|---|
IP | Internet layer | |
TCP | Transport layer | |
http (1.1 / 2) | Application layer | |
TLS / SSL | Application layer | https |
WebSocket | Application layer |
Seperation of concerns (SoC)
![]() |
.html | Structure |
![]() |
.css | Presentation |
![]() |
.js | Behavior |
<!doctype html>
<html lang="sv">
<head>
<meta charset="utf-8" />
<title></title>
</head>
<body>
</body>
</html>
<!doctype html>
This is some <em class="more">HTML</em> in a document
Tag
<em></em>
<em> <!-- Start tag -->
</em> <!-- End tag -->
Element
<em class="more">HTML</em>
Attribute
class="more"
Attribute name
class
Attribute value
more
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title></title>
</head>
<body>
</body>
</html>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title></title>
</head>
<body>
</body>
</html>
Title
Meta charset
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title></title>
</head>
<body>
</body>
</html>
The content of the webpage
Block elements | Inline elements |
---|---|
div,p,h1-h6 | img |
<body>
<header></header>
<nav></nav>
<main>
<article></article>
<article></article>
<article></article>
</main>
<aside>
<section></section>
<section></section>
</aside>
</body>
Block elements | Inline elements |
---|---|
div | img |
p | a |
h1-h6 | em, strong |
ul, ol, li | b,i |
header, hgroup | ... |
footer | |
main, aside, nav | |
section, article | |
details, menu | |
... |
A URL (Uniform Resource Locator) is a webpage address on internet.
https://1dv525.github.io/xx222yy-examination-1/
••<div>
••••<ul>
••••••<li>First in list</li>
••••••<li>Second in list</li>
••••</ul>
••••<p>
••••••This is a paragraph of text with something <em>important</em>
••••</p>
••••<p> Another paragraph of text...</p>
••</div>
-><div>
->-><ul>
->->-><li>First in list</li>
->->-><li>Second in list</li>
->-></ul>
->-><p>
->->->This is a paragraph of text with something <em>important</em>
->-></p>
->-><p> Another paragraph of text...</p>
-></div>
<!-- This is a comment in HTML. It can be
multiline. Remember! Anyone can read this
comment!!! -->