code font-weight:bold; : code « Tags « HTML / CSS






code font-weight:bold;

   

<!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

1.code Element For Adding Code to Your Web Pages
2.code must be within pre (inline elements can't contain block-level elements)
3.Displaying blocks of code online
4.Blocked and preserved Code
5.Formula input
6.code margin: 5px 0;
7.code padding: 10px;
8.code text-align: left;
9.code display: block;
10.code overflow: auto;
11.code font: 500 1em/1.5em 'Lucida Console', 'courier new', monospace ;
12.code background: #F5F5F5;
13.code border-left: 3px solid #D4D4D4;
14.code font-family:courier, monospace;
15.code font-size:12px;
16.code border:1px solid #000000;
17.code {display:block;}
18.code font-family: courier;
19.code color: #000000;
20.code font-size: smaller;
21.code background-color: #d6d6d6;
22.code padding: 2px;
23.code margin: 5px;
24.code padding: 3px;
25.code background-color: black;
26.code color: #FFFFFF;
27.Code style
28.'code' Example