내 페이지의 유효성을 검사하려고했지만 양식 섹션에 문제가있었습니다. 그래서 무슨 일이 일어나고 있는지를 알기위한 테스트 페이지를 만들었고, 여전히 실패했기 때문에 뭔가 잘못하고 있다고 생각합니다.HTML 4.01 STRICT 잘못된 마크 업 오류
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<title>Test</title>
<meta http-equiv="Content-type" content="text/html;charset=UTF-8">
</head>
<body>
<form action='test.html'>
<input type='submit'>
</form>
</body>
</html>
그건 내 테스트 페이지입니다. , 여전히 나에게 두 번째 오류를 제공
Error Line 10, Column 24: document type does not allow element "INPUT" here; missing one of "P", "H1", "H2", "H3", "H4", "H5", "H6", "PRE", "DIV", "ADDRESS" start-tag
<input type='submit'>
그리고
Error Line 11, Column 9: end tag for "FORM" which is not finished
</form>
에도 제출 버튼없이 : 나는
http://validator.w3.org/check에 복사 할 때 그것은 나에게 두 가지 오류를 제공합니다. 왜 이런 일이 일어나는 지 이유 때문에 붙어 있습니다. 어떤 아이디어?
xhtml은 xml 문법 규칙을 사용하지 않습니까? –