About the HTML tags, the thing.

Source: Internet
Author: User
Tags deprecated

A noun that HTML believes is familiar to every Internet practitioner, especially a web front-end engineer, is the foundation. HTML is the acronym for Hyper Text Markup Language, which translates to Hypertext Markup Language . tags are used to tag elements in the page. These tags can be nested, with special attributes and default styles. This time there is time to systematically review and comb the tags in the HTML.

<!--here is the comment--for writing the comments in the HTML document, equivalent to//or/**/in some of our other languages

<! Doctype> is used to declare the document type, <! The doctype> declaration must be the first line in the HTML document, before the

the common DOCTYPE declarations are as follows:

HTML5: <! DOCTYPE html>;

The HTML 4.01 Strict the DTD (document type definition documents defined type) contains all HTML elements and attributes, but does not include both display and deprecated elements (such as font). Frameset (framesets) is not allowed.

<! DOCTYPE HTML PUBLIC "-//w3c//dtd HTML 4.01//en" "HTTP://WWW.W3.ORG/TR/HTML4/STRICT.DTD" >

HTML 4.01 Transitional The DTD contains all the HTML elements and attributes, including both display and deprecated elements (such as font). Frameset not allowed (framesets)

<! DOCTYPE HTML PUBLIC "-//w3c//dtd HTML 4.01 transitional//en" "HTTP://WWW.W3.ORG/TR/HTML4/LOOSE.DTD" >

HTML 4.01 Frameset This DTD is equivalent to HTML 4.01 Transitional, but allows frameset content.

<! DOCTYPE HTML PUBLIC "-//w3c//dtd HTML 4.01 frameset//en" "HTTP://WWW.W3.ORG/TR/HTML4/FRAMESET.DTD" >

XHTML 1.0 Strict The DTD contains all the HTML elements and attributes, but does not include the display and deprecated elements (such as font). Frameset (framesets) is not allowed. tags must be written in well-formed XML.

<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 strict//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" >

XHTML 1.0 Transitional The DTD contains all the HTML elements and attributes, including both display and deprecated elements (such as font). Frameset (framesets) is not allowed. tags must be written in well-formed XML.

<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">

XHTML 1.0 Frameset This DTD equates to XHTML 1.0 Transitional, but allows frameset content.

<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 frameset//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd" >

XHTML 1.1 This DTD is equivalent to XHTML 1.0 Strict, but allows models to be added (for example, to provide Ruby support for East Asian languages).

<! DOCTYPE HTML PUBLIC "-//w3c//dtd XHTML 1.1//en" "Http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd" >

  <a> defines a hyperlink that is used to link to another page from one page. The most commonly used property is that the href is used to specify the URL address to the jump, and the other is that the target specifies how to open a new page, such as _self on this page,_blank is to open it in a new page,_parent This object to load the document into the parent window or the frameset that contains the frame referenced by the hyperlink. If the reference is in a window or in a top-level frame, then it is equivalent to the target _self. _top This goal causes the document to load into the window containing the hyperlink, with the _top target clearing all the contained frames and loading the document into the entire browser window. , the default is _self. It is special to note that when the href is not specified, the following properties cannot be used: Download, Hreflang, media, rel, target, and type attribute. In HTML 4.01,,<a> tags can be hyperlinks or anchors. In HTML5, the,<a> tag is always a hyperlink, but if the href attribute is not set, it is just a placeholder for the hyperlink. HTML5 provides a number of new properties such as download used to specify the link target type to be downloaded to specify the MIME type of the connected document, while some HTML 4.01 properties such as CharSet, coords, and so on are no longer supported.

  

About the HTML tags, the thing.

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.