RSS

Basic Structure of HTML

Hello friends, I am going to tell you the basic structure of any HTML Document. The first is <html>, this is purely optional, next comes the <head> tag.

Next comes the <title>, enter your title here, and close it with </title> (Remember, you have to close each and every tag before formatting, other than some.)
Next is the <style type=""> tag, not usually used, it also is optional. Thus close the head tag with </head> later.

So, our html document becomes:

<html>
 <head>
<title>Hello</title>
</head> 
Next, the next is <body>, in which all that is to appear has to come, thus you can add anything in this as you want. Now:

<body>
....

Then comes the end of the document, which is not really necessary, these tags are usually not included:

</body>
</html>

Therefore, our document becomes:

<html><head><title>Hello</title></head><body>This is just a sample html document.</body></html> 

Video:


  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • RSS

0 comments:

Post a Comment