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

HTML-Hypertext Markup Language 1.introduction:-: Writing HTML Document Structure

HTML is a markup language used to define the structure and layout of a web page. It uses tags, attributes, and elements to identify different parts of a document and tell browsers how to display them. The basic structure of an HTML document includes header, title, and body tags. There are two types of elements - container elements which require opening and closing tags, and empty elements which only require a starting tag. Attributes provide additional information about elements and are written inside the starting tag.

Uploaded by

Himanshu Arora
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views

HTML-Hypertext Markup Language 1.introduction:-: Writing HTML Document Structure

HTML is a markup language used to define the structure and layout of a web page. It uses tags, attributes, and elements to identify different parts of a document and tell browsers how to display them. The basic structure of an HTML document includes header, title, and body tags. There are two types of elements - container elements which require opening and closing tags, and empty elements which only require a starting tag. Attributes provide additional information about elements and are written inside the starting tag.

Uploaded by

Himanshu Arora
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

HTML-Hypertext Markup Language

1.Introduction:-
HTML is a document layout and hyperlink
specification language i.e. a language used to
design a layout of a document and to specify the
hyperlinks.
HTML tells the browser how to display the contents
of hypertext.
HYPERTEXT :-
It is a document that consists of text , graphic
images, audio and video tracks, and most
importantly, dynamic links to related files. These
dynamic links are called hyperlinks.

WRITING HTML DOCUMENT STRUCTURE:


HTML is made up of elements or tags and
attributes, which work together to identify
document parts and tell browser how to display
them.
All HTML tags are contained with angle
brackets{<>} e.g. <HEAD> or <html>,this
means html is not case sensitive.
HTML DOCUMENT STRUCTURE :
<html>
<head>
<title>
</title>
</head>
<body>
</body>
</html>

CONTAINER AND EMPTY ELEMENTS:


CONTAINER ELEMENTS :
This type of html elements requires pair tags
e.g. <head> ,</head> etc.
EMPTY ELEMENTS :
This type of html documents just requires
a starting tag and not an ending tag.
e.g.<BR> ,<BASE>,<BASEFONT>,
<HR>, <IMG>, <LINK> etc.
<HR> inserts a horizontal rule
<BR> breaks a line

HTML TAG STRUCTURE:-


A tag attribute value , if any , is given after
the equal sign(=), in quotes generally after
the attribute name.
e.g.
<A href=”http//www.netscape.com/yellowpages">
If the attribute value is a single word or number,
then u can omit quotation marks.
e.g.
<body bgcolour = red>

You might also like