HTML Tutorial 23 - Doctypes and Comments

Pubblicato il: 01 maggio 2012
sul canale di: TechnicalCafe
5,927
13

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_doc...

TechnicalCafe Blog:
http://TechnicalCafe.com

TechnicalCafe Twitter:
  / technicalcafe  

Jamie's Twitter:
  / jamiemcg  


In questa pagina del sito puoi guardare il video online HTML Tutorial 23 - Doctypes and Comments della durata di ore minuti seconda in buona qualità , che l'utente ha caricato TechnicalCafe 01 maggio 2012, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 5,927 volte e gli è piaciuto 13 spettatori. Buona visione!