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

Introduction To HTML: Container Tags

HTML is the standard markup language used to create web pages. HTML uses tags enclosed in angle brackets to provide structure and meaning to the content. There are two main types of tags: container tags, which have an opening and closing tag to hold content between them, such as <html> and </html>; and empty tags which do not require a closing tag, like <hr> to create a horizontal line. HTML pages are delivered over the network in a platform-independent way using ASCII text, so only a web browser is needed to view them regardless of the operating system.

Uploaded by

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

Introduction To HTML: Container Tags

HTML is the standard markup language used to create web pages. HTML uses tags enclosed in angle brackets to provide structure and meaning to the content. There are two main types of tags: container tags, which have an opening and closing tag to hold content between them, such as <html> and </html>; and empty tags which do not require a closing tag, like <hr> to create a horizontal line. HTML pages are delivered over the network in a platform-independent way using ASCII text, so only a web browser is needed to view them regardless of the operating system.

Uploaded by

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

Introduction to HTML

HTML of Hyper Text Markup Language is the standard which is used by World Wide Web
documents. We use a program to view documents. It is not a programming language even though
it is termed as a language. The basic element of an HTML page and therefore any document on
the Web is ASCII text. HTML uses what is called a tag and it is represented by the angle brackets
< and >. Any text which is contained by the angle brackets is considered as an HTML tag by
the browser and interpreted accordingly. Since HTML uses ASCII text, the Web documents are
delivered over the network such that they are not platform dependent. Hence only a Web browser
is required which can interpret HTML files irrespective of whether it is running on a machine
using windows or UNIX or Macintosh or on any other operating system or hardware platform.
HTML mainly contains two tags. These are the followings:
Container Tags
Those tags which have the form <TAG> and </TAG> are called container tags. They hold, or
contain, the text and other HTML elements between the two tags. The <TITLE>, <HTML>,
<HEAD>, and <BODY> tags are all container tags.
The syntax for container tags is
<TAG> Text or other HTML elements go here </TAG>
For Example:
<HTML>
<HEAD>
<TITLE> Horizontal Line </TITLE>
</HEAD>
<BODY>
<p>The rest of this is just more text</p>
</BODY>
</HTML>

Empty Tags
Some tags that do not require </> tags are called empty tags. An example of this is the <HR> or
horizontal rule tag. This tag draws a line across the width of your document. Consider the
following listing
Example:
<HTML>
<HEAD>
<TITLE> Horizontal Line </TITLE>
</HEAD>
<BODY>
The following is a horizontal line:
<HR>
The rest of this is just more text
</BODY>
</HTML>

You might also like