Fix deprecated elements with ArtinSoft Web Optimizer

Have You Inherited a Legacy Site Full Of Deprecated Elements?

As the Web moves toward full XML compliance and the number of non-PC devices accessing it increases, CSS and XHTML are becoming necessary to stay in touch with customers and widen your potential audience. Out with the deprecated and in with the new.

Deprecated elements will not be supported in future versions of the language. Today, developers are avoiding using these deprecated tags from the start. But sometimes legacy code is inherited and full of deprecated tags like <center>, <font>,<menu>, plus bgcolor attributes, and more.

The Solution

This feature scours your code to find deprecated elements and then replaces them with an up-to-date tag while retaining the semantics and visual appearance. When the transformation is finished, your Web pages are XHTML transitional compliant.

The Fix Deprecated XHTML Elements Web Optimizer Transformation Screenshot

The Fix Deprecated XHTML Elements Transformation tackles all the “old school” tags.

Replace <center> tag by inline CSS

The deprecated <center> element can be replaced with the appropriate CSS styling depending on the situation.

The Fix Deprecated XHTML Elements Web Optimizer Transformation Before and After Center

Replace <font> tag by inline CSS

The deprecated <font> tag is used in different contexts to define font type, color, and weight. Due to its ubiquitous and changing nature, processing this tag can be individually switched on and off.

The Fix Deprecated XHTML Elements Transformation Before and After FONT

Insider Tip: Remember to use the “Extract and Merge Inline Style” Transformation later on to extract and consolidate the inline styles into a more centralized area in your page or in a separated CSS file.

Update other deprecated tags

Style-geared tags like <menu> will be replaced by inline CSS. Whenever possible, other tags will be replaced by compatible XHMTL alternatives.

The Fix Deprecated XHTML Elements Web Optimizer Transformation Before and After MENU

The Fix Deprecated XHTML Element Transformation updates the following tags to their CSS equivalents.

The Fix Deprecated XHTML Elements Transformation List of fixed Tags

Update deprecated attributes

Style-geared attributes such as bgcolor will be replaced with current inline CSS styling.Whenever possible,others will be replaced by compatible XHTML alternatives.

The Fix Deprecated XHTML Elements Transformation Before and After BGCOLOR

Use this Transformation to update the following deprecated attributes with the latest CSS equivalent.

The Fix Deprecated XHTML Elements Transformation List of unsupported Tags

Learn more about fixing deprecated XHTML elements: