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) 명령어
[공지] 기술 게시판
10.27
10.29
10.30
10.31
11.1
11.2
11.3
11.4
11.5
11.6
11.7
11.9
11.10
11.11
11.12
11.13
11.14
11.15
11.16
11.17
11.18
11.19
11.20
11.21
11.22
11.23
11.24
11.25
11.26
11.27
11.28
11.29
11.30