The basic structure of HTML

 The basic structure of HTML

HTML basic structure



HTML basic structure is:

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <meta http-equiv="X-UA-Compatible" content="ie=edge">
  7. <title>Title name</title>
  8. </head>
  9. <body>
  10. This is body
  11. </body>
  12. </html>


Below is a discussion of the basic structure of HTML. 

1. <! DOCTYPE html> Carries the identity of HTML5.

2. Everything on a website is usually written inside the <html> tag.

3. <head> tags are used to use a site name or title, favicon, font, various style links, etc.

4. <meta charset = "utf-8"> is used so that all languages ​​are displayed correctly on the site. 

5. <meta name = "viewport" content = "width = device-width, initial-scale = 1.0"> This code is          commonly used. In the case of responsive design. Used to make media queries work properly. 

6. <meta http-equiv="X-UA-Compatible" content="ie=edge">This code is used to make the site        look better in Internet Explorer or Microsoft AIDS browser.

7. <title> Title name </title> is usually used for site names or titles.

8. </head> End of heading.

 9. <body> All the contents of the site are kept inside the body.

10. </body> The end of the body.

11. </html> End of HTML.


Post a Comment

0 Comments