-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathassignment.html
More file actions
154 lines (137 loc) · 4.9 KB
/
Copy pathassignment.html
File metadata and controls
154 lines (137 loc) · 4.9 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
<!DOCTYPE html>
<html>
<head>
<title>w3schools-HTML Introduction</title>
</head>
<body>
<div id="header" style="border: solid 1px black;">
<div id="brandicon" style="border-bottom: solid 1px black; padding: 0 10px 0 10px">
<div style="display: inline-block;">
<img id="brand-logo" src="https://upload.wikimedia.org/wikipedia/commons/3/3e/W3Schools_logo.png " style="height: 30px; padding: 6px; " />
</div>
<div style="display: inline-block; position: absolute; padding: 10px; font-size: larger">
THE WORLD'S LARGEST WEBDEVELOPER SITE
</div>
</div>
<div id="nav-bar" style="padding: 10px 0 10px 0; padding: 10px">
<nav>
<style>
#nav-bar a {
font-size: 25px;
color: black;
padding-right: 15px;
}
</style>
<a href="https://www.w3schools.com/html/default.asp "> HTML</a> 
<a href="https://www.w3schools.com/css/default.asp ">CSS</a> 
<a href="https://www.w3schools.com/js/default.asp ">JAVASCRIPT</a> 
<a href="https://www.w3schools.com/python/default.asp ">PYTHON</a>
</nav>
</div>
</div>
<div id=" website- content " style="border-bottom: solid 1px black; border-left: solid 1px black; border-right: solid 1px black; padding: 10px ">
<div id="html-introduction ">
<h1>HTML Introduction</h1>
<p>HTML is the standard markup language for creating Web pages.</p>
<ol>
<li>What is HTML</li>
<li>What is HTML element</li>
<li>Web Browsers</li>
</ol>
</div>
<h2> What Is HTML?</h2>
<ul>
<li>HTML stands for Hyper Text Markup Language</li>
<li>HTML is the standard markup language for creating Web pages.</li>
<li> HTML describes the structure of Web page</li>
<li>HTML consist of series of element</li>
<li>HTML elements tells the browser how to display the content</li>
<li>HTML elements lable pieces of content such as "this is a heading", "this is a paragraph", "this is a link", etc.
</li>
</ul>
<h2>What is an HTML Element?</h2>
<p>An HTML is defined by a start tag, some content, and an end tag:
<br></br>
<span style="color: blue;"> <</span><span style="color: maroon;">tagname</span><span style="color: blue;">></span>Content goes here...<span style="color: blue;"><</span><span style="color: maroon;">/tagname</span><span style="color: blue;">></span>
</p>
<small>The HTML element is everywhere from the start tag to the end tag:</small>
<br><br>
<span style="color: blue;"> <</span><span style="color: maroon;">h1</span><span style="color: blue;">></span>My First Heading<span style="color: blue;"><</span><span style="color: maroon;">/h1</span><span style="color: blue;">></span>
</br></br>
<span style="color: blue;"> <</span><span style="color: maroon;">p</span><span style="color: blue;">></span>My first paragraph.<span style="color: blue;"><</span><span style="color: maroon;">/p</span><span style="color: blue;">></span>
<br>
</br>
<table id="tag_table">
<style>
table#tag_table {
font-family: arial, sans-serif;
border-collapse:collapse;
width:100%;
border:1px solid #ddd;
}
#tag_table td, th {
border-top: 1px solid #ddd;
border-bottom: 1px solid #ddd;
text-align: center;
padding: 8px;
}
#tag_table tr:nth-child(even) {
background-color: #dddddd;
}
</style>
<tr>
<th>Start tag</th>
<th>Element Content</th>
<th>End tag</th>
</tr>
<tr>
<td><h1></td>
<td>My First Heading</td>
<td></h1></td>
</tr>
<tr>
<td><p></td>
<td>My First Paragraph</td>
<td></p></td>
</tr>
<tr>
<td><br></td>
<td>none</td>
<td>none</td>
</tr>
</table>
<h2>Web Browsers</h2>
<p>The purpose of a web browser (Chrome, Edge, Firefox, Safari) is to read HTML documents and display them correctly.</p>
<p>A browser does not display the HTML tags, but uses them to determine how to display the document:
</p>
<p style="text-align: center ">
<img src=https://www.w3schools.com/html/img_chrome.png>
</p>
<h2>Submit a Review</h2>
<form action="/action_page.php">
<label for="fname">First name:</label>
<input type="text" id="fname" name="fname" value="John">
<input type="radio" id="male" name="gender" value="male">
<label for="male">Male</label>
<input type="radio" id="female" name="gender" value="female">
<label for="female">Female</label>
<input type="radio" id="other" name="gender" value="other">
<label for="other">Other</label>
<br></br>
<div id="addCommentContainer">
<p>rate is
<select>
<option>very good<option>
<option>good<option>
<option>bad<option>
<option>very bad<option>
</select> </p>
<form id="addCommentForm" method="post" action="xyz" >
<div>
<textarea name="body" id="body" cols="60" rows="5">Please add a review.</textarea>
<br>
<input type="submit" id="submit" value="Submit" />
</br>
</div>
</body>
</html>