开发者

html correctness link blank or pound sign

What's more correct, an empty string link or a pound? For example for anchor tags Or if I were to reference a style sheet, basically anywhere 开发者_StackOverflowin the html document where a link should be, if I want to remove all these links is it better to make it a pound or blank? If you need more details i'm basically canning them and need to remove all external dependencies.


You can use <a href="javascript:void(0)"></a> to avoid any loading or scrolling.


If an anchor tag has a blank href, clicking it would cause the page to reload, whereas a pound would stay on the page, but bring them back to the top. Neither are ideal since the user would be confused...

For removing stylesheets...why not remove the whole line altogether?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜