- 所有全局属性
href
rel
media
hreflang
type
sizes
title(title属性对于link标签有特殊的含义)
- alternate:设置替换文档
archives:历史归档
author:文档作者
first:与当前文档同系列的第一个文档。
help:帮助文档
icon:文档图标
index:当前文档的内容表格或链接清单。
last:与当前文档同系列的最后一个文档。
license:当前文档的版权license
next:与当前文档同系列的下一个文档。
pingback:显示pingback当前文档的,pingback服务器地址。
prefetch:预加载资源
prev:与当前文档同系列的上一个文档。
search:相关的搜索页面
stylesheet:外部css样式文档
sidebar:侧边栏设置
tag:标签
up:当前文档的上下文文档
属于meta信息。
放在head中,或者head的子元素noscript中。
为空元素。
拥有属性
DOM 接口:
- 代码: 全选 运行
-
interface HTMLLinkElement : HTMLElement {<br> attribute boolean disabled;<br> attribute DOMString href;<br> attribute DOMString rel;<br> readonly attribute DOMTokenList relList;<br> attribute DOMString media;<br> attribute DOMString hreflang;<br> attribute DOMString type;<br> [PutForwards=value] readonly attribute DOMSettableTokenList sizes;<br> };<br> HTMLLinkElement implements LinkStyle;
link标签用途是设置文档的外部资源。
rel和href属性必须设置,其中href属性必须是一个有效的URL。
其中rel可设置成以下值:
link标签可以建立两种形式的链接,一种是外部资源,另一种是超级连接,例如rel设置成stylesheet是载入外部css样式文档,而设置成first就是意味着告诉浏览器该文档所处系列的第一个文档的超级链接。
一个link标签可以同时设置多个链接(甚至可以包含一些外部资源形式的和一些超级链接形式的),可设置的链接数量取决于link标签的rel属性的设置。
link标签执行过程:
1、如果href值为空,则停止解析此标签。
2、如果资源的URL属性是相对的,则根据相对此文件计算绝对URL值。
3、如果失败,停止解析。
4、根据绝对URL载入资源。

HTML5introducesnewinputtypesthatenhanceuserexperience,simplifydevelopment,andimproveaccessibility.1)automaticallyvalidatesemailformat.2)optimizesformobilewithanumerickeypad.3)andsimplifydateandtimeinputs,reducingtheneedforcustomsolutions.

H5 is HTML5, the fifth version of HTML. HTML5 improves the expressiveness and interactivity of web pages, introduces new features such as semantic tags, multimedia support, offline storage and Canvas drawing, and promotes the development of Web technology.

Accessibility and compliance with network standards are essential to the website. 1) Accessibility ensures that all users have equal access to the website, 2) Network standards follow to improve accessibility and consistency of the website, 3) Accessibility requires the use of semantic HTML, keyboard navigation, color contrast and alternative text, 4) Following these principles is not only a moral and legal requirement, but also amplifying user base.

The H5 tag in HTML is a fifth-level title that is used to tag smaller titles or sub-titles. 1) The H5 tag helps refine content hierarchy and improve readability and SEO. 2) Combined with CSS, you can customize the style to enhance the visual effect. 3) Use H5 tags reasonably to avoid abuse and ensure the logical content structure.

The methods of building a website in HTML5 include: 1. Use semantic tags to define the web page structure, such as, , etc.; 2. Embed multimedia content, use and tags; 3. Apply advanced functions such as form verification and local storage. Through these steps, you can create a modern web page with clear structure and rich features.

A reasonable H5 code structure allows the page to stand out among a lot of content. 1) Use semantic labels such as, etc. to organize content to make the structure clear. 2) Control the rendering effect of pages on different devices through CSS layout such as Flexbox or Grid. 3) Implement responsive design to ensure that the page adapts to different screen sizes.

The main differences between HTML5 (H5) and older versions of HTML include: 1) H5 introduces semantic tags, 2) supports multimedia content, and 3) provides offline storage functions. H5 enhances the functionality and expressiveness of web pages through new tags and APIs, such as and tags, improving user experience and SEO effects, but need to pay attention to compatibility issues.

The difference between H5 and HTML5 is: 1) HTML5 is a web page standard that defines structure and content; 2) H5 is a mobile web application based on HTML5, suitable for rapid development and marketing.


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

SecLists
SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

Atom editor mac version download
The most popular open source editor

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool
