Text-level Semantic Elements

Welcome to our free HTML tutorial. This tutorial is based on Webucator's Introduction to HTML Training course.

Contact Us or call 1-877-932-8228
Text-level Semantic Elements

Text-level Semantic Elements

Text-level semantic elements provide structural information about the content they contain. The most elements of this type are <em> and <strong>. Both elements indicate that the element content should be emphasized. <strong> indicates stronger emphasis than <em>. Most browsers bold <strong> content and italicize <em> content. The code below illustrates how these tags can be used:

Code Sample:

Text/Demos/EmAndStrong.html
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Emphasis</title>
</head>
<body>
<h1>Emphasis</h1>
<p>This is <em>important</em>.</p>
<p>This is <strong>really important</strong>.</p>
</body>
</html>

Code Explanation

The page is rendered as follows:Example of Strong Tags Used for Emphasis

Next

This tutorial is based on Webucator's Introduction to HTML Training Course. We also offer many other HTML Training courses. Sign up today to get help from a live instructor.