Lect 2
Lect 2
Semester-II(2024-25)
HTML(Lect 2)
Department of DSAI
January 9, 2024
1/11
DSAI WEB ENABLED TECHNOLOGY January 9, 2024
Introduction to HTML
HTML(HYPER TEXT MARKUP LANGUAGE)
1 HTML or HyperText Markup Language is the standard markup
language used to create web pages.
2 Web pages are also called HTML document.
3 HTML is written in the form of HTML element consisting of tags
enclosed in angle brackets (like <html>).
4 It is the language interpreted by a browser.
Hyper Text
HyperText simply means ”Text within Text.” A text has a link within
it, is a hypertext. Whenever you click on a link which brings you to a
new webpage, you have clicked on a hypertext. HyperText is a way to
link two or more web pages (HTML documents) with each other.
Markup language:
A markup language is a computer language that is used to apply
layout and formatting conventions to a text document. Markup
language makes text more interactive and dynamic. It can turn text
into images, tables, links, etc. 2/11
DSAI WEB ENABLED TECHNOLOGY January 9, 2024
Different Version of HTML
3/11
DSAI WEB ENABLED TECHNOLOGY January 9, 2024
HTML Tags
Tags are instructions that are embedded directly into the text of the
document.
All HTML tags are begin with an open angle brcket(<) and end with
a close angle bracket(>).
Each HTML tag describes that the browser should do something
instead of simply displaying the text
Tags are not case sensitive i.e. they may be written in lower or upper
case letters.
Tags are also called element of a HTML document.
HTML tags can be of types:-
1 Singular Tag
2 Paired Tag
4/11
DSAI WEB ENABLED TECHNOLOGY January 9, 2024
HTML Tag cont...
Paired Tag
1 A tag is said to be paired tag if it, along with a companion tag.
2 In paired tags, the first tag is referred to as Opening Tag and the
second tag is referred to as Closing Tag.
3 The effect of paired tag is applied only to the text the tag contain.
Example: <i>This text is in italics. </i> The text contained
between them to be rendered in italic. Here <i>is called opening tag.
and </i>is called closing tag.
Singular Tag
1 A Singular tags does not have a companion tag. Singular tags are also
known as unpaired tag or Stand-Alone Tags.
Example: <br >, <hr > ( These tags does not require any
companion tag.)
5/11
DSAI WEB ENABLED TECHNOLOGY January 9, 2024
HTML Attributes
6/11
DSAI WEB ENABLED TECHNOLOGY January 9, 2024
The structure of an HTML program
7/11
DSAI WEB ENABLED TECHNOLOGY January 9, 2024
The structure of an HTML program cont...
8/11
DSAI WEB ENABLED TECHNOLOGY January 9, 2024
The structure of an HTML program cont...
10/11
DSAI WEB ENABLED TECHNOLOGY January 9, 2024
output
11/11
DSAI WEB ENABLED TECHNOLOGY January 9, 2024