-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathchapter1.html
More file actions
92 lines (81 loc) · 3.62 KB
/
chapter1.html
File metadata and controls
92 lines (81 loc) · 3.62 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Chapter 1: GETTING TO KNOW HTML</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<h2 class="chapter-header">Chapter 1: GETTING TO KNOW HTML</h2>
<div class="tag-section">
<h3><Tag> </h3>
<p class="tag-description">An HTML element typically has three portions<br>1. Opening tag, <br>2. Content <br>3. Closing tag</p>
</div>
<div class="tag-section">
<h3><!DOCTYPE> Declaration</h3>
<p class="tag-description">The <!DOCTYPE> declaration defines the document type and version of HTML.</p><p>This tells the browser that this is an HTML5 document.</p>
<div class="tag-demo">
<div class="head-demo">
<p><!DOCTYPE html></p>
</div>
</div>
</div>
<div class="tag-section">
<h3><html> Tag</h3>
<p class="tag-description">The <html> tag represents the root of an HTML document. It is the container for all other HTML elements.</p>
<div class="tag-demo">
<div class="head-demo">
<p> <html></html> </p>
</div>
</div>
</div>
<div class="tag-section">
<h3><head> Tag</h3>
<p class="tag-description">The <head> tag contains meta-information about the HTML document, such as its title, scripts, and styles.</p>
<div class="tag-demo">
<div class="head-demo">
<p> <head></head> </p>
</div>
</div>
</div>
<div class="tag-section">
<h3><body> Tag</h3>
<p class="tag-description">The <body> tag contains the visible content of the HTML document.All the content you're reading right now is inside the <body> tag.</p>
<div class="tag-demo">
<div class="head-demo">
<p><body></body></p>
</div>
</div>
</div>
<div class="tag-section">
<h3><title> Tag</h3>
<p class="tag-description">The <title> tag defines the title of the document, shown in the browser's title bar or tab.The browser tab has the title of this page: "Chapter 1: Basic HTML Structure".</p>
<div class="tag-demo">
<div class="head-demo">
<p><title></title></p>
</div>
</div>
</div>
<div class="tag-section">
<h3><meta> Tag</h3>
<p class="tag-description">The <meta> tag provides metadata about the HTML document, such as character set, viewport settings, and descriptions.This page uses <meta charset="UTF-8"> to specify character encoding and <meta name="viewport"> for responsive design.</p>
<div class="tag-demo">
<div class="head-demo">
<p><meta charset="UTF-8"/></p>
</div>
</div>
</div>
<div class="tag-section">
<h3><style> Tag</h3>
<p class="tag-description">The <style> tag is used to define CSS styles for the HTML document. We can use inline, internal and external css.</p>
<div class="tag-demo">
<div class="head-demo">
<p>For inline css: "style" Attribute</p>
<p> For internal css: <style> <style></p>
<p>For external css: <link rel="stylesheet" href="style.css"> </p>
</div>
</div>
</div>
</body>
</html>