Text-level Semantic Elements

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