Challenge: Predict the Page Layout
Task
Examine the provided HTML code and predict how the page will look in the browser. There are three <div>
elements, each containing a combination of an inline and block-level element.
<div><span>This is an inline element</span>This is a block-level element.</div><div>This is a block-level element.<span>This is an inline element</span></div><div>This is a block-level element.<span>This is an inline element</span>This is another block-level element.</div>
Questions to Consider:
- How will the inline and block-level elements interact within each
<div>
? - How will the order of elements affect the layout?
- What will be the visual hierarchy of inline and block-level elements within each
<div>
?
War alles klar?
Danke für Ihr Feedback!
Abschnitt 3. Kapitel 10