This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to Bold text

 
Alec Lee
Ranch Hand
Posts: 569
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to bold some arbitrary text. I am not sure if <b> is still the way to do it but if I want use css is it to use <span> to enclose the text and apply the style to <span>? But, I heard that <span> is deprecated so what tag should be used to delimited arbitrary text?
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Span is not deprecated.

look into CSS font-weight

Eric
 
Alec Lee
Ranch Hand
Posts: 569
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OReilly HTML & XHTML: The Definitive Guide 5th ed, Chap 8.5:
Although it is now deprecated, the <span> tag became part of HTML so that you could apply style, display, and event management to an arbitrary section of document content. Define a style for the <span> tag as you would any other HTML or XHTML tag


This is just confusing.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Um, believe that is wrong.

Newest is XHTML2 and you should see it is in it.
http://www.w3.org/TR/xhtml2/mod-text.html#edef_text_span

Eric
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65220
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The author has made an error.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic