Detailed definitions of webpage header Elements

Source: Internet
Author: User

Doctype Selection

What is doctype?

Doctype is short for document type. It is used to specify the XHTML (or HTML Version) used on the page ). To make a page that complies with the standard, an essential component is the doctype declaration. Only after the correct doctype is determined can the identifier and CSS in XHTML take effect normally.

Doctype

There are three types of DTD (Document Type Definition) declarations in XHTML 1.0: transitional, strict, and frameset. They are described as follows:

Transitional

A non-strict DTD that allows the use of HTML 4.01 Identifiers (in line with XHTML syntax standards) on pages ). The syntax of an excessive DTD is as follows:

<! Doctype HTML public "-// W3C // dtd xhtml 1.0 transtional // en"

Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transtional.dtd>

Strict

A strict DTD that does not allow any presentation layer identifier and attributes, such as <br/>. The strict DTD syntax is as follows:

<! Doctype HTML public "-// W3C // dtd xhtml 1.0 strict // en"

Http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd>

Framework

A dtd used for a framework page. This DTD is used when the page contains framework elements. The statement is as follows:

<! Doctype HTML public "-// W3C // dtd xhtml 1.0 frameset // en"

Http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd>

Namespace Problems

Namespace is a namespace in English. Its meaning is to identify tags on a page by pointing to a website. In XHTML, "xmlns" (abbreviation of XHTML namespace) is used to identify the URL of the tag on the XHTML page pointing to http://www.w3.org/%9/xhtml.

The complete definition of a namespace is written as follows:

<HTML xmlns = http://www.w3.org/1999/xhtml>

When you create a document using a visual web development tool (such as Dreamweaver), select the document type in the appropriate format. The doctype declaration and namespace life are automatically generated.

Encoding Problems

Meta tag

1. Key words)

The syntax structure of the keywords provided for search engines is as follows:

<Meta name = "keywords" content = "keyword 1, keyword 2, keyword 3">

2. Description)

Used to declare the main content of a website for a search engine. The syntax structure is as follows:

<Meta name = "decription" content = "website Introduction">

3. Robot search wizard (robots)

Specify the page to be indexed and the page to be indexed for the search robot. The syntax structure is as follows:

4. Website author information (author)

The author of the website declaration. The syntax structure is as follows:

<Meta name = "author" content = "Chen yingping">

5. Website copyright information (copyright)

Copyright for the website. The syntax structure is as follows:

<Meta name = "Copyright" content = "Chen yingping, fake">

CSS call

 

Several Methods for calling a style sheet (to be supplemented)


Apply the style sheet priority

The general steps for creating a page are as follows:

  1. Analysis
  2. Cut Graph
  3. Create an XHTML page

 

The above content was excerpted from the CSS standard web page layout Development Guide. during the National Day, I wrote about half of the content, and I almost forgot about it. To be honest, this book is not very good, but there are still some things to learn from.

 

PS: Welcome to the front-end fans or Daniel !!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.