0
What Difference Does It Make: <h1><span>My Media</span></h1> and <h1>My Media</h1>
What Difference Does It Make Putting A Span Within The Header Tag Composition Below: <h1><span>My Media</span></h1> ?
2 Respuestas
+ 4
No different, if you not style the span tag.
+ 4
No "visual" difference if the <span> isn't styled... but technically not internally stored and handled by same way, not allowing same effects: as <span> is there the only child of the <h1>, you can compare it to a layer: until you draw something on the back layer and on the first one, that would not make any visual difference (however in html/css, to draw something under the <span> element inside the <h1> parent, you need to style the <span> to be hovering without reserving its normal required place to be displayed in the content flow default logical/behavior).
Basic style possibility allowed by this kind of embeding is to set two different border as if, visually, it was only once element ^^ (commonly, structure is almost determinated by the page layout requirements, at developing time, and usually try to be enough to cover future needs by only changing css rather than html)...