➊ History
✪ In the old days of the web, pages were written in two versions: One for Netscape Navigator, and one for Microsoft IE.
✪ When the web standards were made at W3C, browsers could not just start using them, as doing so would break most existing sites on the web.
✪ Browsers therefore introduced two modes to treat new standards compliant sites differently from old legacy sites.
✪ Modes are: Quirks Mode and Standards Mode.
✪ For HTML documents, browsers use a DOCTYPE in the beginning of the document to decide which mode to handle.
➋ Doctype
⬒ In HTML, the doctype is required to ensure that the browser makes a best-effort attempt at following the relevant specifications.
⬔ Doctype is not an HTML element, rather a special instruction to the browser.
⬓ If specified, it has to be at the beginning of the HTML document just after the Byte-Order-Mark (BOM) if any.
⬕ The DOCTYPE for HTML5 is case-insensitive and can be written as Down pointing backhand index
< !DOCTYPE html >
➌ Formats of Doctypes
⮑ Normal
⮑ Deprecated
⮑ Legacy Tool Compatible
➍ Examples
⮑ Normal (HTML5)
⮑ Deprecated (HTML 4/4.01, XHTML 1.0/1.1)
⮑ Legacy Tool Compatible
➎ If Doctype is not specified?
❑ Browser will switch into "Quirks Mode" when rendering a document.
❒ Quirks Mode may be incompatible with some standard specifications.
❑ The document may render differently in different browsers.
➏ Let's summarise
✪ "" is the required preamble found at the top of all documents.
✪ Its sole purpose is to prevent a browser from switching into “Quirks Mode” when rendering a document.
It all starts . Which interview process that you are going to attend?. There are many ways you can enter into a software company. For freshers it is through either On- Campus drives, Off-Campus drives. In any interview process majorly the stages in which people are filtered is based on their ability in handling situation , Aptitude , Reasoning , Communication skills and Programming ability . How to Prepare for the Interview ? 1) Handling Situation and Communication Handling Situation , attitude all these are very important in any environment to enhance the productivity and produc...
Comments
Post a Comment