HTML

HTML Projects

HTML Project

adplus-dvertising
COMPONENTS OF HTML
Previous Home Next

There are three Foundational components of HTML are-

Tags

The main part of HTML command is tag (technically it is referred as elements) HTML documents are defined by HTML elements.Tag is a identity of html tag says to "do this". modifications makes tag powerful. and these modifications are done by attributes.

There are general rules about html tags.

  1. All standard tags are contained within the less than (<) and greater than (>) symbols as follows <html> called opening tag.
  2. There are no space between the the symbols and the tags .as follows [an error occurred while processing this directive] <html>
  3. Add a forward slash before the tag to denote the tag closure. as follows <html> called closing tag.
  4. There must be closing for every opening tag.

Attributes

Attributes modify the action of tags. some tags works properly without attributes but some requires attributes for function. as <html> tag and its companion closing tag </html>needs no attribute because this is just to tell about the beginning of html document and ending of it.

but <body> tag and its companion tag </body> needs attribute because this tag denotes the area of html document that will be viewed within the browser .attributes are often whole words some times they are partial words. whole word attributes include align ,link, color and face.

partial word examples are src for "source" ,and "vlink" for visited links.

Values

Values are the defining aspects of attributes and they modify the tags. several values for align tag are left ,right ,center and justify. let us understand it in terms of font a font requires some size and some color .the value which we pass for color and size are called the values for the attributes size and color.

eg.

<font> size="3" color="red" this is some text <font>

here <font> is a tag

size and color are the attributes and 3 and red are the values of attributes.


<head>
<body>
<font size="3" color="red"> here is the example 
to understand the difference between tag ,attribute and values
</font>
</body>
</head>
</html>
Previous Home Next