Fixed typo under "Conditional Comments" section (#20464)
In addition, i have inserted "be" to the last sentence of the first paragraph. "Comments can also be used for commenting out lines of code for debugging purposes."pull/33948/head
parent
70ae03aa3a
commit
82daab2dcc
|
@ -5,7 +5,7 @@ title: Comments in HTML
|
|||
|
||||
The comment tag is an element used to leave notes, mostly related to the project or the website. This tag is frequently used to explain something in the code or leave some recommendations about the project. The comment tag also makes it easier for the developer to come back and understand the code he's written at a later stage. Comments can also be used for commenting out lines of code for debugging purposes.
|
||||
|
||||
It is good practice to add comments to your code, especially when working with a team or at a company.
|
||||
It is a good practice to add comments to your code, especially when working with a team or at a company.
|
||||
|
||||
Comments are started with `<!--` and ended with `-->`, and can span multiple lines. They can contain code or text, and won't appear on the front-end of the website when a user visits a page. You can view comments through the Inspector Console, or by viewing Page Source.
|
||||
|
||||
|
@ -29,6 +29,7 @@ Read more: https://html.com/tags/comment-tag/#ixzz4vtZHu5uR
|
|||
</html>
|
||||
```
|
||||
## Conditional Comments
|
||||
|
||||
Conditional Comments defines some HTML tags to be executed when a certain condition is fulfilled.
|
||||
|
||||
Conditional Comments are only recognized by Internet Explorer Version 5 through to Version 9 (IE5 - IE9).
|
||||
|
|
Loading…
Reference in New Issue