Doctype Switching in Modern Browsers

Total Page:16

File Type:pdf, Size:1020Kb

Doctype Switching in Modern Browsers Thomas Vervik, July 2007 Doctype switching in modern browsers Summary: Some modern browsers have two rendering modes. Quirk mode renders an HTML document like older browsers used to do it, e.g. Netscape 4, Internet Explorer 4 and 5. Standard mode renders a page according to W3C recommendations. Depending on the document type declaration present in the HTML document, the browser will switch into either quirk mode, almost standard or standard mode. If there is no document type declaration present, the browser will switch into quirk mode. This paragraph summaries this article. I will explain how the main browsers on the marked today determine which rendering mode to use when rendering the (x)html documents they receive. I have tested nearly all my assertions in Internet Explorer 6, Firefix 2 and Opera 9.02. The validation is done at the official W3 validation page http://validator.w3.org. Some of my assertions are tested using pages on the net. This is done when testing the media types ‘text/html’ and ‘application/xhtml+xml’with html and xhtml with both legal and illegal syntax. My previous article was full of vague assertions and even things that were directly wrong. This should not be the case in this article where nearly all the assertions are tested. One section I should be humble about is the ‘Doctype dissection’. Finding good sources decribing these in more detail than pages and books just briefly describing their syntax proved hard, but I have done my best and have also described in the text which section I’m certain about and the one I am more uncertain about. I have in additional been very strict on referring my sources, and there is an own source section at the end of this article with links and references to nearly all my sources. Why different rendering modes? First let’s briefly describe why we have a situation today where it is necessary to determine how to render the pages. In the early history of www there were two main browsers on the marked, Netscape and Internet Explorer. Both of them, and especially Netscape, added a lot of new functionality that opened a lot of new possibilities on the net. Examples are cookies and JavaScript in addition to a lot of html tags. Internet Explorer did something similar. But these changes were proletarian and there were no standardization like we have today with the W3 organization. Netscape became less used when Microsoft integrated Internet Explorer in their operating system, and the Mozilla society rose from the ashes of Netscape. From Internet Explorer 6 and above the support for the W3 standard have increased to an acceptable level. But the rendering according to the standard differs a lot from the mark-up Microsoft and Netscape added during the time which is often referred to as “the browser war”, and to support the millions of pages written for the old browsers, the concept of three different rendering modes emerged. This check is done through the doctype defined in the beginning of the (X)HTML document and is called doctype sniffing. Why sniffing the doctype? A dtd was designed to define legal syntax in xml documents. A doctype contains the name of the root element (generic identifier) and a reference to the dtd, which again contains the actual information about the syntactic rules for the document. It defines the structure of the document, and has nothing to do with the presentation of it (the layout). This is a weakness. But this is the way IE 6 and above, Mac IE 5, Opera 7 and later and Firefox have chosen to solve the switching of modes. I have attached a link under ‘Why sniffing the doctype?’ under the source section where the writer discuss this topic Media-types W3 have defined four different media types for html, xml and xhtml. Which one being used has implications for the way the browsers interpret the received document. It is also relevant in the discussing of doctype switching because it describes why html and xhtml is so similar today, and what the difference between them really is. It has also implications in understanding which applications and under which circumstances the two technologies should be used. I will here only describe two of them, ‘text/html’ and ‘application/xhtml+xml’, since the two others doesn’t apply directly to html and xhtml (even thus they can be used for xhtml, but it’s not recommended). The ‘text/html’ media type is primarily for html content and not xhml content. ‘text/html’ is being interpreted by an html parser, which there are many implementations (very easily found by goggling the phrase ‘parser html’). The html parser is working quite different than an xml parser. The biggest difference is that an html parser can’t assume that the content it receives is well formed. An xml parser has simple rules stating how it should cope with the illegal syntax, in an html parser this depends on the browser. I have added a link under the source section “Handle invalid html syntax” which describes how these issues are handled in different browser. A normal misconception is that xhtml is being parsed by an xml parser in today’s browsers. This is wrong; when the ‘text/html’ media attribute is used the content will be parsed by an html parser. Xhtml documents should follow the “HTML Compatibility Guidelines” in order to be correctly parsed by an html parser. This is because there are some differences in the way browsers interpret xml syntax. Examples are use of space between the element and the trailing, like <br /> instead of <br/>. Also use minimized tag syntax, like <br /> instead of the perfectly legal xml syntax <br></br>. This because the latter can give uncertain results in many browsers (W3 doesn’t mention names on browsers, so this isn’t tested). Other examples is not to use internal style sheets if your styles sheets uses ‘<’ or ‘&’ or ‘]]>’ or ‘--‘. The same applies to internal scripts. For example will xml parsers silently remove the contents of comments, and therefore will the historical practice of “hiding” scrips and style sheets within comments to make your documents backward compatible not work in xml based user agents. So if you make an xhtml document using these elements, it will work nice when interpreted as html (using the media type ‘text/html’), but fail when sent to an other user agent (lets say a pda) using the media type ‘application/xhtml+xml’. The use of xhtml by using the ‘text/html’ media type have also implications for the charset, as html haven’t defined a default charset as the xml standard have. There are several example listed at W3’s HTML compatibility guidelines page, I have added a link under the source section. The second media type is ‘application/xhtml+xml’. This is the media type that should be used together with xhtml. By using this media type the xhtml document don’t have to follow the “HTML Compatibility Guidelines”, since this media type makes sure the browsers interpret it as an xml document. When using this media type you should not use a doctype at all. I have added a link to the specifications of media types at W3 under the source section. Quirk, almost standard and standard mode IE 6 and later have two rendering modes, quirks mode and standard mode. Opera 7 and later and Firefox also have a third mode called ‘almost standard mode’. Quirk mode is rendering the page like the old browsers did, like IE 5 and earlier and Netscape. The technical differences are the way the browsers interpret the tags and attributes in the (x)html document. There is an own section later in this paper showing theses differences. Almost standard mode is only available in Firefox, Safari and Opera browsers and is the same as standard mode and uses all the css 2 standards, but in addition have support for the table cell vertical sizing. Many layouts on internet are designed using tables, and putting images into table cells. In quirk mode this works well, but in strict mode there will be some space below the image called "descender space". This is because in strict mode an image is by default an inline element, like text is. An inline element has a baseline which letters are placed upon. Below the baseline is some reserved space for the lower parts of the letters, like j g p, etc. A image will be placed on the baseline and therefore have the “descender space” below it. IE doesn’t add the “descender space” below images in strict mode when there is no text around, so this is not an issue here. Standard mode uses the standards as defined in the particular browsers. These may not be the same as the W3 standards, but they may go as close as the browser will go to the standard. There are different standard modes depending on which dtd used. The transitional standard typically allows deprecated tags to remain backward compatibility with old pages. But even if you use a dtd that don’t allow deprecated tags, the browsers will still interpret them. Example tested with is the <center> tag and strict mode. The page will not pass be validation by the official W3 validator, but the tag is still interpreted by the browser. The Difference between strict and transitional HTML / XHTML In short, transitional is a forgiving form of doctype as it allows deprecated tags and attributes to pass the validation test and makes the browser doing its best to render your page as you wanted it.
Recommended publications
  • Beautiful Soup Documentation Release 4.4.0
    Beautiful Soup Documentation Release 4.4.0 Leonard Richardson Dec 24, 2019 Contents 1 Getting help 3 2 Quick Start 5 3 Installing Beautiful Soup 9 3.1 Problems after installation........................................9 3.2 Installing a parser............................................ 10 4 Making the soup 13 5 Kinds of objects 15 5.1 Tag .................................................... 15 5.2 NavigableString .......................................... 17 5.3 BeautifulSoup ............................................ 18 5.4 Comments and other special strings................................... 18 6 Navigating the tree 21 6.1 Going down............................................... 21 6.2 Going up................................................. 24 6.3 Going sideways.............................................. 25 6.4 Going back and forth........................................... 27 7 Searching the tree 29 7.1 Kinds of filters.............................................. 29 7.2 find_all() .............................................. 32 7.3 Calling a tag is like calling find_all() ............................... 36 7.4 find() ................................................. 36 7.5 find_parents() and find_parent() .............................. 37 7.6 find_next_siblings() and find_next_sibling() .................... 37 7.7 find_previous_siblings() and find_previous_sibling() .............. 38 7.8 find_all_next() and find_next() ............................... 38 7.9 find_all_previous() and find_previous() .......................
    [Show full text]
  • Introduction to HTML5
    "Charting the Course ... ... to Your Success!" Introduction to HTML5 Course Summary Description HTML5 is not merely an improvement on previous versions, but instead a complete re-engineering of browser-based markup. It transforms HTML from a document description language to an effective client platform for hosting web applications. For the first time developers have native support for creating charts and diagrams, playing audio and video, caching data locally and validating user input. When combined with related standards like CSS3, Web Sockets and Web Workers it is possible to build ‘Rich Web Applications’ that meet modern usability requirements without resorting to proprietary technologies such as Flash and Silverlight. This course enables experienced developers to make use of all the features arriving in HTML5 and related specifications. During the course delegates incrementally build a user interface for a sample web application, making use of all the new features as they are taught. By default the course uses the Dojo Framework to simplify client-side JavaScript and delegates are presented with server-side code written in Spring MVC 3. Other technology combinations are possible if required. Topics Review of the Evolution of HTML Playing Audio and Video Better Support for Data Entry Hosting Clients in HTML5 Support for Drawing Images and Standards Related to HTML5 Diagrams Prerequisites Students should have experience of web application development in a modern environment such as JEE, ASP .NET, Ruby on Rails or Django. They must be very familiar with HTML4 and/or XHTML and the fundamentals of programming in JavaScript. If this is not the case then an additional ‘primer’ day can be added to the delivery.
    [Show full text]
  • Consonant Characters and Inherent Vowels
    Global Design: Characters, Language, and More Richard Ishida W3C Internationalization Activity Lead Copyright © 2005 W3C (MIT, ERCIM, Keio) slide 1 Getting more information W3C Internationalization Activity http://www.w3.org/International/ Copyright © 2005 W3C (MIT, ERCIM, Keio) slide 2 Outline Character encoding: What's that all about? Characters: What do I need to do? Characters: Using escapes Language: Two types of declaration Language: The new language tag values Text size Navigating to localized pages Copyright © 2005 W3C (MIT, ERCIM, Keio) slide 3 Character encoding Character encoding: What's that all about? Copyright © 2005 W3C (MIT, ERCIM, Keio) slide 4 Character encoding The Enigma Photo by David Blaikie Copyright © 2005 W3C (MIT, ERCIM, Keio) slide 5 Character encoding Berber 4,000 BC Copyright © 2005 W3C (MIT, ERCIM, Keio) slide 6 Character encoding Tifinagh http://www.dailymotion.com/video/x1rh6m_tifinagh_creation Copyright © 2005 W3C (MIT, ERCIM, Keio) slide 7 Character encoding Character set Character set ⴰ ⴱ ⴲ ⴳ ⴴ ⴵ ⴶ ⴷ ⴸ ⴹ ⴺ ⴻ ⴼ ⴽ ⴾ ⴿ ⵀ ⵁ ⵂ ⵃ ⵄ ⵅ ⵆ ⵇ ⵈ ⵉ ⵊ ⵋ ⵌ ⵍ ⵎ ⵏ ⵐ ⵑ ⵒ ⵓ ⵔ ⵕ ⵖ ⵗ ⵘ ⵙ ⵚ ⵛ ⵜ ⵝ ⵞ ⵟ ⵠ ⵢ ⵣ ⵤ ⵥ ⵯ Copyright © 2005 W3C (MIT, ERCIM, Keio) slide 8 Character encoding Coded character set 0 1 2 3 0 1 Coded character set 2 3 4 5 6 7 8 9 33 (hexadecimal) A B 52 (decimal) C D E F Copyright © 2005 W3C (MIT, ERCIM, Keio) slide 9 Character encoding Code pages ASCII Copyright © 2005 W3C (MIT, ERCIM, Keio) slide 10 Character encoding Code pages ISO 8859-1 (Latin 1) Western Europe ç (E7) Copyright © 2005 W3C (MIT, ERCIM, Keio) slide 11 Character encoding Code pages ISO 8859-7 Greek η (E7) Copyright © 2005 W3C (MIT, ERCIM, Keio) slide 12 Character encoding Double-byte characters Standard Country No.
    [Show full text]
  • Web Protocols UR What? URI Syntax Internationalisation
    CS314 - 29 UR what? Web Protocols ! URI: Uniform Resource Identifier ! URI, URN, URL " Uniquely identifies a data entity " ! Internationalisation Obeys a specific syntax " schemeName:specificStuff ! Role of HTML and XML ! URN: Uniform Resource Name ! HTTP and HTTPS " A URI that only names something " interacting via the Web " Example: urn:isbn:0-534-38317-3 ! URL: Uniform Resource Locator " A URI that points to an actual resource " Example: http://en.wikipedia.org/wiki/URL 1 2 URI syntax Internationalisation ! The Unicode standard defines character sets for any URI = scheme ":" hier-part script [ "?" query ] [ "#" fragment ] " variable length character codes, usually encoded in bytes in UTF-8 format ! The hierarchical part can start with // and uses / to separate components. There are other reserved " 8-bit ASCII is a proper subset of UTF-8 characters ! Internationalising DNS names, URIs and email addresses in UTF-8 is not simple http://en.wikipedia.org/wiki/URL " Yet most people in the world have names like Fältström, scheme top of hierarchy (note reversal - next next name DNS writes right to left!) level level ! (DNS is case-independent but URI is case-sensitive) internationalised content and interaction 3 4 *ML *ML parsers ! In 1969, three IBMers invented GML (Generalised ! Strictly speaking, a pure SGML parser can parse Markup Language) HTML, XML or XHTML ! In the early 1980s it became SGML (Standard GML) ! In practice, HTML is written sloppily with proprietary ! Around 1990, Tim Berners-Lee and Robert Cailliau extensions invented
    [Show full text]
  • Torbjorn Borison
    Object Synchronisation and Security for Mobile Communication Devices By Torbjörn Borison Royal Institute of Technology Kungliga Tekniska Högskolan 2001-09-20 Examiner and academic Prof. Gerald Maguire Supervisor: Department of Teleinformatics Royal Institute of Technology Corporate Supervisor: Johan Hedin Ericsson Radio System AB Abstract The main objective of this master’s thesis project was to investigate and find solutions to the problem of how to combine the SyncML synchronisation specification with object security and thus protection of personal information, such as contacts and calendar entries in mobile devices. SyncML is a new synchronisation specification agreed upon by major device developers (Ericsson, Palm, Motorola, etc.) and the major synchronisation server developers (Starfish, Puma, fusionOne, etc.). It is independent of transport (HTTP, WSP, or OBEX) platform, operating system, and application and simplifies synchronisation of personal information between dissimilar SyncML supportive devices. SyncML compliant devices are fully capable of synchronising information with a third party operated Internet based server and a desktop computer. This allows us to access, up-date and maintain information independent of Intranets or geographical position. However, synchronising and storing confidential personal information on an third party operated Internet based server entails weaknesses in our personal information security. Even if transport and storage security are used, how secure is the server where this information is stored since this server has the highest probability of being attacked. Can we really trust that an employee or other person with valid appropriated administrators access to the storage facility with the appropriate knowledge, working together with the third party server operator, won’t try to access our stored information? To prevent this, the personal information’s confidentiality must be guaranteed before the information leaves the device.
    [Show full text]
  • Information Processing — Text and Office Systems — Standard Generalized Markup Language (SGML)
    International Standard •3 8879 / INTERNATIONAL ORGANIZATION FOR STANDARDIZATION»ME)KflyHAPOflHAR OPrAHU3AL|Ufl FIO CTAHflAPTH3ALlMM»ORGANISATION INTERNATIONALE DE NORMALISATION Information processing — Text and office systems — Standard Generalized Markup Language (SGML) Traitement de /'information — Systemes bureautiques — Langage standard generalise de balisage f SGML) First edition — 1986-10-15 Adopted for Use by the Federol Government FIPS PUB 152 See Notice on Inside Front Cover —JK— 468 . A8A3 //152 1988 UDC 681.3.06 Ref. No. ISO 8879-1986 (E) Descriptors : data processing, documentation, logical structure, programming (computers), artificial languages, programming languages Foreword ISO (the International Organization for Standardization) is a worldwide federation of national standards bodies (ISO member bodies). The work of preparing International Standards is normally carried out through ISO technical committees. Each member body interested in a subject for which a technical committee has been established has the right to be represented on that committee. International organizations, govern¬ mental and non-governmental, in liaison with ISO, also take part in the work. Draft International Standards adopted by the technical committees are circulated to the member bodies for approval before their acceptance as International Standards by the ISO Council. They are approved in accordance with ISO procedures requiring at least 75 % approval by the member bodies voting. International Standard ISO 8879 was prepared by Technical Committee ISO/TC 97, In¬ formation processing systems. Users should note that all International Standards undergo revision from time to time and that any reference made herein to any other International Standard implies its latest edition, unless otherwise stated. NATIONAL INSTITUTE OF STANDARDS &' TECHNOLOGY Research Mormatksn Center Gakhersburg, MD £06^9 This standard has been adopted for Federal Government use.
    [Show full text]
  • Modularization of XHTML in XML Schema Modularization of XHTML™ in XML Schema
    Modularization of XHTML in XML Schema Modularization of XHTML™ in XML Schema Modularization of XHTML™ in XML Schema W3C Working Draft - 22 March 2001 This version: http://www.w3.org/TR/2001/WD-xhtml-m12n-schema-20010322 (Single HTML file [p.1] , PostScript version, PDF version, ZIP archive, or Gzip’d TAR archive) Latest version: http://www.w3.org/TR/xhtml-m12n-schema Editors: Daniel Austin, Mozquito Technologies AG Shane McCarron, Applied Testing and Technology Copyright ©2001 W3C® (MIT, INRIA, Keio), All Rights Reserved. W3C liability, trademark, document use and software licensing rules apply. Abstract This document describes a methodology for the modularization of XHTML using XML Schema. Modularization of XHTML allows document authors to modify and extend XHTML in a conformant way. Status of This Document This section describes the status of this document at the time of its publication. Other documents may supersede this document. The latest status of this document series is maintained at the W3C. This is the first public "Working Draft" of "Modularization of XHTML in XML Schema" for review by members of the W3C and other interested parties in the general public. It is a stand-alone document to ease its review. Once the methodology described in this document become mature, it will be integrated into a future document forthcoming from the HTML Working Group. This document is still in its early stage, and may be updated, replaced, or obsoleted by other documents at any time. Publication of this Working Draft does not imply endorsement by the W3C, and it is inappropriate to use W3C Working Drafts as reference material or to cite them as other than "work in progress".
    [Show full text]
  • Picking a Rendering Mode
    1245xAPPA 7/17/02 9:26 AM Page 1 PICKING A RENDERING MODE Standing in the middle of yesterday Where it all went wrong—where we made mistakes I’m sorry for the things I forgot to say But it won’t be long until it will be okay —RAINE M AIDA SUPPOSE YOU’VE SPENT A FEW YEARS and several million dollars developing a product that rapidly scans Dewey Decimal numbers on book spines and sends those num- bers to a central database. This enables libraries to keep track of what they physically have on hand. You sell your product to hundreds of libraries all over the country and get a lot of rave reviews. Then one day a large number of libraries decide to abandon Dewey and go to an alternate system, one that allows for more expansion. Many of your customers will be making this switch, but they still want to use your device. They’re willing to pay for an upgrade, and you could provide one, but if you change the product to use this new system, it won’t read the Dewey numbers any- more. That would prevent your other, Dewey-based clients from buying the upgrade and would turn away some new customers. 1245xAPPA 7/17/02 9:26 AM Page 2 2 The simple answer is to build both systems into the device and put a switch on the side so that users can pick which scanning mode they want. This gives you a more flexible device that doesn’t turn away any customers.
    [Show full text]
  • Demo: Html5 Structure
    Demo: html5 structure Simple Text/Web Editor • TextEdit –make plain text (osx) • Notepad++ (windows) • TextWrangler (osx) • Coda 2 (osx) • Sublime Text 2 (osx & windows) • Brackets (osx & windows) General Workflow (nomadic version) • Set up/verify web folder on local hard drive • Set up FTP (file transfer protocol) client • Download web files (html, css, jpg, gif, png) from server to local folder • Open/create web files from the local web folder (ONLY) • Edit web files • Test locally in browser (chrome) • Chrome inspect element • Validate code (w3c validator) • Upload web files from local drive to server • Test live in browser (multiple browsers) Coda 2 Setup • Launch Coda • Add new site o Nickname > general site keywords o Protocol > SFTP o Server > redwood.colorado.edu o User Name > youridentikey o Password > your redwood password o Root URL > http://redwood.colorado.edu/youridentikey ! Include subdirectory if applicable o Local URL > leave blank (advanced local server feature) o Remote Root > blank for root directory ! Subdirectory if applicable o Local Root > Set to local web folder • Double click on site thumbnail to launch • Select Files • Verify local and remote (server) connection • !!!Coda bug – Quit Coda and re-launch application • Double click on site thumbnail again • Test o Open local html page o Make minor change (carriage return) o Save o Badge should pop up on publish icon • Good to go. What is html? • acronym for hypertext markup language • hypertext means ability jump to another document (links) • markup is a language for describing web pages. • markup tags define the structure of content in web pages • “view source” in any browser to see the html markup of a webpage html tags • html markup is called “tags” • tags are special keywords surrounded by angle brackets o <html> <body><head><title> • html tags normally come in pairs o <p> ….
    [Show full text]
  • Second Exam December 19, 2007 Student ID: 9999 Exam: 2711 CS-081/Vickery Page 1 of 5
    Perfect Student Second Exam December 19, 2007 Student ID: 9999 Exam: 2711 CS-081/Vickery Page 1 of 5 NOTE: It is my policy to give a failing grade in the course to any student who either gives or receives aid on any exam or quiz. INSTRUCTIONS: Circle the letter of the one best answer for each question. 1. Which of the following is a significant difference between Windows and Unix for web developers? A. The Apache web server works only on Windows, not on Unix. B. Dreamweaver cannot be used to develop web sites that will be hosted on Unix. C. File and directory names are case-sensitive on Unix, but not on Windows; you have to do a case- sensitive link check if you develop pages on Windows but they might be copied to a Unix-hosted server. D. Firefox works only on Unix, not Windows. E. Windows is just another name for Unix; there is no difference between them at all. 2. What is the purpose of the css directory of a web site? A. It holds JavaScript programs. B. It holds XHTML Validation code. C. It holds background images. D. It holds stylesheets. E. It is needed for compatibility with Apache and PHP. 3. What is the purpose of the images directory of a web site? A. To hold the <img> tags for the site. B. To hold the stylesheets for images. C. To differentiate between JPEG and PNG images. D. To hold the imaginary components of the DOCTYPE. E. To hold photographic and graphical images used in the site.
    [Show full text]
  • DOCTYPE Sniffing
    06_576429 ch02.qxd 11/18/04 12:28 PM Page 17 2 Document Standards This chapter explores the various options for a document foundation. CSS is a dynamic tool, in that you can use it in more than one type of document, including HTML, XHTML, and XML docu- ments. Each type of document may have several variations, flavors, or degrees of strictness. This chapter describes what’s involved in creating each type. Document standards are something very important to the aspiring CSS web designer. Inclusion of a Document Type Declaration (explained in a moment) and a well-formed document may mean the difference between a splitting, grueling headache and a mark-up document including CSS that works as expected in all the major browsers. Chapter 1 discussed the W3C body, the group assem- bled to decide on web standards. This chapter examines the various documents into which you can incorporate CSS, describing what each document looks like and giving you a few very basic examples of each document in action. The explanation of each topic in the following list is quite lengthy and can easily fill an entire book. This chapter covers only the basics, including ❑ Writing mark-up ❑ Obtaining the required web browsers ❑ Introduction to HTML, XML, and XHTML ❑ Introduction to the Document Type Declaration ❑ DOCTYPECOPYRIGHTED sniffing and how to invoke standards MATERIAL mode ❑ Creating web documents that survive and perpetuate into the foreseeable future Choosing Which Markup Language to Use HTML, XHTML, and XML are all based on SGML, which stands for Standard Generalized Markup Language. SGML is the parent of tag-based languages like HTML, XHTML, and XML, although it is not limited to these three examples.
    [Show full text]
  • A Web Jelölőnyelvei
    A Web jelölőnyelvei Jeszenszky Péter Debreceni Egyetem, Informatikai Kar [email protected] Utolsó módosítás: 2020. április 2. A Web jelölőnyelvei ● HTML ● SVG ● MathML 2 HTML ● „A HTML a Web elsődleges leíró nyelve.” ● „[...] egy szemantikai szintű leíró nyelv és a kapcsolódó szemantikai szintű alkalmazásprogramozási interfészek a Weben elérhető oldalak készítéséhez, melyek a statikus dokumentumoktól a dinamikus alkalmazásokig terjednek.” – Lásd: HTML Living Standard (utolsó módosítás: 2020. április 1.) https://html.spec.whatwg.org/ 3 HTML verziók használata (1) ● PowerMapper Software: HTML Version Statistics. https://try.powermapper.com/stats/htmlversions 4 HTML verziók használata (2) ● W3Techs: Usage statistics and market share of HTML for websites https://w3techs.com/technologies/details/ml-htm l 5 HTML 4.01 ● HTML 4.01 Specification (W3C ajánlás, 1999. december 24.; hatálytalanítva: 2018. március 27.) https://www.w3.org/TR/html401/ – Az utolsó SGML-alapú HTML verzió. ● Dokumentumtípus-deklarációk: – Strict: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> – Transitional: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> – Frameset: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd"> ● Média típus: text/html 6 XHTML (1) ● Az XML alkalmazásként definiált HTML szigorúbb szabályokat ír elő a dokumentumok számára, így azok feldolgozása egyszerűbb. ● Különösen lényeges ez a hagyományos asztali gépekhez képest korlátozott lehetőségekkel bíró eszközökénél (például mobil eszközöknél). ● Az XHTML illetve annak modularizációja lehetővé teszi az XHTML kombinálását más XML alkalmazásokkal. – Például MathML és SVG beágyazás XHTML dokumentumokba – ezek a dokumentumok a továbbiakban azonban már nem XHTML dokumentumok.
    [Show full text]