Loading

Inline Element

  • Inline elements do not create new lines and only take up as much width as necessary. 
  • They flow within the content and can be placed within other inline or block-level elements.
  •  Inline elements are used for styling and smaller elements within text.

Example:

<!DOCTYPE html>
<html>

<head>
    <title>Element</title>
</head>

<body>
    <h3>Inline Element example</h3>
    <p>This is an <em>italic</em> text with a <a href="#">link</a>.</p>
</body>

</html>

Output: