![]() |
![]() |
|||||||||
Software Applications
IT Solutions
Programming
Development
Internet
|
Since its inception, HTML and its associated protocols gained acceptance relatively quickly. However, no clear standards existed in the early years of the language. Though its creators originally conceived of HTML as a semantic language devoid of presentation details, practical uses pushed many presentational elements and attributes into the language, driven largely by the various browser vendors. The latest standards surrounding HTML reflect efforts to overcome the sometimes chaotic development of the language and to create a rational foundation for building both meaningful and well-presented documents. To return HTML to its role as a semantic language, the W3C has developed style languages such as CSS and XSL to shoulder the burden of presentation. In conjunction, the HTML specification has slowly reined in the presentational elements. There are two axes differentiating various flavors of HTML as currently specified: SGML-based HTML versus XML-based HTML (referred to as XHTML) on the one axis, and strict versus transitional (loose) versus frameset on the other axis. SGML-based versus XML-based HTML One difference in the latest HTML specifications lies in the distinction between the SGML-based specification and the XML-based specification. The XML-based specification is usually called XHTML to distinguish it clearly from the more traditional definition; however, the root element name continues to be 'html' even in the XHTML-specified HTML. The W3C intended XHTML 1.0 to be identical to HTML 4.01 except where limitations of XML over the more complex SGML require workarounds. Because XHTML and HTML are closely related, they are sometimes documented in parallel. In such circumstances, some authors conflate the two names as (X)HTML or X(HTML). Like HTML 4.01, XHTML 1.0 has three sub-specifications: strict, loose, and frameset. Aside from the different opening declarations for a document, the differences between an HTML 4.01 and XHTML 1.0 documents in each of the corresponding DTDs are largely syntactic. The underlying syntax of HTML allows many shortcuts that XHTML does not, such as elements with optional opening or closing tags, and even EMPTY elements which must not have an end tag. By contrast, XHTML requires all elements to have an opening tag or a closing tag. XHTML, however, also introduces a new shortcut: an XHTML tag may be opened and closed within the same tag, by including a slash before the end of the tag like this: <br/>. The introduction of this shorthand, which is not used in the SGML declaration for HTML 4.01, may confuse earlier software unfamiliar with this new convention. To understand the subtle differences between HTML and XHTML, consider the transformation of a valid and well-formed XHTML 1.0 document that adheres to Appendix C (see below) into a valid HTML 4.01 document. To make this translation requires the following steps: 1. The language for an element should be specified with a lang attribute rather than the XHTML xml:lang attribute. XHTML uses XML's built in language-defining functionality attribute. 2. Remove the XML namespace (xmlns=URI). HTML has no facilities for namespaces. 3. Change the document type declaration from XHTML 1.0 to HTML 4.01. (see DTD section for further explanation). 4. If present, remove the XML declaration. (Typically this is: <?xml version="1.0" encoding="utf-8"?>). 5. Ensure that the document&8217;s MIME type is set to text/html. For both HTML and XHTML, this comes from the HTTP Content-Type header sent by the server. 6. Change the XML empty-element syntax to an HTML style empty element (<br/> to <br>). Those are the main changes necessary to translate a document from XHTML 1.0 to HTML 4.01. To translate from HTML to XHTML would also require the addition of any omitted opening or closing tags. Whether coding in HTML or XHTML it may just be best to always include the optional tags within an HTML document rather than remembering which tags can be omitted. A well-formed XHTML document adheres to all the syntax requirements of XML. A valid document adheres to the content specification for XHTML, which describes the document structure. The W3C recommends several conventions to ensure an easy migration between HTML and XHTML (see HTML Compatibility Guidelines). The following steps can be applied to XHTML 1.0 documents only: - Include both xml:lang and lang attributes on any elements
assigning language. WYSIWIG Html editor and CSS ? - Dev Articles WYSIWIG Html editor and CSS ?- Programming Tools. Visit Dev Articles to discuss WYSIWIG Html editor and CSS ? Freeware Home - Free Software Downloads: Programming - HTML Tools ... Freeware downloads. Free downloads of 4500+ freeware programs. Business and Productivity, Desktop, Education, Games, Graphics, Home and Hobby, Internet, Programmins, System ... html code- Programming Tools. Visit Dev Articles to discuss html code ... Discuss html code in the Programming Tools forum on Dev Articles. html code Programming Tools forum for ... cmd and html?- Programming Tools. Visit Dev Articles to discuss cmd and html? ... Discuss cmd and html? in the Programming Tools forum on Dev Articles. cmd and html? Programming ... Article Dicussion: HTML Comes of Age: XHTML - Dev Articles Article Dicussion: HTML Comes of Age: XHTML- Programming Tools. Visit Dev Articles to discuss Article Dicussion: HTML Comes of Age: XHTML HTML + Body Tag - Dev Articles HTML + Body Tag- Programming Tools. Visit Dev Articles to discuss HTML + Body Tag ... Discuss HTML + Body Tag in the Programming Tools forum on Dev Articles. HTML + Body Tag ... Free Java Programming Tools downloads Popular Java Programming Tools at Free Downloads Center. ... Time tracking, timesheet and project management has become easier by using Easy Time Logs Free. Free Java Programming Tools downloads: Top 3 Java Programming Tools at Free Downloads Center. ... Get to know the popularity of your website on all major search engines such as Google, AltaVista, Yahoo, MSN and so on within ... Free Java Programming Tools downloads! Java Programming Tools at Free Downloads Center. ... A simple relaxing game in which all you have to do is earn as much points as you can by moving gems through free cells on the ... Pet Market CF With HTML - Dev Articles Pet Market CF With HTML- Programming Tools. Visit Dev Articles to discuss Pet Market CF With HTML
|
Most Popular
Webware
Mobile Software
Other Popular
MP3 & Audio
DVD & Video
Top Shareware
Popular Games
Security
Desktop
Software Management
|
||||||||
Copyright
© 2008, software09.com - All Rights Reserved |