Can you have a within a ?

后端 未结 2 1150
隐瞒了意图╮
隐瞒了意图╮ 2020-12-04 15:07

Here is the story: I\'m using SWFObject to insert a Flash object into my page. The embedding eats my span. So, I lose all my CSS for it. I was thinking of movin

相关标签:
2条回答
  • 2020-12-04 15:23

    HTML4 specification states that:

    Inline elements may contain only data and other inline elements

    Span is an inline element, therefore having span inside span is valid. There's a related question: Can <span> tags have any type of tags inside them? which makes it completely clear.

    HTML5 specification (including the most current draft of HTML 5.3 dated November 16, 2017) changes terminology, but it's still perfectly valid to place span inside another span.

    0 讨论(0)
  • 2020-12-04 15:42

    Yes. You can have a span within a span. Your problem stems from something else.

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