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
Santino Valenzuela 2018-10-31 18:55:13 -04:00 committed by Huyen Nguyen
parent 70ae03aa3a
commit 82daab2dcc
1 changed files with 14 additions and 13 deletions

View File

@ -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.
@ -20,15 +20,16 @@ Purpose: abc
Read more: https://html.com/tags/comment-tag/#ixzz4vtZHu5uR
<!DOCTYPE html>
<html>
<body>
<h1>FreeCodeCamp web</h1>
<!-- Leave some space between the h1 and the p in order to understand what are we talking about-->
<p>FreeCodeCamp is an open-source project that needs your help</p>
<!-- For readability of code use proper indentation -->
</body>
<body>
<h1>FreeCodeCamp web</h1>
<!-- Leave some space between the h1 and the p in order to understand what are we talking about-->
<p>FreeCodeCamp is an open-source project that needs your help</p>
<!-- For readability of code use proper indentation -->
</body>
</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).
@ -37,12 +38,12 @@ Conditional Comments are only recognized by Internet Explorer Version 5 through
```html
<!DOCTYPE html>
<html>
<body>
<!--[if IE 9]>
<h1>FreeCodeCamp web</h1>
<p>FreeCodeCamp is an open-source project that needs your help</p>
<![endif]-->
</body>
<body>
<!--[if IE 9]>
<h1>FreeCodeCamp web</h1>
<p>FreeCodeCamp is an open-source project that needs your help</p>
<![endif]-->
</body>
</html>
```