【发布时间】:2011-09-28 15:44:48
【问题描述】:
jquery mobile 的单页方法中的多页是否可以用于页面的 SEO 可访问性和语义?
我制作了一个将使用 CMS 添加/修改数据的网站,该网站有很多页面,分为 3 个级别。
这种技术好吗?在多页中定义标题级别H1 到H6 会产生问题。我从这个页面获取了下面的代码。 http://jquerymobile.com/demos/1.0a4.1/#docs/pages/docs-pages.html
你可以看到这个页面有两个<h1>标签,但同样只有一个<h1>是好的。
和
<h1>
<h2>
<h1>
根据网页无障碍标准是不允许的。
<body>
<!-- Start of first page -->
<div data-role="page" id="foo">
<div data-role="header">
<h1>Foo</h1>
</div><!-- /header -->
<div data-role="content">
<p>I'm first in the source order so I'm shown as the page.</p>
<p>View internal page called <a href="#bar">bar</a></p>
</div><!-- /content -->
<div data-role="footer">
<h4>Page Footer</h4>
</div><!-- /header -->
</div><!-- /page -->
<!-- Start of second page -->
<div data-role="page" id="bar">
<div data-role="header">
<h1>Bar</h1>
</div><!-- /header -->
<div data-role="content">
<p>I'm first in the source order so I'm shown as the page.</p>
<p><a href="#foo">Back to foo</a></p>
</div><!-- /content -->
<div data-role="footer">
<h4>Page Footer</h4>
</div><!-- /header -->
</div><!-- /page -->
</body>
【问题讨论】:
标签: jquery html seo jquery-mobile accessibility