How to add comments in CSS - Example and code

Comments as in other programming languages ​​have two main purposes: document source code and disable CSS instructions.

How to add comments in CSS - Example and code | Learn CSS | Comments as in other programming languages ​​have two main purposes: document source code and disable CSS instructions

Large format instructions within a style sheet should always be commented on, so that they can be interpreted even over time. For this purpose, a special syntax is available, based on the programming language C.

Make use of it, especially when you want to define many different formats and subclasses. The comments will help modify the documents later.

/* Extra large title, in bold and red */

Comments are entered with / * and conclude with the same series of characters but reversed * /

🤖

ChatGPT Free
Ask questions on any topic

CITE ARTICLE


For homework, research, thesis, books, magazines, blogs or academic articles

APA Format Reference:

Delgado, Hugo. (2019).
How to add comments in CSS - Example and code.
Retrieved Nov 03, 2024, from
https://disenowebakus.net/en/comments-css

Participates!

Share it with your friends in Social Networks!

Professor at the University of Guadalajara

Hugo Delgado Desarrollador y Diseñador Web en Puerto Vallarta

Professional in Web Development and SEO Positioning for more than 10 continuous years.
We have more than 200 certificates and recognitions in the Academic and Professional trajectory, including diploma certificates certified by Google.

CONTINUE LEARNING

IT ALSO DESERVES TO PAY TO VISIT:

Not finding what you need?

Use our internal search to discover more information
Related content:

Would you like to learn more about Web Design?

Meet all the courses and tutorials that we have for you completely free
Learn Web Design

2 comments on "How to add comments in CSS - Example and code"

  1. User Avatar
    Harry

    Gladness about your content, Good stuff! I recently explored your website & want to aware you for the relatable content. Keep up the Good Work!

  2. User Avatar
    ritesh

    Solving material you have given to Google, I must say a genuine content! Either way Keep up the good work.

 

Leave your Comment

SPONSOR

Your business can also appear here. More information