DOCTYPE html PUBLIC W3C DTD XHTML Strict EN http www w3 org TR xhtml1

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title>Test Page</title>
<style type="text/css">
.error, .warning, .note { padding: 10px; margin:5px }
.error { border:1px solid #C36; background-color:#FEE; color:#C36}
.warning { border:1px solid #CC6; background-color:#FFE; color:#CC6}
.note { border:1px solid #36C; background-color:#EEF; color:#36C}
</style>
</head>
<body>
<div class="error">This is an error text.</div>
<div class="warning">This is an warning text.</div>
<div class="note">This is an note text.</div>
<!--
Yeah, you are right about em and strong tags and underlined text.
About .error class - what if you add a .warning and a .note classes in yellow and blue colors respectively? With padding and lighter background color.
If you doubt about .detail name, mabye .remark would be better?
About .important and .shout - if we can make something bigger, than we must be able to make it smaller.
-->
</body>
</html>