Table of Contents
<head>元素
<title> 元素在所有 HTML/XHTML 文档中都是必需的。
<base> 标签为页面上的所有链接规定默认地址或默认目标(target)
<link> 标签最常用于连接样式表:
<meta>元素
HTML字符实体
相关推荐:
Home Web Front-end HTML Tutorial HTML advanced knowledge

HTML advanced knowledge

May 16, 2018 am 09:41 AM
html Knowledge Advanced

本篇文章主要介绍HTML进阶知识,感兴趣的朋友参考下,希望对大家有所帮助。

文档类型

HTML5
&amp;lt;!DOCTYPE html&amp;gt;
Copy after login

&amp;lt;head&amp;gt;元素

&amp;lt;title&amp;gt; 元素在所有 HTML/XHTML 文档中都是必需的。

title 元素能够:

  • 定义浏览器工具栏中的标题

  • 提供页面被添加到收藏夹时显示的标题

  • 显示在搜索引擎结果中的页面标题

&amp;lt;base&amp;gt; 标签为页面上的所有链接规定默认地址或默认目标(target)

&amp;lt;base target=&quot;_blank&quot; /&amp;gt;
Copy after login
&amp;lt;head&amp;gt;&amp;lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;mystyle.css&quot; /&amp;gt;&amp;lt;/head&amp;gt;
Copy after login

&amp;lt;meta&amp;gt;元素

&amp;lt;meta&amp;gt; 标签始终位于 head 元素中。
元数据可用于浏览器(如何显示内容或重新加载页面),搜索引擎(关键词),或其他 web 服务。
下面的 meta 元素定义页面的描述:

&amp;lt;meta name=&quot;description&quot; content=&quot;Free Web tutorials on HTML, CSS, XML&quot; /&amp;gt;
Copy after login

下面的 meta 元素定义页面的关键词:

&amp;lt;meta name=&quot;keywords&quot; content=&quot;HTML, CSS, XML&quot; /&amp;gt;
Copy after login

定期刷新:

&amp;lt;head&amp;gt;
&amp;lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=gb2312&quot; /&amp;gt;
&amp;lt;meta http-equiv=&quot;Refresh&quot; content=&quot;5;url=http://www.php.cn&quot; /&amp;gt;
&amp;lt;/head&amp;gt;
Copy after login

HTML字符实体

&entity_name;或者&#entity_number;
实体名称对大小写敏感(&amp;lt;p&amp;gt;&amp;pound&amp;lt;/p&amp;gt;

显示结果 描述 实体名称 实体编号

空格 &amp;#160;
<小于号&amp;lt;&amp;#60;
> 大于号 &amp;gt; &amp;#62;
& 和号 &amp; &#38;
引号 &quot; &#34;
撇号 &apos;(IE不支持) &#39;
&cent; &#162;
£ &pound; &#163;
¥ 日圆 &yen; &#165;
欧元 &euro; &#8364;
§ 小节 &sect; &#167;
© 版权 &copy; &#169;
® 注册商标 &reg; &#174;
商标 &trade; &#8482;
× 乘号 &times; &#215;
÷ 除号 &pide; &#247;

相关推荐:

HTML知识点总结

分享一个关于HTML知识点的整合

对HTML知识点的整理汇总

The above is the detailed content of HTML advanced knowledge. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

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

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Table Border in HTML Table Border in HTML Sep 04, 2024 pm 04:49 PM

Guide to Table Border in HTML. Here we discuss multiple ways for defining table-border with examples of the Table Border in HTML.

Nested Table in HTML Nested Table in HTML Sep 04, 2024 pm 04:49 PM

This is a guide to Nested Table in HTML. Here we discuss how to create a table within the table along with the respective examples.

HTML margin-left HTML margin-left Sep 04, 2024 pm 04:48 PM

Guide to HTML margin-left. Here we discuss a brief overview on HTML margin-left and its Examples along with its Code Implementation.

HTML Table Layout HTML Table Layout Sep 04, 2024 pm 04:54 PM

Guide to HTML Table Layout. Here we discuss the Values of HTML Table Layout along with the examples and outputs n detail.

HTML Input Placeholder HTML Input Placeholder Sep 04, 2024 pm 04:54 PM

Guide to HTML Input Placeholder. Here we discuss the Examples of HTML Input Placeholder along with the codes and outputs.

Moving Text in HTML Moving Text in HTML Sep 04, 2024 pm 04:45 PM

Guide to Moving Text in HTML. Here we discuss an introduction, how marquee tag work with syntax and examples to implement.

HTML Ordered List HTML Ordered List Sep 04, 2024 pm 04:43 PM

Guide to the HTML Ordered List. Here we also discuss introduction of HTML Ordered list and types along with their example respectively

HTML onclick Button HTML onclick Button Sep 04, 2024 pm 04:49 PM

Guide to HTML onclick Button. Here we discuss their introduction, working, examples and onclick Event in various events respectively.

See all articles