http://www.html5.validator.nu/와 http://www.css.validator.org/validator.html.ko사이트를 활용하여 오류를 수정하라고 되어 있는데 css사용한 html문서의 경우 각각 돌려서 테스트를 해야 하는 건가요?
그리고 실습문제1번같은 경우 오류 수정해서 color:blue로 바꾼후에도
Warning: Consider adding a lang
attribute to the html
start tag to declare the language of this document.
From line 1, column 16; to line 2, column 6
TYPE html>↩<html>↩<head
For further guidance, consult Declaring the overall language of a page and Choosing language tags.
If the HTML checker has misidentified the language of this document, please file an issue report or send e-mail to report the problem.
error부분
The character encoding was not declared. Proceeding using utf-8
.
뜨는데 그럼 완벽한 프로그램이 아니라는 건가요?
저 경고메세지는 무슨 의미이고 error는 어떻게 수정해야 하나요?
--> 예. 그렇습니다.
2. Warning: Consider adding a lang attribute to the html start tag to declare the language of this document.
->
경고이므로 오류는 아닙니다. 검색엔진 및 브라우저 언어에 대한 지원 목적으로 한국어로 작성된 페이지라면 다음과 같이
하면 좋다는 뜻입니다.
<html lang="ko">
3. The character encoding was not declared. Proceeding using utf-8.
-->
다음과 같이 <meta> 태그를 이용하여 사용자가 작성하고 저장한 HTML 문서의 문자 코드를 지정하라는 뜻입니다. 책의 8~9페이지를 참고하세요.
만일 utf-8 코드로 저장하지 않았다면 해당 코드를 주어야 합니다.
<head>
<meta charset="utf-8">
</head>
한번 경험해 보도록 하기 위한 목적이었는데, 처음하는 분들에게는 어려운 부분이 있네요.
다음에 또 질문을 주세요