Will deprecated elements be removed from future browsers?

淺唱寂寞╮ 提交于 2019-12-05 12:20:40

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.

Sampson

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.

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

The cons ?

well... they are deprecated ..

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!