code font-size:12px;
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>CSS Positioning Example</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type='text/css'>
div.page {
border:1px solid #000000;
margin:10px;
padding:10px;
width:250px;}
span.explanation {
font-family:arial, verdana, sans-serif;
font-size:10px;
border:1px solid #000000;}
strong {
font-weight:bold;
font-size:18px;
line-height:22px;
border:1px solid #000000;}
code {
font-family:courier, monospace;
font-size:12px;
font-weight:bold;
border:1px solid #000000;}
</style>
</head>
<body>
<div class="page">
<span class="explanation">The <code>span</code> element creates an inline box.
Each line of text in this box generates a new line box, although you cannot
specify properties for each of the individual line boxes, rather the
properties of the <code>span</code> element will determine font, text and
line height properties. The <strong>inline</strong> elements will also
generate boxes that flow within the <code>span</code> element.</span>
</div>
</body>
</html>
Related examples in the same category