解决方法
不,它不是合法的HTML.
在DTD(4.01)中,div元素未被描述为EMPTY元素.@H_301_3@
该定义没有EMPTY:@H_301_3@
<!ELEMENT DIV - - (%flow;)* -- generic language/style container --> <!ATTLIST DIV %attrs; -- %coreattrs,%i18n,%events -- %reserved; -- reserved for possible future use -- >
与人力资源的定义形成对比:@H_301_3@
<!ELEMENT HR - O EMPTY -- horizontal rule --> <!ATTLIST HR %attrs; -- %coreattrs,%events -- >