HTML5のDOCTYPE宣言

 

 
HTML5のDOCTYPE宣言は、とても簡単。

だけ。

このDOCTYPE宣伝を最初に入れておけば、ブラウザはこのウェブサイトはHTML5で作られているんだな、とわかるのだろう。シンプルで素晴らしい。
(ちなみに、上記の画像はグーグルの「ブラウザやウェブについて知っておきたい20のこと」というサイトのトップページ。真ん中の上の四角形は、トップページのソースを表示し、DOCTYPE宣言が入っているあたりの文字が見られるしたもの)

今まではどうか。

たとえば、人気サイトの¥「ほぼ日刊イトイ新聞」の(ホーム画面の)場合、

となっている。このほぼ日のDOCTYPE宣言はとりたてて長いわけでなく、一般的なものだと思うが、それと比べても

は、ものすごく短いのがわかるだろう。

話が前後するけど、DOCTYPE宣言というのは、ウェブサイトを作成する際、HTMLソースの最初に入れる決まりになっているもの。

ほぼ日のindexのトップhttp://www.1101.com/index.htmlには、DOCTYPE宣言は入っていない。だから、絶対に入れないといけないわけでないのかな。

まあでも、たいてい、ウェブサイトのソースの先頭に、DOCTYPE宣言が入っているはずだ。
 
 
 


Comments

“HTML5のDOCTYPE宣言” への11,009件のフィードバック

  1. Next time I read a blog, I hope that it doesn’t fail me as much as this particular one. I mean, Yes, it was my choice to read through, but I truly thought you would probably have something interesting to say. All I hear is a bunch of moaning about something you can fix if you weren’t too busy seeking attention.

  2. I quite like reading an article that will make people think. Also, thank you for allowing for me to comment.

  3. When I initially left a comment I appear to have clicked on the -Notify me when new comments are added- checkbox and from now on every time a comment is added I receive 4 emails with the exact same comment. Perhaps there is an easy method you are able to remove me from that service? Kudos.

  4. what is the generic for cialis buy cialis online buy viagra cialis online

  5. Your style is unique compared to other people I’ve read stuff from. Thank you for posting when you’ve got the opportunity, Guess I will just book mark this page.

  6. gay connect chat
    gay chat random
    gay chat webcam room facebook

  7. Ԍreetings! I know tthis is sⲟmewһat off topic but Iwas wondering if you қnew wһerе I could locate acaptcha plugin for myy comment form? I’m using theѕame bkog platform aas yours and I’m having trouble finding one?Thanks a lot!

  8. There is certainly a lot to know about this issue. I like all the points you’ve made.

  9. Greetings! Very useful advice within this post! It’s the little changes that producethe greatest changes. Thanks a lot for sharing!

  10. Pretty! This was an extremely wonderful post. Thank you for supplying this info.

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です