Layout-neutral tag for CSS?

前端 未结 8 1939
执笔经年
执笔经年 2021-01-05 05:14

Is there an \"invisible\" tag in HTML (4) that I can use to make CSS distinctions

tag.myclass tag.mysubclass h1 {  } 

without having

相关标签:
8条回答
  • 2021-01-05 06:11

    I suspect you can use <object> tag without usual attributes for that purpose, but I haven't tested it thoroughly yet. It's even in HTML5 (unlike FONT tag).

    0 讨论(0)
  • 2021-01-05 06:12

    While all browsers give default styling to many HTML tags, at it's core HTML only describes data, it doesn't format it.

    What you're probably looking for is a DIV tag, because no browser gives any default styling to that tag.

    0 讨论(0)
提交回复
热议问题