xhtml では DOCTYPE宣言にシステム識別子の指定が必須です
先日(というかかなり前)、Movable Type で作ったサイトのテンプレートをクライアントさんが自分で修正したら、IEでレイアウトが崩れてしまった、という問合せがきたのでソースを見てみたら、僕が書いた xhtml のソースでは DOCTYPE宣言を、
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
としていたところが、何故か、
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
になっていたのが原因だった、ということがありました。
xhtml の DOCTYPE宣言は、
<!DOCTYPE html PUBLIC "公開識別子" "システム識別子">
という形式になっていて、公開識別子とシステム識別子の両方の記述が必須になっています。
xhtml ではなく、HTML4 ではシステム識別子を省略して、公開識別子のみの記述で、
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
のような感じでもOKですが。
多分、クライアントさんが何らかの html編集ソフトを利用したら、ソフト側で勝手に DOCTYPE宣言を自動で修正してシステム識別子を省略しちゃったんじゃないかなぁ、と想像してるんですが、もしそうなら迷惑なソフトですね。
というわけで、 xhtml1.x でのDOCTYPE宣言は、大体以下のような感じになります。
xhtml1.1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> xhtml1.0 Strict <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> xhtml1.0 Transitional <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> xhtml1.0 Frameset <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
え? 「HTML5は?」って? ggrks
<!DOCTYPE html>
だけでいいみたいよ。
- 現在位置
- TOP > Web制作技術 > xhtml/html > xhtml では DOCTYPE宣言にシステム識別子の指定が必須です
- 前のブログ記事
- 2011年1月の読了本まとめ [2011年2月 8日 16:24]
- 次のブログ記事
- 2011年2~3月の読了本まとめ [2011年4月 5日 12:03]
コメント(9)
trjtra http://paydayloanshsr.com/ payday loans
hdzsawt http://paydayloanssqq.com/ payday loans
I am very happy to read this. This is the kind of manual that needs to be given and not the random misinformation that's at the other blogs. Appreciate your sharing this best posting.
Sildenafil low price viagra online relaxes muscles broaden in the walls of blood vessels and increases blood hurry to particular areas of the body.
Blood crushing is resolute, flash nigh second, past the match between nerve achieve versus total inessential partisans and varies depending on predicament, agitated regal, work, and provisional on health/disease states. viagra without a doctor prescription texas is regulated by means of the thought via both the on pins and endocrine systems.
As you can see from the blood sway map out, only united of the numbers has to be higher viagra without a doctor prescription or lessen than it should be to number as either extraordinary blood pressure or murmured blood pressure:
Sildenafil viagra 50mg price relaxes muscles originate in the walls of blood vessels and increases blood overflowing to distinct areas of the body.
The rout attest indicates that high blood stress does not justification headaches or nosebleeds, except in the box of hypertensive crisis, a medical predicament when blood difficulties is 180/110 mm Hg or higher. If your blood intimidate is unusually elevated non-prescription sildenafil you have bane or nosebleed and are feeling unwell, pause five minutes and retest. If your reading remains at 180/110 mm Hg or higher, holler 9-1-1.
The nicest manifest indicates that enormous blood stress does not justification headaches or nosebleeds, except in the come what may of hypertensive crisis, a medical exigency when blood difficulties is 180/110 mm Hg or higher. If your blood burden is unusually on a trip viagra without a doctor prescription USA you be struck by problem or nosebleed and are premonition unwell, stand by five minutes and retest. If your reading remains at 180/110 mm Hg or higher, call 9-1-1.
コメントする