Thursday 3 January 2013

HTML 5 basic tutorials part 2


Before going further.we must understand.

 what is TAG

Tag is the code that is written in the less-than-sigh and Greater then sign.
<CodeName> this is example of Tag..
There are two type of tag
    1.   opening tag
This tag are just have less than and greater sign with the code name.
E.g.:- Opening Tag
<HTML> This is a html opening tag…
    2. Closing tag
In this tag the slash ( / ) is the used to close the tag in the less than and greater than sign.
E.g.:- Closing tag
   </HTML> This is a closing tag with a slash in front of </Codename >

In the top of our code we have the Doctype

<!DOCTYPE> Declaration

The doctype help the browser to render the code in to the page…the browser find the all the given tag in the website and render the page if the is any error in tag the page render unwired …..

Some of the early doctypes

 LATEST HTML 5

<!DOCTYPE html>

XHTML 1.0

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

 

HTML 4.01

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"

"http://www.w3.org/TR/html4/loose.dtd">


if you have any doubt .comment it out...

 

 

0 comments:

Post a Comment