This XML file does not appear to have any style information associated with it. The document tree is
生活随笔
收集整理的這篇文章主要介紹了
This XML file does not appear to have any style information associated with it. The document tree is
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
先寫(xiě)一段代碼:
<?xml version = "1.0" encoding = "UTF-8"?> <!DOCTYPE htmlPUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3c.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html><head><title> First xhtml document </title></head><body><p>This is the body. </p><p>This is the <i>prragraph</i> 2</p></body> </html>用瀏覽器打開(kāi)如下:
加上 xmlns = "http://www.w3.org/1999/xhtml" xml:lang="en" lang= "en"? ? ? 后,代碼如下:
<?xml version = "1.0" encoding = "UTF-8"?> <!DOCTYPE htmlPUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3c.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head><title> First xhtml document </title></head><body><p>This is the body. </p><p>This is the <i>prragraph</i> 2</p></body> </html>或者:
<?xml version = "1.0" encoding = "UTF-8"?> <!DOCTYPE htmlPUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3c.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" ><head><title> First xhtml document </title></head><body><p>This is the body. </p><p>This is the <i>prragraph</i> 2</p></body> </html>?
總結(jié)
以上是生活随笔為你收集整理的This XML file does not appear to have any style information associated with it. The document tree is的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: HTML <!DOCTYPE> 标签
- 下一篇: 设计模式——工厂模式(一)