0% found this document useful (0 votes)
2 views

Lesson 2

This lesson covers the basics of HTML tags used to format HTML documents, emphasizing that tags are case-insensitive and typically require both opening and closing tags. It provides a summary of essential tags such as <html>, <head>, <title>, <body>, and various heading tags from <h1> to <h6>, as well as tags for bold and italic text. An example HTML document is included to illustrate the use of these tags.

Uploaded by

sonalsapra123
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

Lesson 2

This lesson covers the basics of HTML tags used to format HTML documents, emphasizing that tags are case-insensitive and typically require both opening and closing tags. It provides a summary of essential tags such as <html>, <head>, <title>, <body>, and various heading tags from <h1> to <h6>, as well as tags for bold and italic text. An example HTML document is included to illustrate the use of these tags.

Uploaded by

sonalsapra123
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Lesson 2

The HTML Tags


In order to format an HTML document, we use HTML tags. The HTML tag is
case- insensitive, <HTML> and <html> are the same. Most tags must start
with an open tag and an end with a closing tag. For example: <HI>Heading
1</H1>. However, some of the tags such as <IMG> do not required a closing
tag.
Here is the summary of some basic tags:
TAG <<html></html><head> </head>
DISCRIPTION
Tags which create the HTML document.
Tags which denote the first part of the HTML document.
Tags which define the title of the web page.
Tags which define the main contents of the HTML document.
Tags that indicate the headings. There are 6 headings, from h1 to h6. Tags that display bold
text.
<title></title>
<body></body>
<!>h]>
<<b></b>
<i></i>

Tags that display italic text.


4X/4 <br>

Tags that underline the text.


Tag that indicate line break. No closing tag is required here.
Open the NOTEPAD and Start writing
<html>
<head>

<title>My sample HTML document</title> </head>


<body>
<h1><u>My sample HTML document</u></h1>
<h1>This is heading 1</h1>
<h2>This is heading 2</h2>
<h3>This is heading 3</h3
<h4>This is heading 4</h4> <h5>This is heading 5</h5>
<h6>This is heading 6</h6> <b> Bold text</b>
<br>
<i>Italic text</i>
<br>

You might also like