answersLogoWhite

0


Best Answer

A HTML file has the below structure

<HTML>

<HEAD>

<TITLE>

Title of the Web page

<TITLE>

Header of the Web page

</HEAD>

<BODY>

Body of the Web Page

</BODY>

</HTML>

The file has a .HTML extension and can be viewed in any web browser like IE or chrome or Mozilla

User Avatar

Wiki User

14y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

11y ago

The basic structure of an HTML document is:

  1. Doctype definition
  2. HTML tag
  3. Head Tag
  4. Title tag
  5. Body Tag

The HTML specifications say that a DOCTYPE declaration is required. This declaration tells the browser which version of HTML is should expect.

After that, the HTML element is added. All other elements in an HTML document exist within the HTML element.

According to the specifications, the HTML element has 2 and only 2 direct children. The first child is the HEAD element. This element is used to contain META data regarding the rest of the HTML documents contents.

Within the HEAD element, the specifications require a TITLE tag. The contents of this tag will be used by the browser and search engines to determine the title of the page for bookmarks and search engine indexing. This is the only required child of the HEAD element.

The second child of the HTML tag is the BODY element. This element is used to contain the contents of the HTML document. The tags contained within the BODY element will comprise the content of the finished page. While all of the documents actual content is contained within the BODY element, the element itself is not required to have any children by the specification.

In the end, a complete HTML 5 document looks something like this:

Title Here

The above document is complete and valid according to the W3C's specifications, and will validate using the validator.

This answer is:
User Avatar

User Avatar

Wiki User

11y ago

The basic structure of HTML includes tags, attributes and elements. According to the W3C, all X/HTML documents must contain:

  • A doctype declaration, to tell the browser what version of HTML is being used.
  • An HTML element, which will contain all other elements. HEAD and BODY are the legal children for the HTML element.
  • A HEAD element, used to hold meta data. There must be one and only one HEAD element, and it must be the first child of the HTML element.
  • A TITLE element, which is a child of the HEAD element, and describes the content of the page for browsers and search engines.
  • A BODY element, which holds all the page data. There must be one and only one BODY element, and it must be the second child of the HTML element.

Give below is an example of the most basic HTML 5 document structure:

A Basic HTML 5 Page

Welcome to Answers.com

Given below is the example of the basic structure of an XHTML document (this language is in the process of being replaced by HTML 5):

"http://www.w3c.org/tr/xhtml//dtd/xhtml1-strict.dtd">

Page Title for Browser and Search Engines

Welcome to Answers.com

This answer is:
User Avatar

User Avatar

Wiki User

12y ago

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.

This answer is:
User Avatar

User Avatar

Wiki User

11y ago

According to the W3C, the basic tag structure of an HTML 5 document is

  1. The Doctype Declaration
  2. The HTML element
  3. The Head Element
  4. The Title element
  5. The Body element

Put together, it looks something like this:

Page Title

This answer is:
User Avatar

User Avatar

Wiki User

10y ago

The important elements of an HTML document are:

  1. Head
  2. Title
  3. Body
This answer is:
User Avatar

User Avatar

Wiki User

9y ago

HTML has a structure in which tags play a major role. They form the complete base of the HTML.

This answer is:
User Avatar

User Avatar

Wiki User

12y ago

the word 'html'!

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is a basic structure of HTML?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Why do you use a HTML?

HTML is the language used to code web pages, it formes the basic structure of a web page. Without HTML, webpages would not exist.


Enumerate the basic HTML structure's and describe each briefly?

The page starts with the HTML start tag Followed by the tags, and goes here Followed by the Tag. The followin HTML will be the content of you web page Followed by closing the Tag, and tags. Here is a sample of a Basic HTML document: the name of the page This is a basic HTML structure. This is where the content goes that will display on your page.


What are the basic HTML codes?

Some basic HTML codes are as followed


What is the basic structure of an HTML?

The basic structure of HTML includes tags, attributes and elements. According to the W3C, all X/HTML documents must contain:A doctype declaration, to tell the browser what version of HTML is being used.An HTML element, which will contain all other elements. HEAD and BODY are the legal children for the HTML element.A HEAD element, used to hold meta data. There must be one and only one HEAD element, and it must be the first child of the HTML element.A TITLE element, which is a child of the HEAD element, and describes the content of the page for browsers and search engines.A BODY element, which holds all the page data. There must be one and only one BODY element, and it must be the second child of the HTML element.Give below is an example of the most basic HTML 5 document structure:A Basic HTML 5 PageWelcome to Answers.comGiven below is the example of the basic structure of an XHTML document (this language is in the process of being replaced by HTML 5):Page Title for Browser and Search EnginesWelcome to Answers.com


How does PHP differ from HTML in terms of application and structure?

In structure &lt;?php ?&gt; &lt;html&gt; &lt;/html&gt; in application - one is static and another is dynamic. this much ......


How do you prepare an HTML?

The basic HTML base to a HTML website is &lt;HTML&gt; &lt;title&gt; &lt;/title&gt; &lt;head&gt; &lt;/head&gt; &lt;body&gt; &lt;/body&gt; &lt;/HTML&gt;


What extensions are added to basic HTML documents?

.htm, .html, .xhtml


What is HTML and what does it do in webpages?

HTML is the structure of a webpage. HTML is the outdated version. The newest versions are html5 and xhtml.


How HTML tags needed to create a basic webpage?

HTML tags can be made to create a basic webpage. The basic tags with some text can make a webpage in basic format.


Basic structure of SQL?

SQL: Basic structure


What is HTML View?

The view of the website in form of HTML is HTML view. It is the basic code you write in text editor.


What are the basic computer skills I need to move on to HTML training?

The only basic computer skill you need to start HTML training is keyboarding.