CSS: Strikethrough and underlining

This entry is part 13 of 26 in the series Basic CSS

To apply strikethrough and underlining, we can use text-decoration attribute.

<!DOCTYPE html>
<html>
<head lang='en'>       
    <meta charset='UTF-8'>
    <title>Codecrawl.com</title>
</head>
<body>

<p style='text-decoration: underline'>Ushuaia</p>
<p style='text-decoration: line-through'>Cape Town</p>

</body>
</html>

Series Navigation<< CSS: Applying bold and italics
CSS: Inline spans >>