A detailed introduction to HTML headers

高洛峰
Release: 2017-03-22 14:13:47
Original
1397 people have browsed it

HTML element

The element contains all head tag elements. In the element you can insert scripts, style files (CSS), and various meta information.

Element tags that can be added to the head area are: , <style>, <meta>, <link>, <script>, <noscript>, and <base>.</p> <hr> <h2 style="font-size: 22px; font-family: 'Microsoft Yahei', 'Helvetica Neue', Helvetica, Arial, sans-serif; margin-top: 10px; margin-bottom: 10px; font-weight: bold; background-color: transparent; color: rgb(0, 0, 0);"> HTML <title> element</h2> <p style="line-height: 16px; font-size: 12px; font-family: 'Microsoft Yahei', 'Helvetica Neue', Helvetica, Arial, sans-serif;"> The <title> tag defines the title of different documents. </p> <p style="line-height: 16px; font-size: 12px; font-family: 'Microsoft Yahei', 'Helvetica Neue', Helvetica, Arial, sans-serif;"> <title> is required in HTML/XHTML documents. </p> <p style="line-height: 16px; font-size: 12px; font-family: 'Microsoft Yahei', 'Helvetica Neue', Helvetica, Arial, sans-serif;"> <title> Element:</p> <ul style="line-height: 16px; font-size: 12px; font-family: 'Microsoft Yahei', 'Helvetica Neue', Helvetica, Arial, sans-serif;" class=" list-paddingleft-2"> <li><p> Defines the title of the browser toolbar</p></li> <li><p><br></p></li> <li><p> The title </p></li> <li><p><br></p></li> <li><p># that is displayed in the Favorites when a web page is added to Favorites The title that appears on search engine results pages</p></li> <li><p><br></p></li> </ul> <p style="line-height: 16px; font-size: 12px; font-family: 'Microsoft Yahei', 'Helvetica Neue', Helvetica, Arial, sans-serif;"> A simple HTML document:</p> <p style="font-size: 13px; font-family: 'courier new';"> <!DOCTYPE html><br> <html><br> <head><br> <title>Title of the document



The content of the document......



HTML element

The tag describes the basic link address/link target, which serves as the default link for all link tags in the HTML document:




HTML element

The tag defines the relationship between the document and external resources.

The tag is usually used to link to a style sheet:




HTML


HTML element

The meta tag describes some basic metadata.

The tag provides metadata. Metadata is also not displayed on the page, but is parsed by the browser.

The META element is typically used to specify a web page's description, keywords, the file's last modification time, author, and other metadata.

Metadata can be used by browsers (how content is displayed or pages are reloaded), search engines (keywords), or other web services.

Generally placed in the area

Tag-Usage Example

Define keywords for search engines:

Define description content for the web page:

Define page author:

Refresh the current page every 30 seconds:


HTML
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template

About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!