-
Notifications
You must be signed in to change notification settings - Fork 1
/
Introduction.html
73 lines (64 loc) · 2.97 KB
/
Introduction.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Intro to HTML</title>
<link rel="stylesheet" href="Files/CSS/General.css">
<link rel="stylesheet" href="Files/CSS/Introduction.css">
</head>
<body>
<a href="MainPage.html">
<button type="button" class="Home-Button" !importent>Home</button>
</a>
<p id="first-text">
A Simple HTML Document
<span class="DIY-br"></span>
</p>
<div class="Code-Example">
<code>
<pre>
<<span style="color: #964b00;">!DOCTYPE</span> <span style="color:rgb(200, 0, 0)">html</span>>
<<span style="color:#964b00">html</span>>
<<span style="color:#964b00">head</span>>
<<span style="color:#964b00">title</span>>Page Title<<span style="color:#964b00">/title</span>>
<<span style="color:#964b00">/head</span>>
<<span style="color:#964b00">body</span>>
<<span style="color:#964b00">h1</span>>My First Heading<<span style="color:#964b00">/h1</span>>
<<span style="color:#964b00">p</span>>My first paragraph.<<span style="color:#964b00">/p</span>>
<<span style="color:#964b00">/body</span>>
<<span style="color:#964b00">/html</span>>
</pre>
</code>
</div>
<div style="display: block;">
<a href="Files/Misc/ExampleSite.html" style="display: inline-block;">
<button type="button">Click to run the site!</button>
</a>
</div>
<span class="DIY-br"></span>
<p>
<ul>
<li>The <code class="w3-codespan"><!DOCTYPE html></code> declaration defines
that this document is an HTML5 document</li>
<li>The <code class="w3-codespan"><html></code> element is the root element of an HTML
page</li>
<li>The <code class="w3-codespan"><head></code> element contains meta information about the
HTML page</li>
<li>The <code class="w3-codespan"><title></code> element specifies a title for the
HTML page (which is shown in the browser's title bar or in the page's tab)</li>
<li>The <code class="w3-codespan"><body></code> element defines the
document's body, and is a container for all the visible contents, such as
headings, paragraphs, images, hyperlinks, tables, lists, etc.</li>
<li>The <code class="w3-codespan"><h1></code> element defines a large heading</li>
<li>The <code class="w3-codespan"><p></code> element defines a paragraph</li>
</ul>
</p>
<span class="DIY-br"></span>
<p>
Below is a visualization of an HTML page structure:
</p>
<img src="Files/Misc/Page-structure.png" alt="img"/>
</body>
</html>