POSTED IN

Why you should avoid using deprecated HTML and CSS – Part One

by: isev

on: 12th December, 2014

CALL US

01952 897 444

deprecated

Like everything else, syntax used in HTML and CSS has changed over the years. Code which would have been valid a couple of years ago is now a definite no-no. Why the change in syntax? The simplest answer is that more functional or flexible alternatives have been found and adopted.

Times change, you need to move on.

If you use deprecated HTML and CSS, the best case scenario is that your website will not validate, which hey, isn’t the worst thing in the world. However I do think that web standards are important, all developers that take pride in their work do.

That isn’t the worst case scenario. Browsers should support depreciated tags, but support cannot be guaranteed. This means that if you use deprecated syntax, your website could end up breaking on the next browser update.

Deprecated HTML Tags

Here are some deprecated HTML tags, which you should avoid at all costs.

Deprecated HTML tagsDescriptionReplacement
<applet>Inserts applet<object>
<basefont>sets font stylesCSS
<center>centers elements<div style=”text-align:center”> / CSS
<dir>directory list<ul>
<font>applies font stylesfont stylesheets / CSS
<isindex>adds search field<form> with relevant <input>
<menu>menu list<ul>
<s>strike throughCSS
<strike>strike throughCSS
<u>underlineCSS

 

Along with the above tags that are deprecated there are also attributes you should really try to stay away from. In part two we will consider which of these you should avoid.

Industry news, tips and general updates.

Sign up to our newsletter, and get our content first.

We will never spam you. You can unsubscribe with one click.

READ MORE

You might also like…

LATEST ADVICE & GUIDES  VIEW ALL

OUR DAILY ACTIVITY   FOLLOW