Inline elements are those elements that do not start on a new line and remain on the same line. They occupy only the width that the content inside them takes up.
Such as:
यह एक important शब्द है।
Syntax:
Content goes here
There are some common Inline elements:
<span>
It is an inline element that applies styles to words or sentences.
Syntax:
Here is your text
Explanation:
<span> : inline element
Style: It is an attribute that applies the CSS style.
CSS styles like color: blue; make the text font blue.
Example:
This is a yellow color. of the book.
Output:
It is the yellow color of the book.
<strong>
This element makes the text bold and emphasizes its importance.
Syntax:
Bold and important text.
Example:
This text is important.
Output:
This text is important.
<a>
It is an anchor tag that creates a hyperlink on a webpage for an element, tag, or text.
Syntax:
Link Text
Example:
Open this websitetutorial for more information.
Output:
Open this website tutorial for more information.
<em>
This element makes the text italic and emphasizes its importance.
Syntax:
Text
Example:
This is an emphasized text.
Output:
It is an emphasized text.
<img>
For more details
Syntax:
Example:
Output:
Displays the image on the webpage.

