Is it wrong to change a block element to inline with CSS if it contains another block element?

后端 未结 9 1407
遇见更好的自我
遇见更好的自我 2020-11-22 16:25

I know it\'s wrong to put a block element inside an inline element, but what about the following?

Imagine this valid markup:

This

9条回答
  •  佛祖请我去吃肉
    2020-11-22 17:08

    I don't know off the top of my head if this validates any rules but I would recommend using the W3C HTML Validator and the W3C CSS Validator to determine that. Hope this is helpful!

提交回复
热议问题