When you nest a comment, replace “–” with “- -“. When you un-nest, reverse the procedure. It’s not the <!--
that is forbidden but the --
.
Example:
<!-- some stuff
<!- - some inner stuff - ->
<!- - a sibling - ->
the footer -->
More Related Contents:
- An invalid form control with name=” is not focusable
- Manually Triggering Form Validation using jQuery
- How can I change or remove HTML5 form validation default error messages?
- What’s the valid way to include an image with no src?
- IF IE conditionals not working
- HTML5 validation when the input type is not “submit”
- How do I get the collection of Model State Errors in ASP.NET MVC?
- Can comments appear before the DOCTYPE declaration?
- Delay HTML5 :invalid pseudo-class until the first event
- HTML5 phone number validation with pattern
- HTML5 Required input styling
- What elements can be contained within a tag?
- Is there a minlength validation attribute in HTML?
- How do I make a field required in HTML?
- How do I style the HTML form validation error messages with CSS?
- How can I change or remove HTML form validation default error messages?
- Is div inside list allowed? [duplicate]
- Bad value X-UA-Compatible for attribute http-equiv on element meta
- Is the copyright meta tag valid in HTML5?
- What’s the point of valid CSS/HTML?
- How to get the text from the HTML5 input field error message in Selenium?
- Is it possible to validate the size and type of input=file in html5
- Set width on div
- Is it wrong to change a block element to inline with CSS if it contains another block element?
- HTML5 best practices; section/header/aside/article elements [closed]
- What character represents a new line in a text area
- How to see an HTML page on Github as a normal rendered HTML page to see preview in browser, without downloading?
- CSS/HTML: What is the correct way to make text italic?
- HTML Title Image
- Make Div Draggable using CSS