2011-05-01 2 views
0

html의 doctype을 이해하지 못합니다.html의 doctype 내용

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" 
"http://www.w3.org/TR/html4/strict.dtd"> 

여기서 각각의 의미가 무엇인지 설명해 주실 수 있습니까?

+1

HTML 5 doctype을 보았습니까? 그것은''입니다. – Oded

답변

6
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" 
      "http://www.w3.org/TR/html4/strict.dtd"> 


!DOCTYPE - The document type declaration 
HTML - The root element is HTML, the type of document is HTML 
PUBLIC - Availability - this is a public doctype 
"-//W3C//DTD HTML 4.01//EN" - A formal identifier 
"http://www.w3.org/TR/html4/strict.dtd" - URI, here it is the location of the DTD 

about.com에 대한 추가 분석이 있습니다. 이 문서 타입의

+1

[Even Better] (http://www.blooberry.com/indexdot/html/tagpages/d/doctype.htm) – saplingPro

1

부품은 다음과 같습니다

Root element:    HTML 
DTD type:     PUBLIC 
Formal Public Identifier: "-//W3C//DTD HTML 4.01//EN" 
DTD URL:     "http://www.w3.org/TR/html4/strict.dtd"> 

그러나, 당신이 정말로 무엇을 모든 수단을 알아야 할 필요가 없습니다. doctype 선언 중 하나를 W3C's recommended list of doctype declarations에서 선택하십시오.