views:

173

answers:

4

What are cons to using deprecated elements if I don't care about validation and I use that DTD which supports them? Will deprecated elements will not be rendered by future browsers?

Some online WYSIWYG editors (which we use in CMS) still give output in deprecated elements. Must I invest the time to change the output for a client?

alt text

Should we avoid deprecated elements at any cost?

Currently all mainstream browsers show all deprecated elements.

I just wanted to know the disadvantages of using deprecated elements to give to a non technical client even if all are working today in all browsers.

Update:

you can meet guideline 1.3 ensure that information and structure can be separated from presentation by using font and align elements if you like. Yes, that’s right. You can use an element which was deprecated in HTML 4.01 nine years ago that ties the presentation of your page is into the page structure and content — there’s no success criterion telling you not to use deprecated features, and you can still pass all of the success criteria for the guideline which states “ensure that information and structure can be separated from presentation.” And this is a step forward?

I found this in this article http://accessites.org/site/2006/06/the-wcag-20-what-a-whopper/

+9  A: 

Future browsers may not support them, and you should always follow spec. If you make a habit of deviating with trivial HTML, your future as a professional programmer will be dim.

If you're using an editor that still uses deprecated elements, you should replace them. Fortunately, this can be as simple as a find/replace command.

Jonathan Sampson
+1 for "your future as a professional programmer will be dim"
Vincent Ramdhanie
Dunno about that - it's worked for the IE team for years...
ijw
@ijw: Yeah, but would *you* hire them? ;-)
T.J. Crowder
I'm not talking about application I'm talking about web based editor like RAD Editor etc
metal-gear-solid
"Future browsers may not support them" can u pls give me any link where it is stated.
metal-gear-solid
"deprecation does not mean the older version of the specification won't be supported.Each specification has a version number.The lists of deprecated elements and attributes from the previous posts refer to what has been deprecated from HTML3.2 to HTML4.0.Your code will still work fine in all browsers that support HTML3.2." http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/HTML/Q_21732157.html
metal-gear-solid
Deprecated features may become obsolete in future versions of HTML, though browsers that support the features will likely continue to support them. http://htmlhelp.com/reference/html40/deprecated.html Both statement indicate support of browser will remain
metal-gear-solid
It's seems fair to say that something deprecated will be removed at some point, first from the specification and later from things implementing that specification. Otherwise there is no point in calling it deprecated.
phkahler
+4  A: 

There is normally a reason for deprecating things, and more often than not, another way of doing the same thing that isn't deprecated.

JamesB
s/another/a better/ ;)
David Dorward
+2  A: 

The cons ?

well... they are deprecated ..

Gaby
+2  A: 

First, deprecated elements are usually not the best elements to use. They are generally deprecated for a reason, as there are better ways to do it.

Second, they could go away in future browsers. (Whether they will is a complicated question.)

For these reasons, you should always avoid deprecated functionality. It isn't a matter of avoiding it at all costs, since deprecated functionality is almost never the best way of doing something.

Whether it's worth changing an existing product is another question. Most web sites will need revision for other reasons later on, and that can include removing deprecated elements. Many will be removed from the web (for various reasons) long before any browser that doesn't support them gains popularity.

However, you're talking about a tool, and that's different. A tool should be more strict than an end product, since it affects not only today's work but work extending into the indefinite future, thereby raising the chances for problems. I'd say that the tool needs to be changed.

David Thornley