-
Notifications
You must be signed in to change notification settings - Fork 1
/
html1-tags.html
188 lines (162 loc) · 5.84 KB
/
html1-tags.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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
body {
margin: 0;
font-family: Arial, sans-serif;
}
.container {
width: 80%;
margin: 0 auto;
}
header {
background-color: #333;
color: #fff;
padding: 10px;
text-align: center;
}
.tags {
margin-top: 20px;
}
.event {
margin-bottom: 30px;
border: 1px solid #ddd;
padding: 20px;
text-align: center;
}
h2 {
color: #333;
}
p {
color: #666;
}
body {
overflow-y: scroll;
height: 100vh;
}
.submiti{
font-size: 18px;
background: black;
color: #fff;
text-decoration: none;
border: none;
padding: 3% 25px;
transition: 0.5s;
position:absolute;
}
.submiti:hover{
background: #000;
border: 1px solid #4070f4;
}
.try-button {
display: inline-block;
padding: 10px 20px;
background-color: green;
color: white;
text-decoration: none;
border-radius: 5px;
font-weight: bold;
}
.try-button:hover {
background-color: darkgreen;
}
.headings{
font-size: 5rem;
text-align: center;
color: darkgreen;
}
@media only screen and (max-width: 768px) {
/* Adjusted styles for smaller screens */
/* Example: Change the font size */
body {
font-size: 14px;
}
.headings{
font-size: 2rem;
}
/* Example: Hide a specific element */
.sidebar {
display: none;
}
}
</style>
<title>Html Tags</title>
</head>
<body>
<div class="container">
<a href="header.html" class="submiti">Home</a>
<header>
<h1>Html Tags</h1>
</header>
<section class="tags">
<div class="event">
<h1 class="headings">Starter Tags</h1>
<section id="HTML">
<h2><html></h2>
<p>The <html> element is the root element that wraps the entire HTML document. It is the container for all other HTML elements on the page.</p>
</section>
<section id="head">
<h2><head></h2>
<p>The <head> element contains metadata about the document, such as the title and linked stylesheets. Metadata provides information about the document but is not displayed on the web page itself.</p>
</section>
<section id="title">
<h2><title></h2>
<p>The <title> tag defines the title of the document, which is text-only, and it is shown in the browser's title bar or in the page's tab. It is always added within the <b><head> element</b>.</p>
</section>
<section id="style">
<h2><style></h2>
<p>The <style> element is used to define style information for a document <b>(CSS)</b>.</p>
</section>
<section id="body">
<h2><body></h2>
<p>The <body> element contains all the contents of an HTML document, such as headings, paragraphs, images, hyperlinks, tables, lists, etc.</p>
</section>
<a href=" " class="try-button">TRY ALL TAGS YOURSELF >></a>
</div>
<div class="event">
<h1 class="headings">Something</h1>
<section id="h1">
<h2><h1></h2>
<p>The <h1> element represents the highest level of heading and is typically used for the main title or heading of a page. It has the highest visual importance.</p>
</section>
<section id="p">
<h2><p></h2>
<p>The <p> element defines a paragraph of text. It is a block-level element that separates content into distinct paragraphs.</p>
</section>
<section id="a">
<h2><a></h2>
<p>The <a> element or <b>Anchor Tag</b> is used to create hyperlinks to other web pages or resources. It allows users to navigate to different parts of a website or external websites.</p>
</section>
<section id="img">
<h2><img></h2>
<p>The <img> element is used to embed images on a web page. It requires the "src" attribute to specify the image source.</p>
</section>
<a href=" " class="try-button">TRY ALL TAGS YOURSELF >></a>
</div>
<div class="event">
<h1 class="headings">Something</h1>
<section id="h1">
<h2><h1></h2>
<p>The <h1> element represents the highest level of heading and is typically used for the main title or heading of a page. It has the highest visual importance.</p>
</section>
<section id="p">
<h2><p></h2>
<p>The <p> element defines a paragraph of text. It is a block-level element that separates content into distinct paragraphs.</p>
</section>
<section id="a">
<h2><a></h2>
<p>The <a> element or <b>Anchor Tag</b> is used to create hyperlinks to other web pages or resources. It allows users to navigate to different parts of a website or external websites.</p>
</section>
<section id="img">
<h2><img></h2>
<p>The <img> element is used to embed images on a web page. It requires the "src" attribute to specify the image source.</p>
</section>
<a href=" " class="try-button">TRY ALL TAGS YOURSELF >></a>
</div>
</section>
</div>
</body>
</html>