What are the main elements of HTML documents?

already exists.

Would you like to merge this question into it?

already exists as an alternate of this question.


exists and is an alternate of .

The main elements of an HTML document are the HTML element, the HEAD element, and the BODY element.

To pass the W3C specifications, you also need to have the TITLE element.

The HTML element is the container element for all the code on the page.

The HEAD element is a child of the HTML element, and must be the first child. There can only be one. This element holds a lot of "meta data" or data about the page. For instance, the TITLE element is a child of this element. As are the META tags used for things like search engine descriptions and keywords. CSS styles and JavaScript are also frequently contained herein.

The BODY element is a child of the HTML element, and must be the only BODY element in the entire page. It must come immediately following the HEAD element. The BODY element is used to contain all of the page's content. Virtually all HTML tags are descendants of the BODY.
2 people found this useful

What is HTML document?

An HTML (Hyper Text Markup Language) document is basically a web page. It can be opened in either a text editor or a web browser. In a text editor, the HTML code can be edited

What is a HTML document?

Is a document created in H yper t ext M arkup L anguage that is the language used in the internet files.

What are the required elements for a simple HTML documents?

The basic requirements to use HTML are: 1. A Web browser like Mozilla or Internet Explorer that you can use to view your HTML pages 2. A text editor like notepad, textpad or e

What is the main purpose of using link tag in HTML document?

The link element is used in the head-section of a HTML document to express relation to other files. The most often used types of links are those for CSS files and a favicon

What are the two main elements of HTML?

The two main child elements of an HTML document are HEAD and BODY. To make the document pass spec, you also need to include the TITLE tag in the HEAD section.
In Science

What are the HTML documents?

An HTML form is a section of a document containing normal content, markup, special elements called controls (checkboxes, radio buttons, menus, etc.) ...