The HTML document type declaration, also known as DOCTYPE , is the first line of code required in every HTML or XHTML document. The DOCTYPE declaration is an instruction to the web browser about what version of HTML the page is written in. This ensures that the web page is parsed the same way by different web browsers.
Data- attributes allow us to store extra information on standard, semantic HTML elements without other hacks such as non-standard attributes, or extra properties on DOM.
<script>
, <script async>
and <script defer>
.<link>
s between <head></head>
and JS <script>
s just before </body>
? Do you know any exceptions?Canvas is a HTML element used to draw graphics on the fly, via scripting and the element is only a container for graphics. SVG is a vector image that can be scaled up or down to any extent without losing the image quality.