开发者

Resolving HTML validation "Warning: trimming empty tag"

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜