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

HTML headings and paragraphs_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:43:591155browse

HTML title

Defined by tags such as 4a249f0d628e2318394fd9b75b4636b1 - 4e9ee319e0fa4abc21ff286eeb145ecc

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

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 e388a4556c0f65e1904146cc1a846bee tag

<p>这是一个段落</p><p>这是另一个段落</p>

Effect:

This is a paragraph

This is another paragraph

The title tag 0425a91459005be0291b2d1da07d7ac2 and the paragraph tag e388a4556c0f65e1904146cc1a846bee 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.

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