2 World Wide Web Consortium W 3 C
2 웹표준 이란? World Wide Web Consortium (W 3 C) http: //www. w 3 c. org 국제적인 웹 기술 표준 기구 W 3 C SPEC : HTML, XHTML, CSS등 표준화 단계 Draft Working Draft Candidate Recommendation
HTML과 XHTML 차이점 태그들의 내포관계가 확실해야 함 <p>This is a <i>bad example. </p></i> <p>This is a <i>good example. </i></p> 종료 태그를 생략할 수 없음 <img src="http: //sample. com/wrong. jpg"> <img src="http: //sample. com/right. jpg" /> 특성값들은 따옴표로, 단축형 표기는 허용되지 않음 바른 표현 : <input checked="checked"> 틀린 표현 : <input cheked> 9
HTML과 XHTML 차이점 script 및 style 요소에는 type 속성이 포함되어야 한다. <script type="text/javascript” language="javscript"></script> <style type="text/css"></style> 문서 내 URL에서 &를 쓰면 안 된다. <!—에러! --> <a href="foo. cgi? chapter=1§ion=2">. . . </a> <!—적합! --> <a href="foo. cgi? chapter=1& section=2">. . . </a> 10
CSS(Cascading Style Sheet) 13
- Slides: 18