@님 안 그래두 하나 더 거슬린게 먼가 했더니 html 시작이 없었군요..ㅋㅋ head, body 클로징이 없어도 된다니.. 이건 새로운 사실인데 링크 글이 너무 복잡해서 내일 다시 한번 봐야겠네요.. 개인적으로는 html 4.01부터 시작된 이랬다 저랬다는 정말 마음에 들진 않습니다..ㅎㅎ
An html element's start tag may be omitted if the first thing inside the html element is not a comment. <html> 태그는 html 개체 내부의 첫 문장이 주석이 아니면 생략이 가능합니다.
A head element's end tag may be omitted if the head element is not immediately followed by ASCII whitespace or a comment. </head> 태그는 head 개체 밖에 공백이나 주석을 놓으려는 게 아니면 생략이 가능합니다.
A body element's end tag may be omitted if the body element is not immediately followed by a comment. </body> 태그는 body 개체 밖에 주석을 놓으려는 게 아니면 생략이 가능합니다.
내 몸과 마음(머리)은 널 향해 열려있어!
그건 틀린게 아닙니다.
<html> 시작태그가 없는게 더 거슬리긴 하지만 역시 생략이 가능하군요.
https://html.spec.whatwg.org/multipage/syntax.html#syntax-tag-omission
안 그래두 하나 더 거슬린게 먼가 했더니
html 시작이 없었군요..ㅋㅋ
head, body 클로징이 없어도 된다니..
이건 새로운 사실인데
링크 글이 너무 복잡해서
내일 다시 한번 봐야겠네요..
개인적으로는 html 4.01부터 시작된
이랬다 저랬다는 정말 마음에 들진 않습니다..ㅎㅎ
주는 이
보고있는 이
모두에게 뿌리는 광역 어그로네요
head랑
html도 닫아주세요
html5 니까 !DOCTYPE 으로 끝내죠. ㅋㅋ
https://html.spec.whatwg.org/multipage/syntax.html#optional-tags
A head element's end tag may be omitted if the head element is not immediately followed by ASCII whitespace or a comment.
너무 거슬리는데요. !!!!
본문보다는 댓글들이 더 빵터지네요 ㅎㅎ
몹시 불편하네요
인스타엔 코딩케이크라고 해두셨네요 ㅎㅎㅎ
(대충 수달 폰던지는 짤)
HTML 구문 자체는 틀린 부분이 없습니다.
HTML Living Standard — Last Updated 10 November 2022
https://html.spec.whatwg.org/multipage/syntax.html#optional-tags
An html element's start tag may be omitted if the first thing inside the html element is not a comment.
<html> 태그는 html 개체 내부의 첫 문장이 주석이 아니면 생략이 가능합니다.
A head element's end tag may be omitted if the head element is not immediately followed by ASCII whitespace or a comment.
</head> 태그는 head 개체 밖에 공백이나 주석을 놓으려는 게 아니면 생략이 가능합니다.
A body element's end tag may be omitted if the body element is not immediately followed by a comment.
</body> 태그는 body 개체 밖에 주석을 놓으려는 게 아니면 생략이 가능합니다.
물론 <html> 시작 태그 없이 닫는 태그만 있는 건 알면서도 불편하군요.
여전히 w3c 때처럼
마음대로 하는거 같은 기분이 드네요..