Home > Web Front-end > HTML Tutorial > HTML headings and paragraphs_html/css_WEB-ITnose

HTML headings and paragraphs_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:43:59
Original
1142 people have browsed it

HTML title

Defined by tags such as

-

<h1>一标题</h1><h2>二标题</h2><h3>三标题</h3><h4>四标题</h4><h5>五标题</h5><h6>六标题</h6>        
Copy after login

Effect : As we can see, the title is bold or large text, so it is important to note that the title tag should be used semantically, that is, the title tag should only be used for the title text. If you use them to produce bold or large text, use other tags or CSS instead.

One title

Two titles

Three titles

Four titles

Five titles Six titles

h1 is used as the main title (the most important), followed by h2 (the second most important), then h3, and so on.

It is important to use titles to present the document structure. On the one hand: (User Experience) users can quickly browse your webpage through titles; on the other hand: (SEO) Search engines use titles for your webpages. The structure and content are indexed. You can use h1 for the more important titles in the web page. If you need to change the font style, change it through CSS. Because h1 is the most important title, crawlers will be much more sensitive to h1 and will think that titles marked with h1 are important content in the web page.

HTML paragraph

defined by

tag

<p>这是一个段落</p><p>这是另一个段落</p>
Copy after login

Effect:

This is a paragraph

This is another paragraph

The title tag and the paragraph tag

are both block-level tags. By default, HTML or browser The compiler automatically adds an extra blank line before and after block-level elements. And different browsers will add certain margins and padding to the content of these tags.

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