![]() |
|
|
|||||||
![]() |
HTML - Inline Underlining in XHTML Strict? |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
Hi,
Is there a way to produce underlined text within a sentence in xhtml strict? Thanks, Kelwin Kelwin Delaunay |
|
|
|
|
#2 |
|
Posts: n/a
|
"Kelwin Delaunay" <> wrote:
> Is there a way to produce underlined text within a sentence in xhtml > strict? Maybe. What does underlining mean in speech, or in Braille? You might just as well have asked how to produce red text in XHTML Strict, or how to make some words spoken in female voice, or how to make some words have a sweet odour in XHTML Strict. Try explaining the real problem in context. As usual, a URL is virtuallu indispensable. Since we know that links, and only links, should normally be underlined on Web pages, and since links are usually underlined by default, and if not then there's probably a good reason why not, what might justify an attempt to deviate from this? And why would you use XHTML Strict? -- Yucca, http://www.cs.tut.fi/~jkorpela/ Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html |
|
|
|
#3 |
|
Posts: n/a
|
"Jukka K. Korpela" <> wrote in message news:Xns94D7C282EB687jkorpelacstutfi@193.229.0.31. .. > "Kelwin Delaunay" <> wrote: > > > Is there a way to produce underlined text within a sentence in xhtml > > strict? > > Maybe. What does underlining mean in speech, or in Braille? You might > just as well have asked how to produce red text in XHTML Strict, or how > to make some words spoken in female voice, or how to make some words have > a sweet odour in XHTML Strict. > > Try explaining the real problem in context. As usual, a URL is virtuallu > indispensable. Since we know that links, and only links, should normally > be underlined on Web pages, and since links are usually underlined by > default, and if not then there's probably a good reason why not, what > might justify an attempt to deviate from this? And why would you use > XHTML Strict? > > -- > Yucca, http://www.cs.tut.fi/~jkorpela/ > Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html > I simply wanted to use the standard convention: a book title appearing in text is underlined. I've worked around the problem by using <u> and XHTML Transitional, but was looking for an answer in Strict. Why not use Strict if the W3C is trying to take us there? Here's the page: http://webpages.charter.net/maverick...ence/index.htm . The text in question is very near the bottom. Kelwin |
|
|
|
#4 |
|
Posts: n/a
|
"Kelwin Delaunay" <> wrote in message news:... > > "Jukka K. Korpela" <> wrote in message > news:Xns94D7C282EB687jkorpelacstutfi@193.229.0.31. .. > > "Kelwin Delaunay" <> wrote: > > > > > Is there a way to produce underlined text within a sentence in xhtml > > > strict? > > > > Maybe. What does underlining mean in speech, or in Braille? You might > > just as well have asked how to produce red text in XHTML Strict, or how > > to make some words spoken in female voice, or how to make some words have > > a sweet odour in XHTML Strict. > > > > Try explaining the real problem in context. As usual, a URL is virtuallu > > indispensable. Since we know that links, and only links, should normally > > be underlined on Web pages, and since links are usually underlined by > > default, and if not then there's probably a good reason why not, what > > might justify an attempt to deviate from this? And why would you use > > XHTML Strict? > > > > -- > > Yucca, http://www.cs.tut.fi/~jkorpela/ > > Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html > > > > I simply wanted to use the standard convention: a book title appearing in > text is underlined. I've worked around the problem by using <u> and XHTML > Transitional, but was looking for an answer in Strict. Why not use Strict if > the W3C is trying to take us there? Here's the page: > http://webpages.charter.net/maverick...ence/index.htm . The text in > question is very near the bottom. > > Kelwin The thing is, you shouldn't be underlining *anything* unless it's a hyperlink. |
|
|
|
#5 |
|
Posts: n/a
|
Quoth the raven named Kelwin Delaunay:
> "Jukka K. Korpela" <> wrote in message > news:Xns94D7C282EB687jkorpelacstutfi@193.229.0.31. .. > >> "Kelwin Delaunay" <> wrote: >> >>> Is there a way to produce underlined text within a sentence in >>> xhtml strict? >> >> Maybe. What does underlining mean in speech, or in Braille? You >> might just as well have asked how to produce red text in XHTML >> Strict, or how to make some words spoken in female voice, or how >> to make some words have a sweet odour in XHTML Strict. >> >> Try explaining the real problem in context. As usual, a URL is >> virtuallu indispensable. Since we know that links, and only >> links, should normally be underlined on Web pages, and since >> links are usually underlined by default, and if not then there's >> probably a good reason why not, what might justify an attempt to >> deviate from this? And why would you use XHTML Strict? >> >> -- Yucca, http://www.cs.tut.fi/~jkorpela/ Pages about Web >> authoring: http://www.cs.tut.fi/~jkorpela/www.html > > I simply wanted to use the standard convention: a book title > appearing in text is underlined. I've worked around the problem by > using <u> and XHTML Transitional, but was looking for an answer in > Strict. Why not use Strict if the W3C is trying to take us there? > Here's the page: > http://webpages.charter.net/maverick...ence/index.htm . The > text in question is very near the bottom. While I agree with Jukka about only underlining links, if you must underline your titles, try this: ..uline { text-decoration: underline; } <p>... NY Times bestseller list: <span class="uline">"Deliver Us from Evil ... </span> ... It passes W3C XHTML 1.0 Strict at a page of mine. -- -bts -This space intentionally left blank. |
|
|
|
#6 |
|
Posts: n/a
|
"Beauregard T. Shagnasty" <> wrote in message news:H6bjc.105902$... > While I agree with Jukka about only underlining links, if you must > underline your titles, try this: > > .uline { text-decoration: underline; } > > <p>... NY Times bestseller list: <span class="uline">"Deliver Us from > Evil ... </span> ... > > It passes W3C XHTML 1.0 Strict at a page of mine. > > -- > -bts > -This space intentionally left blank. Thank you for your help. Kelwin |
|
|
|
#7 |
|
Posts: n/a
|
"Kelwin Delaunay" <> wrote:
> >I simply wanted to use the standard convention: a book title appearing in >text is underlined. Is it? I thought that italics were the convention in those media that are capable of displaying them. >I've worked around the problem by using <u> and XHTML >Transitional, but was looking for an answer in Strict. <cite class="book">Gone with the Wind</cite> cite.book {text-decoration: underline; font-style: italic;} >Here's the page: >http://webpages.charter.net/maverick...ence/index.htm . The text in >question is very near the bottom. And I instantly moved my mouse over it, even though I'd read these posts and knew it wasn't a link. Reserve underlining for links. BTW, why isn't the other book title on that page also marked in the same way? Steve -- "My theories appal you, my heresies outrage you, I never answer letters and you don't like my tie." - The Doctor Steve Pugh <> <http://steve.pugh.net/> |
|
|
|
#8 |
|
Posts: n/a
|
Steve Pugh wrote:
> "Kelwin Delaunay" <> wrote: >> >> I simply wanted to use the standard convention: a book title >> appearing in text is underlined. > > Is it? I thought that italics were the convention in those media that > are capable of displaying them. This is true. Italics are the way to go. Underlining book titles is looked down upon in some academic circles these days. Kyle |
|
|
|
#9 |
|
Posts: n/a
|
On Tue, 27 Apr 2004 00:08:41 +0000, Kyle James Matthews wrote:
> This is true. Italics are the way to go. Underlining book titles is looked > down upon in some academic circles these days. Indeed underlining was only "invented" as a way for authors to mark which parts of a book to print in italics on a manuscript before sending it off to the printer. -- Toby A Inkster BSc (Hons) ARCS Contact Me - http://www.goddamn.co.uk/tobyink/?page=132 |
|
|
|
#10 |
|
Posts: n/a
|
Thanks to all for your help. Italics it is. All revised and and validates as
XHTML strict. Kelwin |
|