Expression® Web Design

Deprecated HTML Tags

Friday, April 03, 2009

Hypertext Markup Language, better known as HTML, has come a long way since the 1980's.  Back then, HTML was basically the only way to help control background / colors / font information / layout, etc.  Cascading Style Sheets (CSS) came into play as webmasters needed a better way to style / layout their websites.  Web sites grew from a few pages to hundreds, if not thousands, of web pages.  Changing the font color of a header element became a tedious task.  However, with CSS, webmasters could change the information on one page, and that change would immediately show up on all pages that were attached to that style sheet.

Over the years, CSS has replaced a lot of HTML elements.  Some of the deprecated HTML elements are:

  • <applet>
  • <basefont>
  • <center>
  • <dir>
  • <font>
  • <s>
  • <strike>
  • <u>

Probably one of the biggest change that affected webmasters was the <font> element being deprecated.  (Keep in mind that even though the <font> element is deprecated, browsers still support its use though.)

FrontPage was notorious for abusing the <font> element.  Any change that you made to the text through FrontPage would result the <font> being placed in the HTML source code.  Every new paragraph would have these <font> elements in there, creating a nightmare for webmasters when the font family or size needed to be replaced.  An example would be something like:

<p><font color="#800000" size="4" face="Arial">Lorem ipsum</font></p>

As you can see, FrontPage (even its latest 2003 version), never had the size correct.  Of course, webmasters could do a find and replace in the HTML source code, but every so often, FrontPage might switch the attributes around and some code might be skipped.

By using a style sheet though, you can style all the text that is contained in the <p> element very simply by adding:

p
{
font: 1em arial #000
}

DeliciousDigg This PostNewsvineRedditTechnorati



Comments

web design said...

Thanks for this useful information. This is very helpful in web desinging and web devlopment. I recommended everyone this website.

5/26/2009

Name
URL
Email
Email address is not published
Access Code secureimage
Please enter the access code
Remember Me
Comments








Feeds