Inline elements are normally displayed without starting a new line
That's correct! Inline elements are displayed on the same line as other elements, without starting a new line. This means that they will not create a new line break or wrap to the next line.
Examples of inline elements include:
- Span elements (
<span>
) - Anchor elements (
<a>
) - Image elements (
<img>
) - Inline text elements (such as
<b>
,<i>
,<u>
, etc.) - Inline block elements (such as
<input>
,<textarea>
, etc.)
When you use an inline element, it will be displayed on the same line as the surrounding text, without creating a new line break. For example:
This is some <span>inline</span> text.
In this example, the <span>
element is displayed on the same line as the surrounding text, without creating a new line break.
On the other hand, block-level elements (such as <p>
, <div>
, <ul>
, etc.) will create a new line break and start a new line.