HTML Syntax for Websites Outside of the Energy.gov Drupal Environment
These HTML syntax standards are required on websites and applications outside the Energy.gov Drupal environment.
If your website is in the Energy.gov Drupal environment, you do not need to check your HTML syntax. This is managed automatically by the Energy.gov Drupal content management system.
Creating Compliant Code
EERE HTML syntax follows HTML5 Standards. If you want to create code that is compliant with EERE's technical standards, follow these guidelines:
- Special characters should be encoded using character entity references. See the Web Standards Project for more information.
- All HTML document syntax must be validated by the W3C's validator.
- Do not use deprecated tags
- Be sure all documents are well-formed (properly nested).
- Close all HTML elements (<p> </p>).
Browsers for your desktop computer, such as Internet Explorer and Firefox, include a great deal of extra code to deal with syntax errors. They look at invalid code and make a guess as to how it should be displayed. Mobile devices and RSS readers do not have the extra code to handle errors gracefully and may not render poorly formed code correctly or at all.