aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes How to Bold text Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "How to Bold text" Watch "How to Bold text" New topic
Author

How to Bold text

Alec Lee
Ranch Hand

Joined: Jan 28, 2004
Posts: 569
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

Joined: Nov 08, 2001
Posts: 15376
    
    6
Span is not deprecated.

look into CSS font-weight

Eric
Alec Lee
Ranch Hand

Joined: Jan 28, 2004
Posts: 569
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

Joined: Nov 08, 2001
Posts: 15376
    
    6
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

Joined: Jan 10, 2002
Posts: 61769
    
  67

The author has made an error.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to Bold text