CSS frameworks not rendering properly on all browsers

I ran into an issue when testing skeleton css framework and twitter bootstrap where some browsers were not rendering the pages properly. After some research I determined that I forgot the DOCTYPE declaration tag.

The DOCTYPE tag tells the browser what “rules” or standards to use when rendering markup.

The following code block displays the minimal approach to setting the document type:

After placing the doctype above the tag the pages render properly because we forced the browser into standards mode.


Leave a Reply

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