What is /* */ used for in CSS HTML Styling? - Q and A : Website Development

Share ☞ Copy Link: πŸ”— https://newsblist.blogspot.com/2023/06/what-is-used-for-in-css-html-styling-q.html
Published (Updated) on Friday, June 9, 2023

WEB DEVELOPMENT — In CSS (Cascading Style Sheets), `/* */` is used to denote a comment in HTML codes. A comment is text that is ignored by the browser when it renders the page.

It is used as a way to add notes or explanations within the code to help developers better understand what the code is doing.

HTML Comments are helpful for other developers who may need to read or modify your code in the future, and they can be used to temporarily disable a section of code without deleting it.

The Comments can span multiple lines or only a portion of a line, and they cannot be nested.

* For more understanding about CSS, consult a certified web developer.

News ▶ Agencies and Media

Share Your Thoughts