Professional Documents
Culture Documents
Alvin C. Mibalo
Alvin C. Mibalo
Alvin C. Mibalo
</body>
</html>
* The start tag is often called the opening tag. The end
tag is often called the closing tag.
<body>
<p>This is my first paragraph.</p>
</body>
</html>
Example
<p>This is a paragraph</p>
<hr />
<p>This is a paragraph</p>
<hr />
<p>This is a paragraph</p>
<p>
<font size="3" face="verdana" color="blue">
This paragraph is in Verdana, size 3, and in blue text color.
</font>
</p>
Example
<html>
<body style="background-color:yellow;">
<h2 style="background-color:red;">This is a heading</h2>
<p style="background-color:green;">This is a
paragraph.</p>
</body>
</html>
Source: www.w3schools.com
24 04/17/2023
Deprecated Tags and Attributes
These tags and attributes should be avoided:
Tags Description
<center> Deprecated. Defines centered content
<font> and <basefont> Deprecated. Defines HTML fonts
<s> and <strike> Deprecated. Defines strikethrough text
<u> Deprecated. Defines underlined text
Attributes Description
Deprecated. Defines the alignment of
align
text
Deprecated. Defines the background
bgcolor
color
color Deprecated. Defines the text color
Example
<a href="http://www.w3schools.com/">Visit
W3Schools</a>
Example
A named anchor inside an HTML document:
<a name="tips">Useful Tips Section</a>
Create a link to the "Useful Tips Section" inside the same document:
<a href="#tips">Visit the Useful Tips Section</a>
Or, create a link to the "Useful Tips Section" from another page:
<a href="http://www.w3schools.com/html_links.htm#tips">
Visit the Useful Tips Section</a>
Table Example
<table border="1">
<tr>
<td>row 1, cell 1</td>
<td>row 1, cell 2</td>
</tr>
<tr>
<td>row 2, cell 1</td>
<td>row 2, cell 2</td>
</tr>
</table>
<ul>
<li>Coffee</li>
<li>Milk</li>
</ul>
<ol>
<li>Coffee</li>
<li>Milk</li>
</ol>
Last name:
<form>
Password: <input type="password" name="pwd" />
</form>
<form>
<input type="radio" name="sex" value="male" />
Male<br />
<input type="radio" name="sex" value="female" />
Female
</form>
<form>
<input type="checkbox" name="vehicle"
value="Bike" /> I have a bike<br />
<input type="checkbox" name="vehicle"
value="Car" /> I have a car
</form>
<frameset cols="25%,75%">
<frame src="frame_a.htm" />
<frame src="frame_b.htm" />
</frameset>