Inline Elements

Inline elements:

  • Do not start with a new line
  • Generally contain data and other inline level elements

 

Example showing inline elements being applied:

<!DOCTYPE html>
<html>
	<head>
		<title>My Document Title</title>
	</head>
	<body>
		<h1>My <sup>first</sup> Heading</h1>
		<p>Paragraph <b>one</b></p>
		<p><i>Paragraph</i> two</p>
		<p><del>Paragraph three</del></p>
	</body>
</html>

Save & refresh browser:

My first Heading

Paragraph one

Paragraph two

Paragraph three

Leave a Reply