Home  >  Article  >  Web Front-end  >  Introduction to HTML head elements and related tutorials

Introduction to HTML head elements and related tutorials

零下一度
零下一度Original
2017-05-16 14:32:121368browse

View online example

b2386ffb911b14667cb8f0f91ea547a7 - defines the title of the HTML document
Use the b2386ffb911b14667cb8f0f91ea547a7 tag to define the title of the HTML document

< ;base> - defines the URL of all links
Use dde6fb694e6711ae5e6f381704c04ae4 to define the default link target address of all links in the page.

e8e496c15ba93d81f6ea4fe5f55a2244 - Provides meta tags for HTML documents
Use the e8e496c15ba93d81f6ea4fe5f55a2244 element to describe the description, keywords, author, character set, etc. of the HTML document.

HTML 8cea2e99ba256aa9b779f5ab5949ca21 element

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

The element tags that can be added in the head area are: b2386ffb911b14667cb8f0f91ea547a7, c9ccee2e6ea535a969eb3f532ad9fe89, e8e496c15ba93d81f6ea4fe5f55a2244, 2cdf5bf648cf2f33323966d7f58a7f3f, 3f1c4e4b6b16bbbd69b2ee476dc4f83a, 2b0b25ff593c5b6c03403dd6234ffb2c, and 7e7eb5ac313c24507d9a25eef443a63f.

HTML b2386ffb911b14667cb8f0f91ea547a7 Element

b2386ffb911b14667cb8f0f91ea547a7 tag defines the title of different documents.

b2386ffb911b14667cb8f0f91ea547a7 is required in HTML/XHTML documents.

b2386ffb911b14667cb8f0f91ea547a7 Element:

Defines the title of the browser toolbar

The title that is displayed in the favorites when a web page is added to the favorites

The title displayed on the search engine results page

A simple HTML document:

<!DOCTYPE html>
<html>
<head>
<title>Title of the document</title>
</head>
<body>
The content of the document......
</body>
</html>

HTML dde6fb694e6711ae5e6f381704c04ae4 element

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

<head>
<base href="www.php.cn/images/" target="_blank">
</head>

HTML 2cdf5bf648cf2f33323966d7f58a7f3f element

2cdf5bf648cf2f33323966d7f58a7f3f Tags define the relationship between a document and external resources. The

2cdf5bf648cf2f33323966d7f58a7f3f tag is usually used to link to a style sheet:

<head>
<link rel="stylesheet" type="text/css" href="mystyle.css">
</head>

HTML c9ccee2e6ea535a969eb3f532ad9fe89 The element

c9ccee2e6ea535a969eb3f532ad9fe89 tag defines the style file of the HTML document QuoteAddress.

In the c9ccee2e6ea535a969eb3f532ad9fe89 element you need to specify the style file to render the HTML document:

<head>
<style type="text/css">
body {background-color:yellow}
p {color:blue}
</style>
</head>

HTML e8e496c15ba93d81f6ea4fe5f55a2244 element

## The #meta tag describes some basic metadata. The

e8e496c15ba93d81f6ea4fe5f55a2244 tag provides metadata. Metadata is also not displayed on the page, but will be 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 to display content or reload pages), search engines (keywords), or other web services.

e8e496c15ba93d81f6ea4fe5f55a2244 is generally placed in the 93f0f5c25f18dab9d176bd4f6de5d30e area

e8e496c15ba93d81f6ea4fe5f55a2244 tag - usage example

Define keywords for search engines:

<meta name="keywords" content="HTML, CSS, XML, XHTML, JavaScript">

[Related recommendations]

1.

Special recommendation

:"php Programmer Toolbox" V0.1 version download

2. Free html online video tutorial

3. php.cn original html5 videotutorial

The above is the detailed content of Introduction to HTML head elements and related tutorials. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn