无废话XML阅读笔记(三)



五. 下一代的HTML--XHTML.
        1. 什么是XHTML.
                XHTML最早叫"HTML in XML".简单讲,就ishi把过去以SGML定义的HTML,改用XML重新定义.所有XHTML的标签都是由HTML4.0标签定义,各元素和属性的名称和用法几乎完全不变.因为变成了XML,有些地方必须遵照XML的规矩,严格执行,不能再像过去那么随便了.
        2.XHTML长的什么样子.
                <?xml version="1.0" encoding="GB2312"?>
                <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Framest//EN"
                        "
http://www.w3.org/TR/xhtml1/DTD/strict.dtd">
                <html xmlns="
http://www.w3.org/TR/html1">
                <head>
                        <title>Keona Test</title>
                        <meta http-equiv="Content-Type" content='text/html; charset="GB2312"'/>
                        <script type="text/javascript">
                        <![CDATA[
                        function sayHello(name) {
                                alert("Hello" + name);
                        }
                        ]]>
                        </script>
              

posted @ 2009-09-08 17:30  Akweb  阅读(69)  评论(0编辑  收藏  举报