[英]Deprecated tags in html5
我正在使用 html5 來構建網頁。 我可以使用 html5 標簽。 我想知道我是否可以使用在 html5 中不推薦使用的 html 標簽,例如<ul>
標簽。
編輯(更正錯字):我的意思是<u>
標簽。
標簽<acronym>
, <applet>
, <basefont>
, <big>
, <center>
, <dir>
, <font>
, <frame>
, <frameset>
, <noframes>
, <isindex>
, <strike>
, <tt>
在HTML5中不再使用。 它們沒有被棄用,但你最好不要使用它們( source )。
您還可以檢查缺少的屬性: http : //www.w3.org/TR/html5-diff/#absent-attributes 。
是的,您可以在 html 5 中使用<u>
標記,即使它已被棄用。 但是建議使用 CSS 來實現相同的效果。
<!DOCTYPE html>
<html>
<head>
<title>Can we use deprecated html 4 elements in html 5?</title>
</head>
<body>
This is a <u>test</u>.
</body>
</html>
您可以使用 W3C 驗證器來驗證它。
在 html5 中不推薦使用
<ul>
標簽
<ul>
沒有被棄用,你可以找到一些被棄用的元素列表和它們的替代品,就像 這個一樣,試着多谷歌一下:-)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.