Computer Science, asked by adwaithnambiar19, 1 day ago

Peter wants to write few information in HTML document, but don’t want it to get displayed in the browser window. Help him to accomplish the task.

Answers

Answered by MichMich0945
1

Heyo!

Answer:

Comments.

Explanation:

Peter can use comments to add some information, which might be some documentation, wiki, or even some personal notes and these comments won't be rendered on the webpage.

How to create a comment:-

  • To convert a normal text message into a comment, you can wrap the text in <!-- -->

Example:-

<!-- This is a comment, and it won't be rendered on the webpage -->

This is normal text, and it will be rendered on the webpage

Output for the above will be provided in the attachments (:

Plus! There are some additional benefits of using comments, if you are using any IDE ( integrated development environment ) which supports HTML, it will color the comment into a different color ( most commonly gray or olive ) which kinda helps to distinguish between the program and your comments.

Also, new developers are recommended to add comments to their program in order to make it more human read-able, which helps a lot during debugging or scaling your program.

Hope this helps you and have a great day ahead <3

Attachments:
Answered by jadhavprabhawati1991
0

Cascading Style Sheets (CSS) is a style sheet language used for describing the presentation of a document written in a markup language such as HTML. CSS is a cornerstone technology of the World Wide Web, alongside HTML and JavaScript.。◕‿◕。

Similar questions