HTML Comment



HTML remarks are not shown in the program, but rather they can assist with reporting your HTML source code.

HTML Remark Tag

You can add remarks to your HTML source by utilizing the accompanying grammar:

<!-- Record your bits of feedback here - - >

Notice that there is an interjection point (!) in the beginning tag, however not in the end tag.

Note: Remarks are not shown by the program, but rather they can assist with reporting your HTML source code.

Add Remarks

With remarks you can put notices and updates in your HTML code:

<!DOCTYPE html>

<html>

    <body>

            <!-- This is a remark - - >

            <p>This is a paragraph.</p>

            <!-- Remarks are not shown in the program - - >

</body>

</html>

Conceal Content

Remarks can be utilized to conceal content.

This can be useful on the off chance that you conceal content for a brief time:

<!DOCTYPE html>

<html>

        <body>

                <p>This is a paragraph.</p>

                <!-- <p>This is another passage </p> - - >

                 <p>This is a passage too.</p>

        </body>

</html>

You can likewise conceal more than one line. Everything between the <!- - and the - - > will be stowed away from the presentation.

<!DOCTYPE html>

<html>

        <body>

                <p>This is a paragraph.</p>

                <!--

                    <p>Look at this cool image:</p>

                    <img border="0" src="pic_trulli.jpg" alt="Trulli">

                -->

                <p>This is a passage too.</p>

        </body>

</html>

Post a Comment

0 Comments