1. 程式人生 > >HTML第三章總結

HTML第三章總結

 

在這一章節中,主要講了 HTML 中眾多的 element,element 就像在建築房屋時候的材料,它可以分為兩種:

  • Block Element
  • Inline Element
    Block Element 就像建築時候的大結構,需要在 plan 的時候先考慮好 Inline Element 就像是增加的小材料,需要進一步修飾的時候新增。
    在這本書中目前見到的常用的 Block Element 有 <blockquote>,<p>常見的 Inline Element 有 <q>

同時,Elements 還有另外一種分類的方法: 

  • Vold Element
  • Normal Element
    在這本書中目前見到的 Void Element 有 和

<q>element

Why we use <q> element?

Because Using double quotes doesn't make something  an actual quote.

The difference between <q> and <blockquote>

The<q> element :

  • A short Citation:
  • A inline element: appears "in line" within the flow of the text.

The<blockquote>element:

  • A long Citation
  • A block element:displayed as if they have a linebreak before and after them.

<br>element

What is <br> element?

<br>element is a void element. It doesn't have any content.
When you need to use a void element , you only use an opening tag.

list's elements

How to make a list?

Creating HTML list element needs 2 element:

  1. mark up each element:<li>
  2. determine what kind of list you're creating: ordered or unorderd.:<ol><ul>

Other

How to use" < "or" > i"n HTML?

You can use these special characters by using a character entity.You can also use it to type in a charactor not typeable in your editor.

Examples:
<: &lt; 
>:&gt;
copyright 符號 ©