HTML learning

  •  
  • <!-->
  •  
  • <!DOCTYPE>
  • <a>   :超级链接
  •      <a href="www,reddit">reddi</a>  
  • <abbr>:   表示它所包含的文本是一个更长的单词或短语的缩写形式  通过对缩写词语进行标记,您就能够为浏览器、拼写检查程序、翻译系统以及搜索引擎分度器提供有用的信息。
  •      The <abbr title="People's Republic of China">PRC</abbr> was founded in 1948.
  •                       
  • <acronym>   :标签定义首字母缩写词  
                 <acronym title="World Wide Web">WWW</acronym>  
  • <address>   :标签定义文档作者或拥有者的联系信息。
  •                     
    <address>
    Written by 3wschool.com.cn<br />
    <a href="mailto:us@example.org">Email us</a><br />
    Address: Box 564, Disneyland<br />
    Phone: +12 34 56 78
    </address>
  • <applet> 定于嵌入的applet         ?
  • <area>  定于图像映射中的区域  
  • <img src ="file:///C|/Users/Andy/Desktop/捕获.PNG" alt="Planets" usemap ="#planetmap" />

    <map id ="planetmap">
    <area shape ="rect" coords ="1,1,80,125" href ="sun.htm" alt="Sun" />
    <area shape ="circle" coords ="0,0,0" href ="mercur.htm" alt="Mercury" />
    <area shape ="circle" coords ="124,58,8" href ="venus.htm" alt="Venus" />
    </map>

  •  
  •             
  • <article>   定义外部内容  ? 外部内容可以是来自一个外部的新闻提供者的一篇新的文章,或者来自 blog 的文本,或者是来自论坛的文本。亦或是来自其他外部源内容。
  •                

    <article>
    <a href="http://www.apple.com">Safari 5 released</a><br />
    7 Jun 2010. Just after the announcement of the new iPhone 4 at WWDC,
    Apple announced the release of Safari 5 for Windows and Mac......
    </article>

  • </br>  换行标志符
  • <aside>   标签定义 article 以外的内容。aside 的内容应该与 article 的内容相关。
  • <p>Me and my family visited The Epcot center this summer.</p>
    <aside>
    <h4>Epcot Center</h4>
    The Epcot Center is a theme park in Disney World, Florida.
    </aside>

  •              
  •   
  • <audio>  标签定义声音,比如音乐或其他音频流。
  •             

    <audio src="someaudio.wav">
    您的浏览器不支持 audio 标签。
    </audio>>

  • <b>  标签定义了文本中的部分比其余的部分更重要,并呈现为粗体。
  •      
  •                   the house with the <b>red </b>door
  • <base>:     

    <base> 标签为页面上的所有链接规定默认地址或默认目标。

    通常情况下,浏览器会从当前文档的 URL 中提取相应的元素来填写相对 URL 中的空白。

    使用 <base> 标签可以改变这一点。浏览器随后将不再使用当前文档的 URL,而使用指定的基本 URL 来解析所有的相对 URL。这其中包括 <a>、<img>、<link>、<form> 标签中的 URL。

    <base> 标签必须位于 head 元素内部。

  • 假设图像的绝对地址是:

    <img src="http://www.3wschool.com.cn/i/pic.gif" />

    现在我们在页面中的 head 部分插入 <base> 标签,规定页面中所有链接的基准 url:

    <head>
    <base href="http://www.3wschool.com.cn/i/" />
    </head>
    

    在上例中的页面上插入图像时,我们必须规定相对的地址,浏览器会寻找文件所使用的完整 URL:

    <img src="pic.gif" />
  •     
  •    
  • <basefont>
  • <bdo>
  • <big>
  • <blockquote>
  • <body>
  • <br>
  • <button>
  • <canvas>
  • <caption>
  • <center>
  • <cite>
  • <code>
  • <col>
  • <colgroup>
原文地址:https://www.cnblogs.com/a-n-dy/p/5128948.html