• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 35. Creating Web Page Layouts wi... > Understanding Doctypes and Encoding

Understanding Doctypes and Encoding

When creating web pages and pages for mobile devices, it's a good idea to include a Doctype declaration in your files to ensure compliance with established standards. When it comes to web browsers, they'll pretty much display your web pages regardless of whether you include this information or not, but the same is not so true of mobile devices which have adopted stricter guidelines. If you want to use an online HTML validator, you must include a !DOCTYPE declaration at the beginning of the HTML code, as shown in Figure 35.5, so the validator knows what to check your code against. The GoLive syntax checker also checks your document against the doctype you specify.

Figure 35.5. The !DOCTYPE declaration tells validators and browsers that your code is conforming to that particular Document Type Description (DTD).



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint