Adding Comments to CSS Code
When you are experimenting with the CSS, you'll be able to use comments rather than replacement or deleting code for Examine the following:/* background-color: blue; */
background-image: URL(../images/gradient 1.jog)
The comment symbols ar these:
/* */
The new symbols can flip any code into comments that means the browser can ignore the road. you'll be able to comment out a lot of lines by moving the left or right comment symbols Love this:
An example of CSS comments
In the code higher than,
the last 3 lines are commented out, so that they are unheeded.
Comments ar quite helpful for reminding yourself what a specific rule will For example,
An example of CSS comments other to code Try to add comments where attainable once you come to your code a couple of weeks down the road it'll create a lot of sense if you've got other comments.
In the next lesson you will learn the way to position things with CSS.
No comments:
Post a Comment