Enter HTML5 entry to proficient:<link> label

Source: Internet
Author: User
Keywords tags HTML5 Getting started to master

"Reprint please retain the integrity of the content of the Wind network article, if you do not comply with this principle, we will retain the right to pursue legal responsibility"

<link> Label

Definitions and usage

<link> label defines the relationship between two connected documents.

Differences between HTML 4.01 and HTML 5

Some properties in HTML 4.01 are no longer supported.

Tips and Comments:

Wind Network (www.ithov.com) Note: The link element is an empty element that contains only attributes.

Wind Network (www.ithov.com) Note: This element can exist only in the head section, but it can occur any number of times.

Example

How to use <link> to link external style sheets:

<head>
<link rel= "stylesheet" type= "Text/css" href= "C3.css"/>
</head>

Property

The

property describes 4 5 charset the character encoding that defines the target URL. The default value is "Iso-8859-1". Not supported. 4 &amp;http://www.aliyun.com/zixun/aggregation/37954.html "&gt;nbsp; The URL of an HREF target document or resource. 4 5 Hreflang defines the base language of the target URL. 4 5 Media Specify what device the document will be displayed on. 4 5 rel Defines the relationship between the current document and the target document. 4 5 Rev Defines the relationship between the target document and the current document. 4 where target opens the destination URL. 4 type Sets the MIME type of the destination URL. 4 5

Standard properties

Class, Contenteditable, ContextMenu, dir, draggable, id, irrelevant, lang, ref, Registrationmark, TabIndex, template, For a complete description of the title, visit the standard properties in HTML 5.

Event Properties

Onabort, onbeforeunload, onblur, onchange, onclick, OnContextMenu, ondblclick, Ondrag, Ondragend, OnDragEnter, OnDragLeave, OnDragOver, ondragstart, OnDrop, OnError, onfocus, onkeydown, onkeypress, onkeyup, onload, OnMessage, OnMouseDown, OnMouseMove, onmouseover, onmouseout, onmouseup, OnMouseWheel, OnResize, Onscroll, Onselect, onsubmit, OnUnload for a complete description, visit the event properties in HTML 5.

Tiy instance

Link to an external style sheet

This example shows how to <link> tags linked to an external style sheet.

<html>
<head>
<link rel= "stylesheet" type= "Text/css" href= "/html/csstest1.css" >
</head>
<body>
<h1> I format it through an external style sheet. </h1>
<p> Wind Network (www.ithov.com) I am the same! </p>
</body>
</html>

Related Article

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.