Go Back   Velocity Reviews > Newsgroups > HTML
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

HTML - Inline Underlining in XHTML Strict?

 
Thread Tools Search this Thread
Old 04-26-2004, 04:47 PM   #1
Default Inline Underlining in XHTML Strict?


Hi,

Is there a way to produce underlined text within a sentence in xhtml strict?

Thanks,
Kelwin




Kelwin Delaunay
  Reply With Quote
Old 04-26-2004, 05:09 PM   #2
Jukka K. Korpela
 
Posts: n/a
Default Re: Inline Underlining in XHTML Strict?

"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


  Reply With Quote
Old 04-26-2004, 05:25 PM   #3
Kelwin Delaunay
 
Posts: n/a
Default Re: Inline Underlining in XHTML Strict?


"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


  Reply With Quote
Old 04-26-2004, 05:48 PM   #4
SpaceGirl
 
Posts: n/a
Default Re: Inline Underlining in XHTML Strict?


"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.


  Reply With Quote
Old 04-26-2004, 05:51 PM   #5
Beauregard T. Shagnasty
 
Posts: n/a
Default Re: Inline Underlining in XHTML Strict?

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.
  Reply With Quote
Old 04-26-2004, 06:00 PM   #6
Kelwin Delaunay
 
Posts: n/a
Default Re: Inline Underlining in XHTML Strict?


"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


  Reply With Quote
Old 04-26-2004, 06:03 PM   #7
Steve Pugh
 
Posts: n/a
Default Re: Inline Underlining in XHTML Strict?

"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/>
  Reply With Quote
Old 04-27-2004, 01:08 AM   #8
Kyle James Matthews
 
Posts: n/a
Default Re: Inline Underlining in XHTML Strict?

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



  Reply With Quote
Old 04-27-2004, 07:23 AM   #9
Toby A Inkster
 
Posts: n/a
Default Re: Inline Underlining in XHTML Strict?

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

  Reply With Quote
Old 04-27-2004, 08:39 PM   #10
Kelwin Delaunay
 
Posts: n/a
Default Re: Inline Underlining in XHTML Strict?

Thanks to all for your help. Italics it is. All revised and and validates as
XHTML strict.

Kelwin


  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump