Back to Browse

HTML Tutorial 23 - Doctypes and Comments

5.9K views
May 1, 2012
7:18

In this tutorial, we talk about the uses of declaring an HTML doctype, as well as how to write and use comments in HTML. Doctypes can be useful for telling the browser what you plan on doing with your HTML code, so that the browser can then render it properly. There are a few different doctypes that can be used, each with their own rules and specifications as to how certain elements are displayed within the browser. By using these doctypes, we can try and prevent elements from displaying improperly within a user's browser. Comments, on the other hand, are useful for reminding yourself (and other programmers, too) what the code you're writing is supposed to do. Programmers can also use comments to leave notes or for whatever other purpose they want! Even though comments are written directly in the HTML document, they are not seen by the user when they open the webpage, but are useful when viewing the source code. w3Schools "Doctype" Tag Info Page: http://www.w3schools.com/tags/tag_doctype.asp TechnicalCafe Blog: http://TechnicalCafe.com TechnicalCafe Twitter: http://Twitter.com/TechnicalCafe Jamie's Twitter: http://Twitter.com/Jamiemcg

Download

1 formats

Video Formats

360pmp411.2 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

HTML Tutorial 23 - Doctypes and Comments | NatokHD