<p>
This span is an <span class="highlight">inline-level element</span>; its
background has been colored to display both the beginning and end of the
element's influence. Input elements, like <input type="radio" /> and
<input type="checkbox" />, are also inline-level content.
</p>
In this example, the <p>
element contains some text. Within that text is a <span>
element and two <input>
elements, which are inline-level elements. If the <span>
is spread across two lines, two line boxes are generated. Because these elements are inline, the paragraph correctly renders as a single paragraph of unbroken text flow:
body {
margin: 0;
padding: 4px;
border: 1px solid #333333;
}
.highlight {
background-color: #eeee33;
}
See also
display
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.5