Header Ads

Header ADS

Introduction to HTML

HTML 

Do you know that everything that you see on the web is documents written in a special language called HTML or HYPERTEXT MARKUP LANGUAGE. 

The language tells the browsers like MOSAIC or NETSCAPE or INTERNET EXPLORER how to display text, pictures and links on the screen.




HTML is a document-layout and hyperlink-specification language, a language used to design the layout of a document and to specify the hyperlinks.

HTML tells the browser how to display the contents of a hypertext document, a document including text, images and other support media. The language also tells how to make a document interactive through special hyperlink.

HTML is a language that supports multimedia and new page layout features yet it has its limitations.

HTML is not a word processing tool, it is not a desktop publishing solution or even a programming language. It is just a page-layout and hyperlinks specification language.

WRITING HTML DOCUMENTS

HTML is made up of elements or tags and attributes, which work together to identify document parts and tell browsers how to display them.

A TAG is a coded HTML command that indicates how part of web page should be displayed. An ATTRIBUTE is a special word used inside tag to specify additional information to tag such as color, alignment etc.

All HTML tags are contained with angle brackets (< >) e.g - <HEAD> is a tag.

NOTE:- HTML is not case sensitive, i.e , HTML tags can be written in capital as well as small letters. e.g - <HEAD>, <head>, <Head> etc are same in HTML.

HTML DOCUMENT STRUCTURE

An HTML document consists of text, which comprises the content of the document,
and tags, which define the structure and appearance of the document.

The basic structure of an HTML document is simple with the entire document bound by a pair of <HTML> and </HTML> tags.

Every HTML document should follow this general form:-


<HTML>


<HEAD>

<TITLE>

title of page is written here

</TITLE>

</HEAD>

<BODY>

The HTML tags that define your page go here

</BODY>

</HTML>


THE <HTML> TAG :- The <HTML> tag identifies the document as an HTML document. An HTML document begins with <HTML> and  ends with </HTML>.


<HTML>
.... HTML document lines here
</HTML>


THE HEAD TAG :- The <HEAD> tag contains information about the document, including its title, scripts used, style definitions, and document descriptions. The <HEAD> tag, is entered between <HTML> tags .


<HTML>
<HEAD>
HEADER INFORMATION COMES HERE
</HEAD>
</HTML>

THE TITLE TAG :- This tag contains the document title. The title specified inside <TITLE> tag appears on the browsers title bar.

The <TITLE> tag is entered between the opening and closing <HEAD> tags.


<HTML>
<HEAD>
<TITLE>
DOCUMENT TITLE HERE
</TITLE>
</HEAD>
</HTML>

THE <BODY> tag :- The <BODY>  tag encloses all the tags, attributes and information to be displayed in the web page. The <BODY> tag is entered below the closing </HEAD> tag and above the closing <HTML> tag .


<HTML>
<HEAD>
<TITLE>
</TITLE>
</HEAD>
<BODY>
ALL THE TAGS, ATTRIBUTES AND INFORMATION IN THE DOCUMENT BODY GO HERE
</BODY>
</HTML>








Recommended Posts:
Still updating ...






This Article is Contributed by Bharti Singh .
Share your suggestions and feedback in comment sections.

Thank you for visiting here ..


No comments

Powered by Blogger.