网站结构语义内容标注
准确地应用HTML是在Web内容中获取最年夜灵巧性而且收回投资回报的症结。HTML从一开端便严厉地域分文档的层级构造(题目1、题目2、段落、列表等)与文档的可视化外不雅(粗体、斜体、字体、字号、色彩等)。当尺度的HTML标签被用来转达寄义和内容构造时,HTML标注被以为是有语义的,而不是仅仅让文字在阅读器中以一种特定的方法显示。
Web标注的语义化是高效Web编码、信息架构、通用可用性、搜刮引擎可见性以及最年夜显示灵巧性的焦点概念基本。可以经由过程Web阅读器、各类移动盘算设计和屏幕浏览器来拜访Web内容。也可以经由过程搜刮引擎以及其他能从HTML标注内容的方法中提取寄义和高低文的盘算体系来浏览Web内容。
<h1>This is the most important headline</h1>
<p>This is ordinary paragraph text within the body of the document, where certain words and phrases may be<em> emphasized</em> to mark them as <strong>particularly important</strong>.</p >
<h2>This is a headline of secondary importance to the headline above</h2>
<p>Any time you list related things, the items should be marked up in the form of a list:</p > <ul>
<li>A list signals that a group of items are conceptually related to each other</li> <li>Lists may be ordered (numbered or alphabetic) or unordered(bulleted items)</li> <li>Lists may also be menus or lists of links for navigation</1i> <li>Cascading style Sheets can make lists look many different ways</li></ul>
即使在上面这个简略的实例中,搜刮引擎也能区分题目的主要性和优先级别,觉察哪些网站制造症结字是主要的,而且辨认列表中概念上相干的项。专门针敌手机设计的层叠样式表可以采取合适小屏幕的字体显示题目和文字,屏幕浏览软件知道在哪以及若何经由过程暂停或变换语音来向瞽者读者传递有关内容构造的信息。