w3-video.com logo

HTML5 Tutorial

Home HTML5 XAMPP .htaccess Firefox Notepad++

Share it

!–– –– avoid adding comments within elements that expect text content

Video demonstration comment warning

HTML5 comment warning Tutorial

min video details
00:02 avoid adding comments within elements that expects text content
00:06 for example: the content model of the title element is text → it accepts only text inside
00:11 only text inside (= between the start tag and the end tag)
00:14 in such cases, avoid adding comments because it might be included in the text content
00:23 comment included in the title of our page
comment intro comment scripts comment browser display comment parents - children comment forbidden characters comment syntax