HTML Code Naming Conventions and Formatting Guidelines

CASE

HTML, like PL/SQL, is case-insensitive. The guideline here is to use upper case for tags and tag attributes and use lower case for tag attribute values.

White Space and Quotes

White space (extra lines and spaces) is as important in HTML as it is in PL/SQL. It provides the main readability factor. Put double quotes around all attribute values, whether the value contains a space or not.

Suggestion: Line up opening and closing tags (<HTML>, <BODY>, etc.) on the left. Indent 3 spaces (use the spacebar, not the tab key) for structures within structures, such as table rows within a table and table cells within table rows. Put each part of the structure on a new line.

Naming Conventions ...

Get Oracle® Web Application Programming for PL/SQL® Developers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.