Account
Categories

Inline elements


Definition:

They help developers to create a good and attractive webpage.

They are used within a line in a word or a group of words, do not break the line, take only the required width, and are mostly used for styling small parts of text.

Some inline elements have both opening and closing tags, such as <span> and <a>, and some have only one tag, such as <img>.

There are some listed inline elements as follows:

Syntax:

<tagname>Your content goes here</tagname>

Example:

<p>This is an example of an inline element.</p>

Output:

This is an example of an inline element.