Lyrics & Knowledge Personal Pages Record Shop Auction Links Radio & Media Kids Membership Help
The Mudcat Cafesj

User Name Thread Name Subject Posted
buddhuu Tech: HTML help: italics (65* d) RE: HTML Help: italics 05 Nov 10

Re. deprecation.

Sminky and Grishka have pretty much summed it up.

In HTML, certain things get deprecated, usually because "They" have found a better way of doing it.

In recent years the trend has been to separate the functional and structural stuff from the cosmetic stuff - especially with XHTML and CSS stylesheets. So, all the stuff that actually defines how the information is structured is done in the HTML (tables, ordered and unordered lists, paragraphs, headings etc) and all the visual styling stuff is done in the stylesheets (typefaces, font sizes, colours etc).

So, things like the old font tags were deprecated to encourage people to achieve their cosmetic styling in the stylesheets - i.e. outside of the structural HTML. To separate the essential HTML from the frilly stuff.

There's a confusing middle ground where things get done both ways. It is possible to render bold text with the out-of-favour "b" tag, or it can be done in the stylesheet. On the other hand, there is a tag, "strong", that has structural value as it denotes that the text enclose within is of some importance. That tag is rendered as bold text by nearly all browsers.

So, deprecation doesn't mean that the HTML nazis regard bold or italicised text as something to be prevented, just that they think it's a good idea if it is done in a way that reflects the reason for its use: with "strong" if it is to indicate importance, or in a stylesheet if it's purely for aesthetic reasons.

I think that's sensible enough.

Note that deprecated HTML is usually still supported by modern browsers, and that is likely to remain the case: otherwise, years of valuable information published in old-fashioned HTML would no longer be visible to us.

As for underline: that is indeed best left for links. It is possible to underline text in stylesheets. IMHO the "u" tag deserves deprecation: partly because of the link confusion, but also because, IMHO, underlined text looks amateurish and horrid. Take a look at professional magazines and adverts. You'll see plenty of bold and italicised text, but very little underlining. There's a good reason for that.


Post to this Thread -

Back to the Main Forum Page

By clicking on the User Name, you will requery the forum for that user. You will see everything that he or she has posted with that Mudcat name.

By clicking on the Thread Name, you will be sent to the Forum on that thread as if you selected it from the main Mudcat Forum page.
   * Click on the linked number with * to view the thread split into pages (click "d" for chronologically descending).

By clicking on the Subject, you will also go to the thread as if you selected it from the original Forum page, but also go directly to that particular message.

By clicking on the Date (Posted), you will dig out every message posted that day.

Try it all, you will see.