html5에서 싱글 클로우징 태그(single closing tag), 보이드 엘레멘트(void element)의 /> 처리에 관련

http://www.w3.org/TR/html5-diff/#syntax-misc

위 링크에서 부분 발취

2.4 Miscellaneous

There are a few other changes in the HTML syntax worthy of mentioning:

  • The ⟨ and ⟩ named character references now expand to U+27E8 and U+27E9 instead of U+2329 and U+232A, respectively.

  • Many new named character references have been added, including all from MathML.

  • Void elements (known as "EMPTY" in HTML4) are allowed to have a trailing slash.

  • The ampersand (&) may be left unescaped in some more cases compared to HTML4.

  • Attributes have to be separated by at least one whitespace character.

  • Attributes with an empty value may be written as just the attribute name omitting the equals sign and the value, even if it's not a boolean attribute. (HTML4 actually allowed using only the attribute value and omitting the attribute name, for enumerated attributes, but this was not supported in browsers.)

  • Attributes omitting quotes for the value are allowed to use a larger set of characters compared to HTML4.

  • The optgroup end tag is now optional.

  • The colgroup start tag is now optional and is inferred by the HTML parser.



Void elements (known as "EMPTY" in HTML4) are allowed to have a trailing slash.
->(구글신께 물어봤음) 빈 요소는 (HTML4에서 "EMPTY"로 알려진) ​​뒤에 슬래시를 가질 수 있습니다.
-> 요약 html5는 싱클태그일때는 /를 끝에 붙이든지 말든지.
(이틀 찾았네.)


단어 정리
  • viod elements
  • EMPTY
  • single closing tag
  • 위는 전부 같은 것을 말하고, <meta {...} /> 같은 형식의 닫는 태그가 없는 것을 의미한다.





댓글
  • No Nickname
    No Comment
  • 권한이 없습니다.
    {{m_row.m_nick}}
    -
목록형 📷 갤러리형
제목
[기본형] HTML (with 부트스트랩5.3 , jquery 3.7, vue.js)
유용한 리눅스(LINUX) 명령어
[공지] 기술 게시판
3.31
4.1
4.2
4.3
4.4
4.5
4.6
4.7
4.8
4.10
4.11
4.12
4.13
4.14
4.15
4.16
4.18
4.19
4.20
4.21
4.22
4.23
4.24
4.25
4.26
4.27
4.28
4.29
4.30
5.1
5.2
5.3
5.4