Web Development
Web Developer Guidelines
Visual Design Recommendations

Checkpoint 1.22 - Mobile-PDA

HTML and CSS are terse - 'Pretty printing' (indenting of HTML) has not been used

DEECD Requirement

DEECD Guideline

More than one consequetive whitespace character and all indenting and carriage returns are ignored by the rendering engines of computing devices such as desktop and mobile browsers, with this layout being governed by HTML markup instead. By removing this "pretty print" i.e. more human-friendly screen layout, the pages can be made smaller while keeping the same semantics of the page.

Requirement

HTML and CSS are terse - 'Pretty printing' (indenting of HTML) has not been used

Recommendation

All layout must be controlled by stylesheets. Any layout that is made by using HTML elements increases the size of the page.

While the page should still be usable for the maintainer of the content, authors should not contribute to page weight by introducing unnecessary white space.

Checking Tool

Ensure that stylesheets have been applied to the page by viewing the page source. Ensure that page source of the file when it is saved on the server does not contain indenting or other "pretty print" techniques.

 

Back to top