-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontainers.html
More file actions
258 lines (253 loc) · 11 KB
/
Copy pathcontainers.html
File metadata and controls
258 lines (253 loc) · 11 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
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
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset='utf-8'>
<meta http-equiv='X-UA-Compatible' content='IE=edge'>
<title>HTML CONTAINERS</title>
<link rel="icon" href="assets/html5.png" type="image/x-icon">
<meta name='viewport' content='width=device-width, initial-scale=1'>
<style>
html{
font-family: Verdana, Geneva, Tahoma, sans-serif;
}
table, th, td {
border: 1px solid black;
text-align: LEFT;
border-collapse: collapse;
margin: 5% 15%;
padding: 5px;
font-size: 1.2rem;
}
.center {
margin-left: auto;
margin-right: auto;
}
.title{
font-size: 2rem;
text-align: center;
}
.myDiv {
background-color: peachpuff;
padding: 5px;
border-radius: 2%;
border: 5px outset skyblue;
text-align: center;
}
.name{
font-weight: bold;
font-size: 1.3rem;
}
button{
margin: 0% 49%;
}
</style>
</head>
<body>
<h1 class="title">HTML CONTAINERS</h1>
<table>
<tr>
<td class="important">
<p class="name">BLOCKQUOTE</p>
<code>
<blockquote cite="http://www.worldwildlife.org/who/index.html">
For 50 years, WWF has been protecting the future of nature. The world's leading conservation organization, WWF works in 100 countries and is supported by 1.2 million members in the United States and close to 5 million globally.
</blockquote>
</code>
</td>
<td>
<blockquote cite="http://www.worldw ildlife.org/who/index.html">
For 50 years, WWF has been protecting the future of nature. The world's leading conservation organization, WWF works in 100 countries and is supported by 1.2 million members in the United States and close to 5 million globally.
</blockquote>
</td>
</tr>
<tr>
<td class="important">
<p class="name">DIV</p>
<code>
<div class="myDiv"> <br>
<h2>This is a heading in a div element</h2><br>
<p>This is some text in a div element.</p><br>
</div>
</code>
</td>
<td>
<div class="myDiv">
<h2>This is a heading in a div element</h2>
<p>This is some text in a div element.</p>
</div>
</td>
</tr>
<tr>
<td class="important">
<p class="name">AREA <br>
The <area> tag defines an area inside an image map (an image map is an image with clickable areas).
<br><b><area></b> elements are always nested inside a <map> tag.
<br><b>Note:</b> The usemap attribute in <img> is associated with the <map> element's name attribute, and creates a relationship between the image and the map.
</p>
</td>
<td>
<img src="assets/grogu.jpg" alt="GroguAndMug" usemap="#mug" width="300px" height="300px">
<map name="mug">
<area shape="rect" coords="114, 91, 157, 115" alt="BabyYoda" target="_blank" href="https://www.dynos.es/figura-diamond-collection-star-wars-the-mandalorian-the-child-con-sopa-resina-20-cm-milestones-12-s__DYD0000018473">
</map>
</td>
</tr>
<tr>
<td class="important">
<p class="name">SECTION</p>
<code>
<b>The <section> tag defines a section in a document.</b>
</code>
<code>
<section>
<h2>WWF History</h2>
<p>The World Wide Fund for Nature (WWF) is an international organization working on issues regarding the conservation, research and restoration of the environment, formerly named the World Wildlife Fund. WWF was founded in 1961.</p>
</section>
</code>
</td>
<td>
<section>
<h2>WWF History</h2>
<p>The World Wide Fund for Nature (WWF) is an international organization working on issues regarding the conservation, research and restoration of the environment, formerly named the World Wildlife Fund. WWF was founded in 1961.</p>
</section>
</td>
</tr>
<tr>
<td class="important">
<p class="name">ASIDE</p>
<p>
<code>
The <b><aside></b> tag defines some content aside from the content it is placed in.
<br>
The aside content should be indirectly related to the surrounding content.
<br>
Tip: The <b><aside></b> content is often placed as a sidebar in a document.
<br>
Note: The <b><aside></b> element does not render as anything special in a browser. However, you can use CSS to style the <b><aside></b> element (see example below).
</code>
</p>
</td>
<td>
<p>My family and I visited The Epcot center this summer. The weather was nice, and Epcot was amazing! I had a great summer together with my family!</p>
<aside>
<h4>Epcot Center</h4>
<p>Epcot is a theme park at Walt Disney World Resort featuring exciting attractions, international pavilions, award-winning fireworks and seasonal special events.</p>
</aside>
</td>
</tr>
<tr>
<td class="important">
<p class="name">PARAGRAPHS</p>
<p>
<code>
The HTML <b><p></b> element defines a paragraph.
A paragraph always starts on a new line, and browsers automatically add some white space (a margin) before and after a paragraph.
</code>
</p>
</td>
<td>
<p>This is a paragraph.</p>
<p>This is another paragraph.</p>
</td>
</tr>
<tr>
<td class="important">
<p class="name">ARTICLE</p> <!--With a Header element-->
<p>
The <b><article></b> tag specifies independent, self-contained content.
An article should make sense on its own and it should be possible to distribute it independently from the rest of the site.
</p>
<code>
<b><article></b><br>
<header>
<h1>A heading here</h1>
<p>Posted by John Doe</p>
<p>Some additional information here</p>
</header>
<p>Lorem Ipsum dolor set amet....</p><br>
<b></article></b>
</code>
</td>
<td>
<article>
<header>
<h1>A heading here</h1>
<p>Posted by John Doe</p>
<p>Some additional information here</p>
</header>
<p>Lorem Ipsum dolor set amet....</p>
</article>
</td>
</tr>
<tr>
<td class="important">
<p class="name">NAV</p>
<code>
<b><nav></b>
<a href="/html/">HTML</a> |<br>
<a href="/css/">CSS</a> |<br>
<a href="/js/">JavaScript</a> |<br>
<a href="/python/">Python</a><br>
<b></nav></b>
</code>
</td>
<td>
<nav>
<a href="/html/">HTML</a> |
<a href="/css/">CSS</a> |
<a href="/js/">JavaScript</a> |
<a href="/python/">Python</a>
</nav>
</td>
</tr>
<tr>
<td class="important">
<P class="name">FOOTER</P>
<p>
</p>
The <footer> tag defines a footer for a document or section.
A <footer> element typically contains:
<ul>
<li>authorship information</li>
<li>copyright information</li>
<li>contact information</li>
<li>sitemap</li>
<li>back to top links</li>
<li>related documents</li>
</ul>
</td>
<td>
<footer>
<p>Author: Hege Refsnes</p>
<p><a href="mailto:hege@example.com">hege@example.com</a></p>
</footer>
</td>
</tr>
<tr>
<td class="important">
<P class="name">TEMPLATE</P>
<p>
The <b><template></b> tag is used as a container to hold some HTML content hidden from the user when the page loads.
The content inside <b><template></b> can be rendered later with a JavaScript.
You can use the <b><template></b> tag if you have some HTML code you want to use over and over again, but not until you ask for it. To do this without the <b><template></b> tag, you have to create the HTML code with JavaScript to prevent the browser from rendering the code.
</p>
</td>
<td>
<button onclick="showContent()">Show hidden content</button>
<script>
function showContent() {
alert('Hello, how are you?')
}
</script>
</td>
</tr>
</table>
<a href="index.html">
<button>BACK</button>
</a>
<!--
< = <
> = >
-->
</body>
</html>