Some Web Design Concepts…

  1. What Document Type Declarations do you use to exclude frames?

There are three Doctypes available

  • Loose
  • Transitional (Recommended)
  • Strict (Answer)

Loose
Loose mode will allow old deprecated tags and markup to be used and CSS will be rendered in quirks mode.

<!DOCTYPE html PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN”
“http://www.w3.org/TR/html4/loose.dtd”>
Transitional (Recommended)
Transitional mode allows deprecated elements to be used, but the document will be rendered in standards mode.

<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
Strict
The strict DTD totally prevents legacy code from being used.  Some developers initially create their design in strict mode and then drop it back to transitional to ensure that if legacy markup needs to be used, it can (possibly created later by the site editor using a CMS).

<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”>
The following elements can’t be used in strict mode: center, font, iframe, strike, u.
The following attributes can’t be used in strict mode: align (allowed on elements related to tables), language, background, bgcolor, border (allowed on table), height (allowed on img and object), hspace, name (allowed on input, textarea elements), noshade, nowrap, target, text, link, vlink,  alink, vspace, width (allowed on img, object, and table elements).

Read full article here

Leave a Reply

Your email address will not be published. Required fields are marked *


8 − = zero