The basic structure of HTML
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta http-equiv="X-UA-Compatible" content="ie=edge">
- <title>Title name</title>
- </head>
- <body>
- This is body
- </body>
- </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.
0 Comments
Write Your Comment