Thomas J.S.: Grammatik

Beitrag lesen

Hallo Swen!

Also:
<SPAN CLASS="Redaktion"><UL> einfach durch
<div class="redaktion"> erstzen

öhhh?!. Ich hatte bislang immer gedacht, <span> ist bei nicht-strukturierten Textabschnitten zu verwenden, die so via stylesheet "bearbeitet" werden können. <div> hingegen ist ein strukturenschaffendes Tag.

'Tschuldigung aber was "öhhh?!" ? Das ist richtig. Wo ist dabei das "Problem" ?

»»Hab ich da was falsch verstanden

keine Ahnung, aber:

<html 4.0/4.01>
Generally, block-level elements may contain inline elements and other block-level elements. Generally, inline elements may contain only data and other inline elements.
Inherent in this structural distinction is the idea that block elements create "larger" structures than inline elements.  Generally, block-level elements begin on new lines, inline elements do not.

The DIV and SPAN elements, in conjunction with the id and class attributes, offer a generic mechanism for adding structure to documents. These elements define content to be inline (SPAN) or block-level (DIV) but impose no other presentational idioms on the content. Thus, authors may use these elements in conjunction with style sheets, the lang attribute, etc., to tailor HTML to their own needs and tastes.

===jetzt kommt es: ===
Style sheets provide the means to specify the rendering of arbitrary elements, including whether an element is rendered as block or inline. In some cases, such as an inline style for list elements, this may be appropriate, but generally speaking, authors are discouraged from overriding the conventional interpretation of HTML elements in this way.

======
was bedeutet, daß autor davon abzuhalten sind, inline elements als blocklevelelements zu "missbrauchen" und vice versa.

</html 4.0/4.01>

<CSS2>
Block-level elements are those elements of the source document that are formatted visually as blocks. ... Block-level elements generate a principal block box that only contains block boxes. Principal block boxes participate in a block formatting context.

Inline-level elements are those elements of the source document that do not form new blocks of content; the content is distributed in lines (e.g., emphasized pieces of text within a paragraph, inline images, etc.)
</CSS2>

Grüße
Thomas