HTML5のDOCTYPE宣言

 

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

だけ。

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

今まではどうか。

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

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

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

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

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

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


Comments

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

  1. Wow! Finally I got a blog from where 온라인바카라 I be able to really
    obtain helpful facts regarding my study and knowledge.

  2. 523568 621652Woh I enjoy your content , saved to favorites ! . 36956

  3. Nakliyat firmasi hakkindaki onayli yorumlari gor kalitesinden emin ol.

  4. I am interested in more info. How can I reach you?

  5. Thx so much !!! Appreciate the helpful info.

  6. web site

  7. Pretty! This was a really wonderful post. Thanks for supplying this information.

  8. gabapentin ingredients gabapentin for nerve pain can you take gabapentin while pregnant

  9. Just wanted to say thanks!

  10. Asking questions are in fact good thing if you are not understanding anythingentirely, except this paragraph presents nice understanding even.

  11. Evden eve tasima ihtiyaci, is yeri degisikligi ve benzeri nedenlerden dolayi hayatinizda karsilasacaginiz durumlardan biridir

  12. visit website

  13. I am interested in more info. How can I reach you?

  14. seroquel 300 mg buy online seroquel price australia seroquel 25 mg medicine

  15. I’d like to thank you for the efforts you have put in writing this site. I am hoping to view the same high-grade blog posts by you later on as well. In fact, your creative writing abilities has encouraged me to get my own site now 😉

  16. I really admire your writing!

  17. Oh my goodness! Incredible article dude! Thank you, However I am having issues with your RSS. I don’t know why I can’t join it. Is there anyone else having the same RSS problems? Anybody who knows the solution will you kindly respond? Thanks.

  18. does zithromax treat strep throat over the counter azithromycin what are the side effects of zithromax

  19. I just bookmarked your webpage.

  20. evden eve nakliyat, ambalajlama, sokme takma, tasima gibi islemleri ayni gun icerisin de gerceklestirmektedir

  21. most trusted online casino golden nugget casino online goldennugget online casino

コメントを残す

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