It specifies which markup standard the page is using. With the information, the browser determines how to render the page according to the page's source code.
They are modes used by browser rendering engines. In the standards mode, the engine will render a page as HTML and CSS specifications specify. The quirks mode is to render legacy pages written before these standards are fixed. The legacy pages contain non-standard behaviours emulated in old browsers such as Internet Explorer 5 or Navigator 4.
We can enforce browsers to use standards mode with a <!DOCTYPE html>
tag.
Not answered yet
IE < 8 will show a download dialog for the pages, instead of rendering them properly.
Use lang
(or xml:lang
for XHTML) in tags. Also metadata and
Content-Language
HTTP header can be used.
hreflang
attr in linkdir
attr indicating language direction, such asrtl
<meta charset='UTF-8'>
font-size
for:lang({language_code})
selectors in CSS- difference in word langth for each language
It makes HTML elements contain extra information without using non-standard attributes, or other hacks like that.
Not answered yet
Not answered yet
<script>
stops rendering process, and download and run a script.<script async>
don't stop rendering process while asynchronously downloading a script. When finishing download, it stops rendering and runs the script.<script defer>
don't stop rendering process while asynchronously downloading a script. When finishing rendering, it runs the script.
Why is it generally a good idea to position CSS <link>
s between <head></head>
and JS <script>
s just before </body>
? Do you know any exceptions?
Not answered yet
When a HTTP response is flushed multiple times, a browser doesn't wait until the whole content is loaded and renders each part earlier.
Yes. Jinja2 and Django template language in Python. Jade and EJS in JavaScript. Some more in other languages.