grammatical-clean-up-added-few-sentences.md (#29078)
fixed grammatically errors. edited sentences to make the flow clearer added few sentences.
This commit is contained in:
committed by
Randell Dawson
parent
1625b8faf7
commit
8635a777c6
@@ -3,22 +3,23 @@ title: Uncomment HTML
|
||||
---
|
||||
## Uncomment HTML
|
||||
|
||||
The comment topic is often a bit confusing at the start.
|
||||
Look at the example:
|
||||
The comment topic is often a bit confusing in the beginning.
|
||||
|
||||
Let's look at an example:
|
||||
```
|
||||
<!-- This is a commented block.
|
||||
It doesn't matter how long it is, if it has <h1>HTML elements</h1> in it or if it develops
|
||||
into
|
||||
into a
|
||||
few lines,
|
||||
everything between the first weird series of character and the last is commented out -->
|
||||
everything between the first less than sign followed by exclamation mark and the last greater than sign is commented out -->
|
||||
```
|
||||
|
||||
You can use comment in-line too: `<!-- Uh, I does not exists! -->` and here it is!
|
||||
You can use comments in-line too: `<!-- Note about html goes here so you can remember why this is here -->` and here it is!
|
||||
|
||||
The only thing to consider is that when you see this set of char `<!--` everything from there is commented out since you find the specular `-->`; these are the opening and closing tag of an HTML element!
|
||||
The only thing to consider is that when you see this set of characters `<!--` everything from there is commented out until you see this `-->`; these are the opening and closing tag of an HTML element!
|
||||
|
||||
##### UNCOMMENT
|
||||
Uncomment means take things out from the comment text: to uncomment the h3 element of the following sentence (which is all commented out):
|
||||
Uncomment means to take things out from the comment text: to uncomment the h3 element of the following sentence (which is all commented out):
|
||||
```
|
||||
<!-- <h1>Comment header</h1> <h3>Comment subtle</h3> <article>I am the text of the comment</article> -->
|
||||
```
|
||||
@@ -28,10 +29,13 @@ is as easy as:
|
||||
<!-- <h1>Comment header</h1> --> <h3>Comment subtle</h3> <!-- <article>I am the text of the comment</article> -->
|
||||
```
|
||||
|
||||
Notice how it has been added a closing comment tag (`-->`) before the h3 HTML element to match the opening comment tag at the start of the sentence and added an opening comment tag (`<!--`) after it to match the closing tag at the end: in this way you have created two inline comments, one before the h3 element and one after!.
|
||||
Notice how a closing comment tag (`-->`) has been added before the h3 HTML element to match the opening comment tag at the start of the sentence? We also added an opening comment tag (`<!--`) after it to match the closing tag at the end; in this way you have created two inline comments (one before the h3 element and one after).
|
||||
|
||||
If you want to uncomment everything is even easier:
|
||||
```
|
||||
<h1>Comment header</h1> <h3>Comment subtle</h3> <article>I am the text of the comment</article>
|
||||
```
|
||||
Just remove the opening and closing tag of the comment.
|
||||
Just remove the opening and closing tags of the comment.
|
||||
|
||||
Commments are very valuable because it helps you remember the purpose of a section of code. You can use a many comments as you like. In fact, comments are a sign of careful and thoughtful coding.
|
||||
|
||||
|
Reference in New Issue
Block a user