-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathhtml_nested_elements.html
More file actions
58 lines (48 loc) · 1.67 KB
/
html_nested_elements.html
File metadata and controls
58 lines (48 loc) · 1.67 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
58
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<!-- Set the title of your site here -->
<title>HTML Patterns</title>
<meta name="author" content="mrmrs" />
<meta name="description" content="Common HTML patterns" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
</head>
<body>
<header>
<h1>Nested HTML Elements</h1>
<h2>An example of nested HTML elements</h2>
</header>
<!--
HTML - Common patterns
Add your own modules and components for easy theme styling,
copy the partials for building a prototype. Or just read
the comments to familiarize yourself with HTML.
-->
<header>
<a href="" title="Site title"><h1>Site title</h1></a>
<nav>
<ul>
<li><a href="#" title="Home">Home</a></li>
<li><a href="#" title="About">About</a></li>
<li><a href="#" title="Sign Up">Sign Up</a></li>
<li><a href="#" title="Contact">Contact</a></li>
<li><a href="#" title="Careers">Careers</a></li>
</ul>
</nav>
</header>
<section>
<div class="nested-example">
<p>
This is an example of a nested paragraph.
<p>This is a nested paragraph within the main paragraph.</p>
<span>This span is nested inside the paragraph.</span>
<em>This emphasized text is also nested.</em>
<strong>And here's some strong text, nested as well.</strong>
</p>
<p>This is a <b>bold</b> word and this is an <em>emphasized</em> word.</p>"
</div>
</section>
</body>
</html>