小编Man*_*olo的帖子

html标题级别以及何时使用它们

我为无知而道歉,但是我很难确定何时改变我在H1-H6之间的标题.我正在尝试在codeacemy.com上自学代码,我的理解是为每个标题更改标题,例如:

<h1>Introduction</h1>
  <p>This is the intro</p>

<h2>Body</h2>
  <p>This is the body</p>

<h3>Conclusion</h3>
  <p>This is the conclusion</p>
Run Code Online (Sandbox Code Playgroud)

代码学院希望我多次使用相同的标题(如下所示)是对还是错?我什么时候开始使用不同的标题?请帮助我澄清一下,这样我可以更高效地了解我编写代码的使命.

Code Academy ex:

  <h2>Ethiopia</h2>
    <p>Ethiopian beans can be divided into 3 categories: Longberry, Shortberry, and Mocha. Longberry varieties consist of the largest beans and are often considered of the highest quality in both value and flavor. Shortberry varieties are smaller. The Mocha variety is a highly prized commodity. Mocha Harars are known for their peaberry beans that often have complex chocolate, spice and …
Run Code Online (Sandbox Code Playgroud)

html

2
推荐指数
1
解决办法
65
查看次数

标签 统计

html ×1