gpt4 book ai didi

html - 导航栏是否对 SEO 不利

转载 作者:塔克拉玛干 更新时间:2023-11-03 02:37:58 26 4
gpt4 key购买 nike

我正在为一个我还没有建立的网站做一些 SEO,它有这个导航栏:

 <div align="right" id="menu">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td><div align="center" class="menuitem1" onmouseover="this.className='menuitem1a'" onmouseout="this.className='menuitem1'" onclick="window.location='index.php'" >
<div style="margin-top:80px">Profile</div>
</div></td>
<td><div align="center" class="menuitem2" onmouseover="this.className='menuitem2a'" onmouseout="this.className='menuitem2'" onclick="window.location='customers.php'">
<div style="margin-top:80px">Customers</div>
</div></td>
<td><div align="center" class="menuitem3c">
<div style="margin-top:80px">Services</div>
</div></td>
<td><div align="center" class="menuitem4" onmouseover="this.className='menuitem4a'" onmouseout="this.className='menuitem4'" onclick="window.location='products.php'">
<div style="margin-top:80px">Products</div>
</div></td>
<td><div align="center" class="menuitem5" onmouseover="this.className='menuitem5a'" onmouseout="this.className='menuitem5'" onclick="window.location='contact.php'">
<div style="margin-top:80px">Contact</div>
</div></td>
</tr>
</table>
</div>

我注意到的第一件事是,它没有 anchor !其次,当我制作网站的站点地图时,只有索引页面在那里。编辑:它也会在评估时吐出错误!从 SEO 的角度来看,这会产生负面影响吗?提前致谢!

最佳答案

是的。由于 JS 通常 被抓取工具忽略,它无法访问其余页面,因为导航对其不起作用。您需要将这些 DIV 更改为 anchor 并适本地设置它们的样式以保留旧样式。

此外,此方法也不是很容易访问,因为从页面内容中看不出哪些元素是链接。别管语义

关于html - 导航栏是否对 SEO 不利,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6235368/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com