0% found this document useful (0 votes)
5 views2 pages

HTML Document Structure and Elements

The document describes various HTML tags for structuring and formatting content, including the <title> tag for page titles, headings tags <h1> through <h3>, paragraph tags <p>, table tags, form tags with different input types like text, radio buttons, checkboxes, and the <font> tag for controlling text size and font face. It provides examples of code for each tag.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views2 pages

HTML Document Structure and Elements

The document describes various HTML tags for structuring and formatting content, including the <title> tag for page titles, headings tags <h1> through <h3>, paragraph tags <p>, table tags, form tags with different input types like text, radio buttons, checkboxes, and the <font> tag for controlling text size and font face. It provides examples of code for each tag.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd

HTML 

<title> Tag

<html>
<head>
<title>Title of the document</title>
</head>

<body>
The content of the document......
</body>

</html>

heading

<h1>This is a heading</h1>
<h2>This is a heading</h2>
<h3>This is a heading</h3>

Paragraph

<p>This is a paragraph</p>
<p>This is another paragraph</p>

Table

<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>

Headings in a Table
<table border="1">
<tr>
<th>Heading</th>
<th>Another Heading</th>
</tr>
<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>

Input
<form>
First name:
<input type="text" name="firstname" />
<br />
Last name:
<input type="text" name="lastname" />
</form>

Radio Buttons
<form>
<input type="radio" name="sex" value="male" /> Male
<br />
<input type="radio" name="sex" value="female" /> Female
</form>

Checkboxes
<form>
I have a bike:
<input type="checkbox" name="vehicle" value="Bike" />
<br />
I have a car:
<input type="checkbox" name="vehicle" value="Car" />
<br />
I have an airplane:
<input type="checkbox" name="vehicle" value="Airplane" />
</form>

The HTML <font> Tag


<p>
<font size="2" face="Verdana">
This is a paragraph.
</font>
</p>

<p>
<font size="3" face="Times">
This is another paragraph.
</font>
</p>

You might also like