2010-12-22 69 views
0

对不起,我的英语。HTML 5参考/规范?

我有PHP类生成的HTML表单:

class Html_ElementInput extends Html_Element 
{ 
    public function __construct($type=null) 
    { 
     parent::__construct(); 

     $this->attrs = array 
     (
      'type' => array('text', 'password', 'checkbox', 'radio', 'submit', 'reset', 'file', 'hidden', 'image', 'button'), 
      'name' => 'CDATA', 
      'value' => 'CDATA', 
      'checked' => array('checked'), 
      'disabled' => array('disabled'), 
      'readonly' => array('readonly'), 
      'size' => 'Number', 
      'maxlength' => 'Number', 
// ...... 

这种格式的模拟SGML的DTD描述的xHTML - http://economist.rudn.ru/files/web-studio/docs/html/xhtml/xhtml_1.0/xhtml1-transitional_dtd.txt

我想他们的阶级基础HTML5改变,但没有说明SGML-HTML5规范。

我是否正确理解SGML-HTML5描述不会?

+0

一部分,所以你的问题涉及到关于HTML5规范的文档? – yoda 2010-12-22 20:26:33

+0

是的。我希望看到SGML类型的规范HTML5,如http://economist.rudn.ru/files/web-studio/docs/html/xhtml/xhtml_1.0/xhtml1-transitional_dtd.txt,但在W3C的规范HTML5的其他格式,我不明白他们的。 – user551658 2010-12-22 20:29:49

回答

1

HTML 5不基于SGML。它有两个序列化,XML和HTML 5.没有HTML 5的SGML版本。

据我所知,没有官方机器可读的语言描述。我预计语言一旦稳定就会出现,但它仍在发展中。

一个非官方的(可能不总是最新的)RelaxNG schema is available作为validator.nu