Hallo Nils.
Laut Html-Standard sollten Block-Elemente nicht innerhalb von Inline-Elementen vorkommen.
Korrekt, dies ist im HTML-Standard definiert.
Wie ist das, wenn ich ein span in einem Link per css zu einem Block-Element umdefiniere? Wird der Standard dann verletzt oder "gildet das"?
Natürlich ist dies in Ordnung, da du ja hiermit lediglich die Darstellung beeinflusst. Strukturell betrachtet bleibt ein Blockelement immer ein Blockelement und ein Inlineelement immer ein Inlineelement, daran ändert die jeweilige Darstellung nichts.
Einen schönen Mittwoch noch.
Gruß, Ashura
--
sh:( fo:} ch:? rl:( br: n4:~ ie:{ mo:| va:) de:> zu:} fl:( ss:) ls:[ js:|
„It is required that HTML be a common language between all platforms. This implies no device-specific markup, or anything which requires control over fonts or colors, for example. This is in keeping with the SGML ideal.“
[HTML Design Constraints: Logical Markup]
sh:( fo:} ch:? rl:( br: n4:~ ie:{ mo:| va:) de:> zu:} fl:( ss:) ls:[ js:|
„It is required that HTML be a common language between all platforms. This implies no device-specific markup, or anything which requires control over fonts or colors, for example. This is in keeping with the SGML ideal.“
[HTML Design Constraints: Logical Markup]