2 HTML
2 HTML
document. All other tags must fall between the html tags.
• <head> </head>
• The header contains information about the document that will not appear on the actual page, such as
the
title of the document, the author etc.
• <title> </title>
• The title tag defines the title that will appear in the title bar of your web browser. The title must
between
appear the head tags.
• <body> </body>
• The body tags contain all the information and other visible content on the page. All your images, links
and plain text must go between the <body> and </body>
tags.
HTML PROGRAM
HOW TO SAVE A HTML FILE?
• Open Notepad
• Type the html program
• Click File > save
• Select Desktop, type the file name as
myfile.html
and select All files in Save as type box and
Click on save.
• Your HTML file will be save to desktop
INTERFACE OF HTML
• Double click on the file you saved and your webpage is
ready for display.
HTML LIST
An HTML list is a record of related information used to display the
data or any information on web pages in the ordered or unordered
form.
There are three types of List in HTML.
Order list
Unorder list
Description List
Order List
HTML Ordered List is created by the HTML <ol> tag, to display elements in an ordered
form, either numerical or alphabetical. Within the <ol> tag, list items <li> are used to
define the items in sequential order.
Example:
Unorder list
An HTML Unordered List (<ul>) displays elements in a bulleted format. List items
within an unordered list are defined using the <li> tag. The <ul> tag requires both
opening and closing tags.
Example:
Description List
HTML Description List <dl> organizes terms and descriptions, utilizing <dt> and <dd>
tags within <dl>. This structured format clarifies content presentation, enhancing
comprehension and readability for diverse information on web pages.
Example:
HTML Headings Tages
HTML headings, from <h1> to <h6>, indicate content hierarchy and
importance. Search engines use them for indexing. Users navigate
by headings. Employ <h1> for main titles, <h2> for subsections,
and progressively lower levels for less important content to
maintain structure and readability.
Output:
HTML Tables
An HTML Table is an arrangement of data in rows and columns in
tabular format. Tables are useful for various tasks, such as
presenting text information and numerical data. A table is a useful
tool for quickly and easily finding connections between different
types of data. Tables are also used to create databases.
Code:
<html>
<body>
<table>
<tr>
<th>Firstname</th>
<th>Lastname</th>
<th>Age</th>
</tr>
<tr>
<td>Priya</td>
<td>Sharma</td>
<td>24</td>
</tr>
<tr> Output:
<td>Arun</td>
<td>Singh</td>
<td>32</td>
</tr>
<tr>
<td>Sam</td>
<td>Watson</td>
<td>41</td>
</tr>
</table>
</body>
</html>
THANK YOU……..!