HTML Tags

HTML is constantly evolving, and many formatting tags are now deprecated, obsolete, or their usage has changed.

Remove deprecated tags.

  • Remove <center></center> tags. To center an element, add class=”text-xs-center” to the tag.
  • Remove <font></font> tags. You should never need to use these!

Use tags for their intended purpose.

  • Avoid using the <u> element where it could be confused for a hyperlink. The <u> tag’s only use is for text that should be stylistically different from normal text, such as misspelled words or proper nouns in Chinese. If you’re using this tag to emphasize text, replace it with <b> or <i>.