34.5k views
5 votes
Which is the right way to give comment if you are using Internet explorer as the browser? a) <!-- My First Webpage --> b) <comment> My First Webpage </comment>

User Evana
by
5.6k points

1 Answer

2 votes

Answer:

(a) <!-- My First Webpage -->

Step-by-step explanation:

Comments in programming languages are chunks of texts, written as part of program code, that are not executed as actual code but rather used for making the program code easily readable and understandable. They allow programmers to explain certain lines of a program code.

Every programming language has its own way of representing comments. In HTML - HyperText Markup Language - comments are written between the following tags :

<!--

and

-->

For example, to put the text "My comment goes here" in a comment, we write:

<!-- My comment goes here -->

From the question, the text to be put is: "My First Webpage". Therefore, we write;

<!-- My First Webpage -->

User Kalatabe
by
5.3k points