HTML Quotation & Citation Elements, Comments, <noscript>

HTML Quotation and Citation Elements

  • <blockquote> Defineslongquotation, usually indent (缩进引用的文本) <blockquote> elements
  • <q> Defines an inline (short) quotation 短的引用, usuallyinsert quotation marks (使用引号把引用的文字括起来) around the <q> element.
  • <abbr> Defines an abbreviation 缩写 or acronym 可用title 属性显示完整拼写,告诉浏览器、翻译系统和搜索引擎有用的信息
  • <dfn> Defines a definition of a term or an abbreviation 借助CSS丰富效果
  • <address> contact information (author/owner) of a document or an article, 通常斜体显示
  • <cite> title of a work 作品名 (e.g. a book, a song, a movie, a TV show, a painting, a sculpture, etc.) 通常斜体显示
  • <bdo> Defines bi-directional override 双向的文字从左到右(或从右到左)输出

HTML <dfn>

该元素的使用方法有三种情况:

1. 如果有 title 属性,则它的title定义这个条款

<p>The <dfn title="World Health Organization">WHO</dfn> was founded in 1948.</p>
2. 如果该元素包含一个定义了 title 的 <abbr> 元素,则 <abbr> 的title 定义这个条款
<p>The <dfn><abbr title="World Health Organization">WHO</abbr></dfn> was founded in 1948.</p>
3. 该元素的内容是条款,而它的父元素则包含该条款的定义。
<p>The <dfn>WHO</dfn> World Health Organization was founded in 1948.</p>

注意:

The <i> tag can be used to indicate a technical term 技术词汇, a phrase from another language 其他语言的短语, a thought 一个想法, or a ship name 或者是一个名字, etc.


Conditional Comments

Conditional comments enable you to add a browser specific code that executes only if the browser is IE but is treated as a comment by other browsers. 

条件注释使得元素中的代码只在IE浏览器下运行显示,而被其他浏览器作为注释而忽略。

syntax:

<!--[if IE 5]>This is IE 5<br><![endif]-->
<!--[if IE 6]>This is IE 6<br><![endif]-->
<!--[if IE 7]>This is IE 7<br><![endif]-->
<!--[if IE 8]>This is IE 8<br><![endif]-->
<!--[if IE 9]>This is IE 9<br><![endif]-->

<noscript> tag

The <noscript> tag is used to provide an alternate content for users that have disabled scripts in their browser or have a browser that doesn't support client-side scripting.

该标签旨在当用户浏览器禁止scripts或者浏览器不支持客户端脚本运行时,提供并显示可替换的内容。

The <noscript> element can contain all the elements that you can find inside the <body> element of a normal HTML page.

该元素可以包含所有那些适用于正常HTML页面<body>元素中的元素。


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值