Monday, August 17, 2009

BASIC HTML ELEMENTS

<HTML> This element contains the head element and body elements of a document. It’s a basic structure element. It contents head element and body element or frameset element.


<HEAD> This element contents head section of document. Head must contain exactly one title element in addition it may contain script element, style element and Meta element as well as link element.


<TITLE> Creates document’s title. Every html documents requires a title. This element is a part of basic structure comes in head section.

<span style="font-weight:bold;">Structure of HTML:</span>

<HTML>

<HEAD><TITLE>…..</TITLE> </HEAD>

<BODY>

Other text and elements to be represent information using tag are place in body element

</BODY>

</HTML>

<BODY> This tag contain the body section of html document. It’s basic structure element

Background: to set a background image.

Bgcolor :- to set background color

Link: - to set hyperlink color.

Alink:- to set active hyperlink color. & Vlink:- to set visited hyperlink color.

<span style="font-weight:bold;">Example:</span>

<html>

<head><title>first small program </title></head>

<body bgcolor=’red’>

Good morning……friends….

</body></html>

<span style="font-weight:bold;">COMMENT:</span>

<!-- -->

Inserts comments into an html document that would not be displayed by a browser also used to hide style sheets and active scripts from older browsers.

No comments: