HTML skeleton - anatomy to HTML - HTML tutorial, XHTML Guide

Change Font Size: / / Directory List

4. HTML skeleton - anatomy to HTML

4.1. HTML html tags
4.2. HTML head labelling
4.2.1 HTML title tag
4.3. HTML body labels

In fact, the title of this section should be called HTML framework (HTML document that describes the overall structure), there is a pity HTML elements called framework, I use here in the skeleton.

Examples of HTML skeleton

  <DOCTYPE html PUBLIC "- / / W3C / / DTD XHTML 1.1 / / EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd" /> <html> <head> <title> HTML document title </ title> HTML headers </ head> <body> HTML content information </ body> </ html> 

Above this framework should be a clear enough.

Trackback Address: http://www.nt22.com/xhtml-html/framework/

Note

  • HTML documents must first declare a document type, which is the first line of the above examples, the XHTML1.1 document type definition.
  • <html> And </ html> is a HTML document and the beginning of the end, but also HTML document root element.
  • HTML document consists of the first head of information and content information body.
  • Information can accommodate the first head of the HTML document related information, such as the title of title, such as css style.
  • Information content of our body can accommodate to see the content of the HTML document.
  • We would also like to note that the preparation of the code must be at the level of flu, head tags and labels are in the body in html tags, therefore, I back down a tab button distance, and the first HTML tag information than head after setback a tab button distance.

Recommendation: Use tab keys generated HTML code level flu, can make code clearer and more easily extended.