What is a basic structure of the HTML page?

Experience Level: Junior
Tags: HTML

Answer

  • Every HTML page has the <html> element. This element serves as a main container for the HTML document parts.
  • Within the <html> element there is the <head> element and the <body> element
  • The <head> element contains meta-data describing the HTML document.
  • The <body> element contains the HTML element content.

 

Example
<html>
    <head>...</head>
    <body>...</body>
</html>
Related HTML job interview questions
HTML for beginners
HTML for beginners

Are you learning HTML? Try our test we designed to help you progress faster.

Test yourself