aboveline

liunx

Guest
i knew we can do a underline in html with code <u> </u>, what is the code for aboveline in html. thank you very much<!--content-->The U element was depricated for good reasons. You're supposed to use HTML to describe meaning and not to control presentation. And, underlining is best reserved for links.<br />
<br />
If you want to use overlinning to indicate emphasis, then mark up that part of the text with an EM element and then use CSS to specify how you want the EM elements to be presented. In this case I've turned off the default italic font style and added overlinning.<br />
<br />
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"<br />
"http://www.w3.org/TR/html4/strict.dtd"><br />
<html lang="en"><br />
<head><br />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><br />
<meta name="Content-Style-Type" content="text/css"><br />
<title>Example</title><br />
<style type="text/css"><br />
<!-- <br />
em {font-style:normal; text-decoration:overline} <br />
--><br />
</style><br />
</head><br />
<body><br />
<p>Rapunzel, let down your <em>hair</em>.</p><br />
</body><br />
</html><!--content-->thank you for your reply, but how can do a underline without use html code <u> </u> thank you<!--content--><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"<br />
"http://www.w3.org/TR/html4/strict.dtd"><br />
<html lang="en"><br />
<head><br />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><br />
<meta name="Content-Style-Type" content="text/css"><br />
<title>Example</title><br />
<style type="text/css"><br />
<!-- <br />
em {font-style:normal; text-decoration:underline} <br />
--><br />
</style><br />
</head><br />
<body><br />
<p>Rapunzel, let down your <em>hair</em>.</p><br />
</body><br />
</html><!--content-->hi,<br />
<br />
how can you do underline and aboveline together? thank you very much<!--content-->Take a look at the two bits of code that Charles has provided and see if you can figure it out yourself. It's all there...<!--content-->hi,<br />
<br />
I think this coding has a little bit problem with italic function. if I used, my italic will not work for other text. how can i fix it? thank you very much<!--content-->Apply the style to a <span>, or give the <em> a class.<!--content-->what is the give <em> a class? thank you<!--content--><em class="overline">This Text is Overlined</em><br />
<em class="underline">This Text is Underlined</em><br />
<em>This Text is Italicized</em><br />
<br />
<br />
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"<br />
"http://www.w3.org/TR/html4/strict.dtd"><br />
<html lang="en"><br />
<head><br />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><br />
<meta name="Content-Style-Type" content="text/css"><br />
<title>Example</title><br />
<style type="text/css"><br />
<!--<br />
em {font-style:italic; text-decoration:none;}<br />
em.overline {font-style:normal; text-decoration:overline;}<br />
em.underline {font-style:normal; text-decoration:underline;}<br />
--><br />
</style><br />
</head><br />
<body><br />
<p><em class="overline">This Text is Overlined</em> and <em class="underline">This Text is Underlined</em> and <em>This Text is Italicized</em>. Understand?</p><br />
</body><br />
</html><!--content-->thank you very much<!--content-->
 
Back
Top