of instances. We will explain the key points or difficulties involved in the instance, but will not explain the concept much. It is hard to say that you understand concepts, or that you cannot understand them. So leave the concept to everyone for further research.
Due to the relationship between the chapters, CSS and CSS hack are not separated separately, but they are used only when inserted for explanatio
ElementsEnforcing XHTML elementsAll XHTML documents must have a DOCTYPE declaration. The HTML, head and body elements must is present, and the title must is present the head element.All XHTML documents must have a DOCTYPE reputat
Strict DTD
Use this type if you need a clean flag to avoid confusion on the presentation layer. Please use it with the stacked style sheet (CSS:
In the preceding Declaration, the root element of the document is html, it is defined in the DTD where the public identifier is defined as "-// W3C // dtd xhtml 1.0 Strict/EN. The browser will understand how to find a
All Web pages can be based on HTML tags. Next, let's look at the nesting rules of HTML tags in detail. It is necessary for new friends who are learning web pages to learn more about HTML recently, A new understanding of HTML! Don't underestimate this. All webpages are based on it! Next, let's take a look at the nesting
Chinese and English. The gb2312 here tells the browser that this document is encoded in Simplified Chinese, and that a commonly used encoding is UTF-8 encoding, which is an internationally-accepted encoding. Regardless of which encoding we use, one thing is that the CSS stylesheets and other files that are included must also be encoded in this document, or garbled.3) HTML tagsHTML tags must end in the page
HTML and XHTMLXHTML (extensible Hypertext Markup Language, Extensible Hypertext Markup Language) is the standard for redefining HTML (hypertext Markup Language, Hypertext Markup Language) as an XML application.Two types of syntax (and) are defined in the HTML5 standard HTML 4.01 XHTML 1 . The standard can be
, you must add the Xml:lang attribute, like this:
Heia norge!
--------------------------------------------------------------------------------
Mandatory XHTML ElementsForcing XHTML elementsAll XHTML documents must has a DOCTYPE declaration. The HTML, head and body elements m
Internet Explorer (IE) occupies more than half of the browser market, in addition to Firefox and Opera. These browsers must be compatible.
At the same time, for IE alone, due to the replacement of the IE version, viewers currently use IE5 (IE5.5), IE6, and IE7. The three versions display different interpretations of the standard WEB page (XHTML + CSS. In addition, other non-IE browsers and IE have differen
css|xhtml| Design | Web page
With the gradual popularization of XHTML, HTML has become obsolete on many occasions. World Wide Web Consortium published the first version of XHTML as a recommended standard on June 26, 2000. The goal of the
The following content is translated from: http://reference.sitepoint.com/html/html-vs-xhtml1. HTML case insensitive, XHTML sensitive, only lowercase tags2. HTML tags do not necessarily require closure, but XHTML tags must be close
search engines.
How to use:
Note: name= "keywords" is a fixed notation; The Content property value is the keyword to be set, and the keywords are separated by commas.
3. Set up the website description information to provide services for search engines. The corresponding description will be displayed in the website profile of the search interface.
How to use:
The following is the use of Baidu search keyword "News" when the results appear
Third,
The link label usually has the following two us
tag the content based on whether the content is text, one is to use closed tags, and the other is to use non-closed tags.
1.1 Use closed labels for text
Example: Hello, CSS!1.2 use self-closed tags for reference content
Example:
Tip:For self-closing tags, The XHTML requirements must be written as follows:
Copy XML/HTML Code to clipboard
browser and a screen reader. Only when the alt attribute is added will the code pass the W3C correctness verification. Note that we need to add a meaningful alt attribute. it is meaningless to write a statement like the following:
Correct syntax:
6) quote all attribute values
In HTML, you do not need to enclose attribute values in quotation marks, but in XHTML, they must be enclosed in quotation marks.
(Hypertextmark-uplanguage) is the Hypertext Markup Language, which is the description language of www. The purpose of the HTML language is to make it easy to connect text or graphics stored on one computer with text or graphics from another computer to form an organic whole, regardless of whether the specific information is on the current computer or on other computers in the network. We just use the mouse to pick an icon in a document, and the Inter
three tags are the product of the so-called xhtml, mainly enabling you to group rows in the table. When creating a table, you may want to have a title row, some rows with data, and a total row at the bottom. This division enables the browser to support table body scrolling independent of the table title and footer. When a long table is printed, the table header and footer can be printed on each page that contains table data. I personally think its ma
necessary for normal users, but is essential for plain text browsers and users who use screen readers. Only the Alt attribute is added, the code will be passed by the correctness check. Note that we want to add a meaningful alt attribute, which is meaningless as follows:
The correct wording:
6) Quote all attribute values
In HTML, you don't need to quote attribute values, but in XHTML they must be quote
following values of the ' Display ' property do an element inline-level: ' inline ', ' inline-table ', and ' Inline-block '. Inline-level elements generate inline-level boxes, which is boxes that participate in an inline formatting cont Ext.
We can understand this: The block elements are generally starting from the new line, inline elements are displayed in a row, we can also through the CSS property display ' inline ' or ' block ' to change the
is added will the code pass the W3C correctness verification. Note that we need to add a meaningful alt attribute. it is meaningless to write a statement like the following:
Correct syntax:
6) quote all attribute values In HTML, you do not need to enclose attribute values in quotation marks, but in XHTML, they must be enclosed in quotation marks. Properties must also be separated by spaces.For example, thi
Css|xhtml
Most of our designers are still using a traditional form layout, a mix of performance and structure to build the site. Learning how to use XHTML+CSS requires a process that allows existing sites to conform to site standards and is unlikely to be one-step. The best approach is to step through the steps to achi
, which is an internationally-accepted encoding. Regardless of which encoding we use, one thing is that the CSS stylesheets and other files that are included must also be encoded in this document, or garbled.3 ) HTML labelHTML tags must end in the page. Paired labels End with a "/tag name", and some single tags end up at the end of themselves, which is the specification for
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.