Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
<html>
<head>
<title>Untitled</title>
<style type="text/css">
<!--
[blue]u {border-bottom: 0.075em solid; line-height: 107.5%}[/blue]
-->
</style>
</head>
<body>
<u>This is a test</u>
</body>
</html>
<style>
.du {
border-bottom:0.3em double red;
}
</style>
<span class="du">Double red underline</span>
<html>
<head>
<title>Untitled</title>
<style type="text/css">
<!--
u {border-bottom: 0.075em solid; line-height: 107.5%}
.du {border-bottom:0.3em double red;}
-->
</style>
</head>
<body>
<u>This is a test</u>
<br>
<span class="du">Double red underline</span>
</body>
</html>
if ($YourBrowser == "IE5"}
echo "Please upgrade to a better browser"
<?php
?>
This is a good advice, but your code was hardly XHTML compliant. There is no <u> element in XHTMLDarkshadeau said:Note that all tags are lowercase. I noticed in your question that you used uppercase. You should get into the habit of using lowercase tags to be XHTML compliant.
Depends which flavour of XHTML you're talking about, the <u> element is valid (though deprecated) in XHTML 1.0 Transitional.There is no <u> element in XHTML![]()
Vragabond said:This is a good advice, but your code was hardly XHTML compliant. There is no <u> element in XHTML![]()
I tested both examples in the current version of four major browsers. All lines wrapped as expected. Must be an older browser issue.ChrisHunt said:Be warned, by the way, that using the bottom border property to underline text may not work correctly on all browsers when the underlined text wraps from one line to the next.