html结构内容拾忆

文本格式化:

1 <b>This text is bold</b><!--定义粗体文本。-->
2 <strong>This text is strong</strong><!-定义加重语气。-->
3 <big>This text is big</big><!-定义大号字。-->
4 <em>This text is emphasized</em><!-定义着重文字。-->
5 <i>This text is italic</i><!-定义斜体字。-->
6 <small>This text is small</small><!-定义小号字。-->
7 This text contains<sub>subscript</sub><!-定义下标字。-->
8 This text contains<sup>superscript</sup><!-定义上标字。-->

This text is bold 
This text is strong 
This text is big 
This text is emphasized 
This text is italic 
This text is small 
This text contains subscript 
This text contains superscript

<p>一打有 <del>二十</del> <ins>十二</ins> 件。</p>
<!--一同使用,来描述文档中的更新和修正。定义删除字和插入字。大多数浏览器会改写为删除文本和下划线文本。一些老式的浏览器会把删除文本和下划线文本显示为普通文本。-->

一打有 二十 十二 件。

计算机输出标签

 

<pre>
for i = 1 to 10
     print i
next i
</pre><!--pre 标签很适合显示计算机代码-->

 

for i = 1 to 10
     print i
next i
<code>Computer code</code><!--定义计算机代码。-->
<kbd>Keyboard input</kbd><!--定义键盘码。-->
<tt>Teletype text</tt><!--定义打字机代码。-->
<samp>Sample text</samp><!--定义计算机代码样本。-->
<var>Computer variable</var><!--定义变量。-->

Computer code 
Keyboard input 
Teletype text 
Sample text 
Computer variable 

注释:这些标签常用于显示计算机/编程代码。

引用、引用和术语定义

The <abbr title="People‘s Republic of China">PRC</abbr> was founded in 1949.<!--定义缩写。使用全局的 title 属性,这样就能够在鼠标指针移动到 <abbr> 元素上时显示出简称/缩写的完整版本。-->
<acronym title="World Wide Web">WWW</acronym><!--定义首字母缩写。-->
<address>
Written by <a href="mailto:[email protected]">Donald Duck</a>.<br> 
Visit us at:<br>
Example.com<br>
Box 564, Disneyland<br>
USA
</address><!--定义文档或文章的作者/拥有者的联系信息。不应该用于描述通讯地址,除非它是联系信息的一部分。-->
<bdo dir="rtl">Here is some text</bdo><!--定义文字方向。-->
<blockquote cite="http://www.wwf.org">
WWF‘s ultimate goal is to build a future where people live in harmony with nature.
</blockquote><!--定义长的引用。cite规定引用的来源。主流浏览器均不支持 cite 属性。不过,搜索引擎可能会使用该属性获得更多有关引用的信息。-->
<p>Here comes a short quotation: <q>This is a short quotation</q></p><!--定义短的引用语。-->
<cite><!--定义引用。可使用该标签对参考文献的引用进行定义,比如书籍或杂志的标题。-->


PRC was founded in 1949.
WWW
Written by Donald Duck.(点击进入email)
Visit us at:
Example.com
Box 564, Disneyland
USA
txet werbeH emos si ereH
  WWF‘s ultimate goal is to build a future where people live in harmony with nature.
Here comes a short quotation: "This is a short quotation"

========================

 

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。