|
|
HTML Code TutorialHTML Codes Tutor Ebook Download Doctype TagThe doctype tag is the first tag on any HTML page. It not actually an HTML tag , but rather an SGML (Standard Generalized Markup Language) declaration. In the early days of the web it was used to tell a browser what version of HTML was used to build the page. Today it tells a browser what media, HTML, XHTML or other, the page is built with. It also tells a validator which version of media to use in checking the document's syntax. If omitted the page will still work because the browser assumes a default value. It is a good idea to include the tag, because browsers of the future could very well require it. Example: Example 2: This declares the document to be HTML 4.01 Frameset. HTML 4 Frameset is a variant of HTML 4 Transitional for documents that use frames. Some doctype declarations may cause your pages to malfunction in various browsers. Specifying a Strict rather than Transitional version of your media would mean that you have to be extra careful about not including errors or bad HTML in your code. Example 3: This example specifies a strict version of XHTML 1.0. It also specifies a URL indicating where the media definition resides. More Information |
Contents Table of ContentsIntroduction Page Structure Basic HTML PageDoctype The Body Tag The Header Tag The Division Tag Horizontal Rule Anchor Tag Anchor Tag - Intradocument Anchor Tag - Image Using Borders The ID Attribute Meta Tags Text Controls Style SheetsWorking With Fonts The Paragraph Tag Paragraphs-Images Using Lists The Pre Tag Line Break Tag Tables Basics of TablesColspan Forms Form BasicsCheck Boxes Text Boxes Selection Boxes Frames Basic FramesTarget and Scrolling Search Engines Miscellaneous Using ColorColor Chart Using Images Using Templates Uploading HTML pages. HTML-CSS Quizzes |
|
|
|
|