Horje

Example of HTML Inline Elements

An inline element does not start on a new line. An inline element only takes up as much width as necessary.
index.html
Example: HTML
<!DOCTYPE html>
<html>
<body>

<p>This is an inline span <span style="border: 1px solid black">Hello World</span> element inside a paragraph.</p>

<p>The SPAN element is an inline element, and will not start on a new line and only takes up as much width as necessary.</p>

</body>
</html>

Output should be:

Example of HTML Inline Elements



Single Articles
Example of HTML Block-level ElementsHTML Block and Inline Elements
Example of HTML Inline ElementsHTML Block and Inline Elements


Related Articles
What is HTML Block and Inline Elements HTML Block and Inline Elements
How to create HTML Block-level Elements HTML Block and Inline Elements
How to create HTML Inline Elements HTML Block and Inline Elements
How to crearte The <div> Element in HTML HTML Block and Inline Elements
How to create The <span> Element in HTML HTML Block and Inline Elements

Type:
Html
Category:
Web Tutorial
Sub Category:
HTML Block and Inline Elements
Uploaded by:
Admin



Share on: