The autocomplete attribute and web documents using XHTML: Difference between revisions

Jump to navigation Jump to search
m
Line 20: Line 20:
2. The web is gradually transitioning from HTML to XML-based markup, helped by minority browsers that can parse the application/xhtml+xml internet media type correctly.
2. The web is gradually transitioning from HTML to XML-based markup, helped by minority browsers that can parse the application/xhtml+xml internet media type correctly.


3. When writing HTML, it is trivial to express the <code>autocomplete</code> attribute using the SGML standard by creating a custom DTD and using that as your doctype. You can create such a DTD importing an HTML DTD and then simply adding the following line:
3. When writing HTML, it is trivial to express the <code>autocomplete</code> attribute using the SGML standard by creating a custom DTD and using that as your doctype. You can create such a DTD by importing an HTML DTD and then simply adding the following line:


<blockquote><code><!ATTLIST (form|input) autocomplete (on,off) #IMPLIED></code></blockquote>
<blockquote><code><!ATTLIST (form|input) autocomplete (on,off) #IMPLIED></code></blockquote>

Navigation menu