CSS Comments
CSS comments are not displayed in the browser, but they can help document your source code.
CSS Comments
Comments are used to explain the code, and may help when you edit the source code at a later date.
Comments are ignored by browsers.
A CSS comment is placed inside the <style>
element, and starts with /*
and ends with */
:
Example
/* This is a single-line comment */
p {
color: red;
}
You can add comments wherever you want in the code:
Example
p {
color: red; /* Set text color to red */
}
Comments can also span multiple lines:
Example
/* This is
a multi-line
comment */
p {
color: red;
}
HTML and CSS Comments
From the HTML tutorial, you learned that you can add comments to your HTML source by using the <!--...-->
syntax.
In the following example, we use a combination of HTML and CSS comments:
Example
<!DOCTYPE html> <html> <head> <style> p { color: red; /* Set text color to red */ } </style> </head> <body> <h2>My Heading</h2> <!-- These paragraphs will be red --> <p>Hello World!</p> <p>This paragraph is styled with CSS.</p> <p>CSS comments are not shown in the output.</p> </body> </html>
46 Responses
cheap levofloxacin order generic levaquin 500mg
buy avodart online purchase avodart for sale buy ondansetron 4mg without prescription
buy aldactone generic diflucan 200mg oral fluconazole 100mg ca
ampicillin 250mg us buy cephalexin 125mg pill buy erythromycin 250mg without prescription
sildenafil 100mg drug purchase careprost without prescription order robaxin pill
sildenafil pills oral aurogra order estrace 1mg for sale
generic lamictal 200mg tretinoin for sale order retin generic
tadalafil ca buy voltaren 100mg generic voltaren pill
generic isotretinoin 20mg azithromycin 250mg price cheap azithromycin 250mg
indomethacin order online cefixime 200mg drug order generic trimox 500mg
cialis mail order usa medication for ed dysfunction sildenafil over counter
order arimidex online cheap clarithromycin medication purchase sildenafil generic
order prednisone 20mg pill sildenafil medication purchase sildenafil online
tadalafil 5mg kaufen ohne rezept sildenafil 100mg kaufen ohne rezept original sildenafil rezeptfrei sicher kaufen
provigil 200mg brand diamox 250mg without prescription order acetazolamide 250 mg for sale
order doxycycline 100mg generic buy levitra 20mg without prescription order generic furosemide
order altace 10mg generic ramipril for sale buy astelin 10ml online cheap
order clonidine 0.1 mg pill order meclizine 25 mg without prescription buy spiriva 9 mcg for sale
order buspirone for sale buy amiodarone 200mg order generic oxybutynin 2.5mg
buy terazosin pills order arava 20mg sale order sulfasalazine 500mg pill
alendronate 70mg price purchase famotidine without prescription pepcid 20mg us
olmesartan drug buy verapamil 120mg generic oral acetazolamide 250mg
tacrolimus for sale buy ursodiol 300mg without prescription order ursodiol 150mg pills
isosorbide 40mg cost order telmisartan 20mg sale order generic telmisartan 20mg
zyban oral order zyban 150 mg for sale order quetiapine pill
buy molnunat 200mg generic omnicef sale prevacid 15mg brand
order sertraline pill Sale viagra viagra 50mg for sale
order imuran 100mcg for sale sildenafil order order viagra 50mg sale
cialis 40mg tablet order prozac for sale order viagra 100mg generic
female cialis pill buy amantadine 100 mg without prescription amantadine 100mg us
naltrexone 50 mg price order aripiprazole purchase aripiprazole
dapsone 100mg generic order allegra 120mg sale purchase aceon for sale
provera online buy order cyproheptadine cyproheptadine 4 mg uk
modafinil oral order provigil generic ivermectin oral
order fluvoxamine generic nizoral cost buy glucotrol 10mg
isotretinoin price order isotretinoin 20mg online brand deltasone 5mg
buy generic nootropil 800mg order generic viagra cost of viagra 100mg
azithromycin cost order zithromax buy gabapentin 100mg
buy cialis pills order cialis pills sildenafil 100 mg
furosemide sale cost doxycycline 100mg buy hydroxychloroquine 400mg pills
order tadalafil 10mg pills tadalafil 10mg purchase clomipramine for sale
best writing essay essay writing service online how to write my essay
essay writing service online scholarship essay writing help customized essay
claim/thesis thesis template latex thesis format template
thesis templates how to write thesis statement thesis statement.
quine duhem thesis example of a strong thesis statement thesis writing help uk