HTML5 learning (3) text elements

Use VSCode editor, built-emmet plug.

ctrl + / comment / uncomment

ctrl + enter a new line

ctrl + shift + enter a new line-up

h$*4>lorem10

< H1 > lorem ipsum carrots enhanced rebates. Any either. </ H1 >
< H2 > Laudantium easy flattery, we do not have responsibilities architect. </ H2 >
< H3 > If we draw up their durations and fault resilience! Great, you! </ H3 >
< H4 > pleasures are born to repel flies. The choice of any one of them, for this is in the. </ H4 >
h represents the title element, $ representatives increments, on behalf of 4 * 4 times,> represents the child elements or content, lorem refers to the number of false random text, each containing 10 is 10 words.
 
h $ * 3> {$} heading stage
<h1>1级标题</h1>
<h2>2级标题</h2>
<h3>3级标题</h3>

注:lorem不需要加大括号,其他文本内容需要。

块元素如div p h 一般是新起一行,而行内元素如span是不新起一行的。

HTML 标准中块级元素和行内元素的区别至高出现在 4.01 标准中。在 HTML5,这种区别被一个更复杂的内容类别代替。

”块级“类别大致相当于 HTML5 中的流内容类别,而”行内“类别相当于 HTML5 中的措辞内容类别,不过除了这两个还有其他类别。

span元素,无语义,仅用于设置样式。

pre元素:预格式化文本元素,在pre元素内不会空白折叠。

Guess you like

Origin www.cnblogs.com/1016391912pm/p/11531297.html