开发者

Resolving HTML validation "Warning: trimming empty tag"

开发者 https://www.devze.com 2023-02-10 05:11 出处:网络
Question: what about placing &a开发者_JAVA百科mp;nbsp; as the contents of the empty tag? It validates, but is that considered a hack?Regarding your question and with the detail from your comment, it
Question: what about placing &a开发者_JAVA百科mp;nbsp; as the contents of the empty tag?

It validates, but is that considered a hack?


Regarding your question and with the detail from your comment, it is not a hack, but it is most likely not best practice either.

If you are looking to have a blank item for default, I would recommend --Select One-- instead, and if you are looking for a divider -------- would probably be your best option.

0

精彩评论

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