Home >Web Front-end >HTML Tutorial >w3schools 网站的 HTML 教程之 HTML 基础_html/css_WEB-ITnose

w3schools 网站的 HTML 教程之 HTML 基础_html/css_WEB-ITnose

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-24 11:17:271122browse

如果下述案例所使用的标签你还不会,不要担心。

你将在下一章学习到这些标签。

HTML 文档

所有 HTML 文档必须是以这个类型声明: 。

HTML 文档本身要以 开始,以 结束。

HTML 文档在浏览器中可见的部分是在

和 之间。

<!DOCTYPEhtml><html>  <body>    <h1>My First Heading</h1>    <p>My first paragraph.</p>  </body></html>

HTML 标题

HTML 标题的定义使用从

标签:

<h1>This is a heading</h1><h2>This is a heading</h2><h3>This is a heading</h3>

HTML 段落

HTML 段落的定义使用

标签:

<p>This is a paragraph.</p><p>This is another paragraph.</p>

HTML 链接

HTML 链接的定义使用 标签:

<a href="http://www.longestory.com">This is a link</a>

链接是通过 href 属性指定跳转的地址。

属性是用来给HTML元素提供额外的信息。

HTML 图像

HTML 图像的定义使用 w3schools 网站的 HTML 教程之 HTML 基础_html/css_WEB-ITnose 标签。

该标签提供的属性中,src 属性表示图像的地址,alt 属性表示提示内容,width 和 height 属性表示图像显示的大小。

<img src="/static/imghwm/default1.png"  data-src="longestory.jpg"  class="lazy" alt="longestory.com"    style="max-width:90%"  style="max-width:90%">

你将在后面的章节中学习到更多有关属性的内容。

本文翻译于《w3schools》网站提供的 HTML 教程。

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