网站结构语义内容标注
发布日期:2023-03-21浏览量:115
正确地运用html是在web内容中获取最大灵活性而且收回投资回报的关键。html从一块儿头便严厉地域分文档的层级结构(题目一、题目二、段落、列表等)与文档的可视化外观(粗体、斜体、字体、字号、颜色等)。当标准的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>
即便在上面这个简略的实例中,搜索引擎也能区别题目的首要性和优先级别,察觉哪些网站建设关键字是首要的,而且辨认列表中观点上相干的项。专门针敌手机设计的层叠样式表可以采用适合小屏幕的字体显示题目和文字,屏幕阅读软件知道在哪以及怎样经由过程暂停或变换语音来向瞽者读者通报有关内容结构的信息。
相关文章: