Chapter 8 (Introduction To HTML) Lecture Note 1
Chapter 8 (Introduction To HTML) Lecture Note 1
Introduction to HTML:
Key Points:
1|Page
Lecture 01
HTML Tags:
Empty tags:
Those who only have an opening tag and no closing tag are called
empty tags. e.g. <br>, <hr>, <img>, <link>, <meta>, <base> etc.
It is also called Void Element element.
There are two sections. One is head section and another is body section.
2|Page
Lecture 01
Head Section:
The HEAD tag is an important tag used to add the header in HTML. It
is used to give various additional information about the page along
with description and title to your page.
Body section:
The BODY tag is used to give the body, i.e., the visible section of the
HTML document. All formatting and writing of content are done in
the opening <body> and the closing </body> tag.
Practice Code:
<HTML>
<HEAD>
<Title>
My First Webpage
</Title>
</HEAD>
<Body>
HTML First Class
</Body>
</HTML>
3|Page
Lecture 01
HTML Paragraph
Practice Code:
<html>
<head>
<title>Title of the document</title>
</head>
<body>
<p>This is a paragraph</p>
</body>
</html>
The HTML <nobr> tag is used to instruct the browser not to break the
specified text (such as the usual line wrap that occurs at the right edge
of the browser window).
4|Page
Lecture 01
Practice Code:
<html>
<head>
<title>HTML nobr Tag</title>
</head>
<body>
<nobr>This is a very long sequence of text that is forced to be
on a single line, even if doing so causes <wbr />
</html>
5|Page
Lecture 01
Text formatting helps us improve the visual appeal of the text in any
document. HTML provides many tags to format the appearance of the
text on the web page and make it look attractive to the site visitors.
Such as Bold, Italic and Underline.
The HTML <b> tag specifies bold text, without any logical
importance. It opens with <b> and ends with </b> tag.
Practice Code:
<html>
<head>
</head>
<body>
</body>
</html>
6|Page
Lecture 01
The HTML <i> tag displays the text in italics. It begins with <i> tag
and ends with </i> tag.
Practice Code:
<html>
<head>
</head>
<body>
</body>
</html>
7|Page
Lecture 01
The <u> tag in HTML stands for underline, and it’s used to underline
the text enclosed within the <u> tag.
Practice Code:
<html>
<head>
</head>
<body>
</body>
</html>
8|Page