html内联元素与块元素

一.行内元素和块级元素有哪些?

    块元素(block element)和内联元素(inline element)都是html规范中的概念。块元素和内联元素的基本差异是块元素一般都从新行开始。而当加入了css控制以后,块元素和内联元素的这种属 性差异就不成为差异了。

块级元素
<address>information on author
<blockquote>long quotation
<button>push button
<caption>table caption
<dd>definition description
<del>deleted text
<div>generic language/style container
<dl>definition list
<dt>definition term
<fieldset>form control group
<form>interactive form
<h1>heading
<h2>heading
<h3>heading
<h4>heading
<h5>heading
<h6>heading
<hr>horizontal rule
<iframe>inline subwindow
<ins>inserted text
<legend>fieldset legend
<li>list item
<map>client-side image map
<noframes>alternate content container for non frame-based rendering
<noscript>alternate content container for non script-based rendering
<object>generic embedded object
<ol>ordered list
<p>paragraph
<pre>preformatted text
<table>table
<tbody>table body
<td>table data cell
<tfoot>table footer
<th>table header cell
<thead>table header
<tr>table row
<ul>unordered list
行内元素
<a>anchor
<abbr>abbreviated form
<acronym>acronym
<b>bold text style
<bdo>I18N BiDi over-ride
<big>large text style
<br>forced line break
<button>push button
<cite>citation
<code>computer code fragment
<del>deleted text
<dfn>instance definition
<em>emphasis
<i>italic text style
<iframe>inline subwindow
<img>Embedded image
<input>form control
<ins>inserted text
<kbd>text to be entered by the user
<label>form field label text
<map>client-side image map
<object>generic embedded object
<q>short inline quotation
<samp>sample program output, scripts, etc.
<select>option selector
<small>small text style
<span>generic language/style container
<strong>strong emphasis
<sub>subscript
<sup>superscript
<textarea>multi-line text field
<tt>teletype or monospaced text style
<var>instance of a variable or program argument

因为HTML中存在可变元素,所以些元素有重复。


   可变元素为根据上下文语境决定该元素为块元素或者内联元素。   
  * applet - java applet   
  * button - 按钮   
  * del - 删除文本   
  * iframe - inline frame   
  * ins - 插入的文本   
  * map - 图片区块(map)   
  * object - object对象   
  * script - 客户端脚本 



  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值