Separating HTML and CSS

Sometimes, it is easier to design pages by specifying CSS rules for each distinct HTML element, for example:

<p style="color: green">This is green text.</p>

But this practice, while saving time and removing the need for meticulous planning in the early stages of a project, can prove troublesome later on, when you try to make your code more standards-compliant and, well, elegant. Enter the styles-to-classes converter.

 

The converter is a simple online application that presents you with three text fields: one for the input of the "mixed" initial code, and two fields where the separated HTML and CSS are presented as a result. The resulting CSS rules are listed as classes and can be linked as an external CSS file from the converted HTML document.

 

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Lines and paragraphs break automatically.
  • Flash can be added to this post.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.

More information about formatting options

To prevent automated spam submissions leave this field empty.