Computer Science, asked by gopinagu4912, 1 year ago

Every HTML document consists of

Answers

Answered by MySecrets
8
Many types of attributes which help in programming.
Answered by TheWiseStudent
0

Answer:

Every HTML document contains some sections like DOCTYPE, meta tags, head, title and body.

Step-by-step explanation:

All the tags that we include in an HTML file, must be first opened then closed by angular brackets.

Let's understand different sections one by one.

Doctype HTML-

  • Doctype HTML justifies that it's a HTML document.
  • So, we are defining specifically for a browser to know that it's an HTML document.
  • <html lang= “en”> - it's the opening a part of the HTML tag that tells us the language of the document is in English.

<head> -

  • Head contains all the meta-tags in it.
  • Meta means providing information about information.
  • Therefore, meta tags are required to define the keywords and descriptions on our website.
  • Head also contains the title of the web site and links of external files like CSS and JavaScript that we link thereto.

<body> -

  • Body contains all the contents of the webpage in it with which user interact.

Comments-

  • Sometimes we would like to write down a specific thing that we don't want the browser to require it as a part of códe.
  • So, we will include it within the comments by writing “<!-- Comment-->” during this format.

 

Similar questions