span background: mistyrose;
<!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' xml:lang='en'>
<head>
<title>text-decoration</title>
<style type='text/css'>
body {
font: 14px sans-serif;
}
p {
padding: 5px 25px;
background: lightblue;
border: 1px solid black;
}
span.underline {
text-decoration: underline;
}
span.overline {
text-decoration: overline;
}
span.line-through {
text-decoration: line-through;
}
span.blink {
text-decoration: blink;
}
span.underover {
text-decoration: underline overline;
}
span.underthrough {
text-decoration: underline line-through;
}
span.overthrough {
text-decoration: overline line-through;
}
span.example {
background: mistyrose;
}
</style>
</head>
<body>
<h4>CSS's text-decoration Property</h4>
<p>
<span class='underline example'>underline</span>,
<span class='overline example'>overline</span>,
<span class='line-through example'>line-through</span>,
<span class='blink example'>blink</span>.
<span class='blink example'>blink</span>
</p>
<p>
<span class='underover example'>underline and overline text</span>
<span class='underthrough example'>underline and line-through text</span>
<span class='overthrough example'>overline and line-through text</span>
</p>
</body>
</html>
Related examples in the same category