structure of html


html stands for hyper text markup language. which is used in the developing webpages. html elements are represented by the tag.it is the basic building block of the web. for example when we create a house then we required basic element for developing the house is the bricks hence here also the basic building block of the web is html we can say.


structure:

<!DOCTYPE html>
<html>
         <head>
                <title> my first web page </title>
         </head>
     
        <body>
             <h1> my name is gaurav kumar </h1>
       </body>

</html>



explanation :


  •  above first line is a declaration part or version part of html which represent that the this html page follows is html 5 version. which is the latest version of html.
  • second line have the tag <html> which is the come with the pair mean starting tag <html> and closing tag </html>
  • after this <html> tag the <head> tag will come with pair and in this head tag have we are giving the name of the webpage which is shown in the above title. and in this line head have we are declare the linking parts . mean here we link the css , page ,javasricpt page etc.
  • third one is the body part , here we are declare the all the content which is shown on the web page



No comments:

Post a Comment