-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
102 lines (85 loc) · 2.4 KB
/
index.html
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>HTML/CSS Fundamentals</title>
<!-- This is a link tag for external CSS -->
<link rel="stylesheet" href="/styles.css" />
<!-- This is a style tag for internal CSS, for styling specific elements directly in this file -->
<style>
/* CSS for different heading levels */
h1 {
color: red;
}
h2 {
color: blue;
}
h3 {
color: green;
}
h4 {
color: yellow;
}
h5 {
color: orange;
}
h6 {
color: purple;
}
</style>
</head>
<body>
<!-- This is a comment in HTML -->
<!-- This is a main heading in HTML -->
<h1>Heading</h1>
<!-- Inline CSS example that overrides other styles -->
<h2 style="color: pink">Heading</h2>
<!-- Other heading levels -->
<h3>Heading</h3>
<h4>Heading</h4>
<h5>Heading</h5>
<h6>Heading</h6>
<!-- Paragraph tag with a class for styling -->
<p class="paragraph">This is a paragraph.</p>
<!-- Hyperlink to another website -->
<a href="https://www.google.com">Google</a>
<!-- Line break for spacing -->
<br />
<!-- Image tag with a source and attribute alt as alternative text for accessibility -->
<img
src="images/image.webp"
alt="Placeholder"
/>
<!-- Line break for spacing -->
<br />
<!-- Button element for user interaction -->
<button>Click Me</button>
<!-- Semantic HTML elements for structure and accessibility -->
<header>
<!-- Content for the header, typically contains logo, navigation, etc. -->
</header>
<nav>
<!-- Navigation links go here -->
</nav>
<main>
<!-- Main content of the page goes here -->
</main>
<section>
<!-- A section of related content -->
</section>
<article>
<!-- An independent piece of content, such as a blog post -->
</article>
<aside>
<!-- Sidebar content, often used for advertisements or related links -->
</aside>
<footer>
<!-- Footer content, like copyright info and social media links -->
</footer>
<!-- Div tag for grouping and styling content, often used as containers -->
<div id="container">
<!-- Content inside the div goes here -->
</div>
</body>
</html>