Home > Web Front-end > HTML Tutorial > HTML two (basic tag)_html/css_WEB-ITnose

HTML two (basic tag)_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:50:17
Original
1303 people have browsed it

1. Title

HTML title (Heading) is defined through tags such as

-

.

<!--标题--><h1>标题 1</h1><h2>标题 2</h2><h3>标题 3</h3><h4>标题 4</h4><h5>标题 5</h5><h6>标题 6</h6><!--段落--><p>请仅仅把标题标签用于标题文本。不要仅仅为了产生粗体文本而使用它们。请使用其它标签或 CSS 代替。</p>
Copy after login

Results:

Title 1

Title 2

Title 3

Title 4

Title 5 Title 6

2. Paragraph

HTML paragraph is defined through the

tag.

<p>这是段落。</p><p>这是段落。</p><p>这是段落。</p><p>段落元素由 p 标签定义。</p> 
Copy after login

Result:

This is the paragraph.

This is the paragraph.

This is the paragraph.

Paragraph elements are defined by the p tag.

<!--多行段落和段落中有空格--><p>这个段落在源代码中包含许多行但是浏览器忽略了它们。</p><p>这个段落在源代码       中包含   许多行但是      浏览器忽略了  它们。</p><p>段落的行数依赖于浏览器窗口的大小。如果调节浏览器窗口的大小,将改变段落中的行数。</p>
Copy after login

Result:

This paragraph contains many lines in the source code but the browser ignores them.

This paragraph contains many lines in the source code but the browser ignores them.

The number of lines in a paragraph depends on the size of the browser window. If you resize the browser window, the number of lines in the paragraph will change.

<h1>春晓</h1><p>    春眠不觉晓,      处处闻啼鸟。        夜来风雨声,          花落知多少。</p><p>注意,浏览器忽略了源代码中的排版(省略了多余的空格和换行)。</p>
Copy after login

Result:

Spring Dawn

Spring sleep without waking up, I can hear the singing of birds everywhere. The sound of wind and rain comes at night, and you know how many flowers have fallen.

Note that browsers ignore typography in source code (extraneous spaces and line breaks are omitted).

3. Links

HTML links are defined through the tag.

<a href="http://www.163.com">这是一个连接</a>
Copy after login

Result: This is a link

<!--在新的浏览器窗口打开链接 target值设置为_blank--><a href="http://www.163.com" target="_blank">这是一个连,在新窗口中打开</a>
Copy after login

3.1, anchor link

within the same page The connection jumps from one location to another

Create anchor

Display name 1

Connection Anchor

Connection display name 1

<a href="#a4">连接到a4</a><a name="a4">a4</a>
Copy after login

4. Image

HTML images are defined through the tag.

<img src="图像路径"  />
Copy after login

Related labels:
source:php.cn
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template