首页 > Web开发 > 详细

HTML第三章总结

时间:2018-11-25 12:32:25      阅读:198      评论:0      收藏:0      [点我收藏+]

 

在这一章节中,主要讲了 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 符号 ?





HTML第三章总结

原文:https://www.cnblogs.com/FBsharl/p/HTML.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!