-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHTMLlayoutelements
More file actions
57 lines (48 loc) · 1.51 KB
/
HTMLlayoutelements
File metadata and controls
57 lines (48 loc) · 1.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<title>HTML BASICS</title>
<head>
<body>
<!-- header element. Opening closing tag. defines the heading of a webpage or a section -->
<!-- contains logo or text -->
<!-- can put what ever you want but needs to be relative -->
<!-- can be used mutiple times -->
<!-- no footer or address element -->
<header>
<h1>This is the header of a new section</h1>
</header>
<!-- next element is the nav element navigation bar -->
<!-- can add <a href links> -->
<!-- anything that can give you navigation -->
<nav>
<a href="/">Home</a>
<a href="/about"></a>
<a href="/cool"></a>
</nav>
<!-- the next element is a section element -->
<!-- break up logical parts of a website with parts that pertain to each other -->
<section>
<h2>About</h2>
</section>
<section>
<h2>Cool Stuff</h2>
</section>
<!-- Next element is an article which is good for form or a blog post. -->
<!-- you can use a h1 only if you have not used one before otherwise you will probably use a h2 tag-->
<article>
<h2>My article titel</h2>
</article>
<!-- Footer is the next element using opening closing tags -->
<!-- contact info, social meadia info, copyright, any legal information -->
<!-- contain information and links -->
<footer>
<a href="https://www.facebook.com">Facebook</a>
<div>Copy right info</div>
<!-- Last element is the address element -->
<address>
Some cool address of some fancy place
</address>
</footer>
</body>
</html>