CSS Fonts
Choosing the right font for your website is important!
Font Selection is Important
Choosing the right font has a huge impact on how the readers experience a website.
The right font can create a strong identity for your brand.
Using a font that is easy to read is important. The font adds value to your text. It is also important to choose the correct color and text size for the font.
Generic Font Families
In CSS there are five generic font families:
- Serif fonts have a small stroke at the edges of each letter. They create a sense of formality and elegance.
- Sans-serif fonts have clean lines (no small strokes attached). They create a modern and minimalistic look.
- Monospace fonts – here all the letters have the same fixed width. They create a mechanical look.
- Cursive fonts imitate human handwriting.
- Fantasy fonts are decorative/playful fonts.
All the different font names belong to one of the generic font families.
Difference Between Serif and Sans-serif Fonts
Note: On computer screens, sans-serif fonts are considered easier to read than serif fonts.
Some Font Examples
Generic Font Family | Examples of Font Names |
---|---|
Serif | Times New Roman Georgia Garamond |
Sans-serif | Arial Verdana Helvetica |
Monospace | Courier New Lucida Console Monaco |
Cursive | Brush Script MT Lucida Handwriting |
Fantasy | Copperplate Papyrus |
The CSS font-family Property
In CSS, we use the font-family
property to specify the font of a text.
Note: If the font name is more than one word, it must be in quotation marks, like: “Times New Roman”.
Tip: The font-family
property should hold several font names as a “fallback” system, to ensure maximum compatibility between browsers/operating systems. Start with the font you want, and end with a generic family (to let the browser pick a similar font in the generic family, if no other fonts are available). The font names should be separated with comma.
Example
Specify some different fonts for three paragraphs:
.p1 {
font-family: "Times New Roman", Times, serif;
}
.p2 {
font-family: Arial, Helvetica, sans-serif;
}
.p3 {
font-family: "Lucida Console", "Courier New", monospace;
}
44 Responses
order levaquin online levaquin 250mg ca
avodart generic buy ondansetron 4mg generic buy ondansetron 4mg generic
spironolactone 100mg cost cheap aldactone 25mg order generic fluconazole 100mg
cheap ampicillin purchase bactrim pills erythromycin price
order fildena 50mg sale purchase careprost without prescription methocarbamol 500mg generic
order suhagra pill cheap sildenafil 50mg cost estradiol 1mg
lamictal 50mg canada retin gel without prescription retin cream oral
order tadalafil for sale avana 200mg oral diclofenac 50mg pills
accutane tablet amoxicillin 250mg price buy zithromax online cheap
purchase indomethacin without prescription indocin drug trimox 250mg cost
buy cialis 5mg without prescription online canadian drugstore sildenafil tablets
anastrozole 1 mg brand order biaxin without prescription usa viagra overnight
cialis 20mg generique cialis generique viagra en ligne
deltasone 5mg for sale viagra 100mg us buy sildenafil 50mg for sale
cialis 20mg generika viagra 100mg fГјr frauen viagra 200mg kaufen ohne rezept
buy accutane 10mg pills order stromectol 12mg online cheap ivermectin 3mg price
modafinil 100mg drug cheap modafinil acetazolamide 250 mg pill
doxycycline online buy lasix sale buy furosemide 40mg for sale
ramipril 5mg pills buy clobetasol generic buy astelin online
brand clonidine 0.1mg spiriva pills brand tiotropium bromide
buy buspirone 5mg pills cost amiodarone oxybutynin 2.5mg pills
buy terazosin azulfidine price generic azulfidine 500 mg
fosamax pills brand alendronate pepcid medication
olmesartan cost divalproex over the counter order acetazolamide 250mg pills
tacrolimus 1mg tablet ropinirole 2mg usa ursodiol for sale online
imdur medication micardis ca buy micardis 20mg without prescription
order bupropion 150mg sale order strattera 25mg without prescription buy quetiapine 100mg generic
buy molnupiravir 200mg sale order lansoprazole online cheap lansoprazole usa
sertraline 50mg generic buy generic lexapro 20mg buy sildenafil 50mg generic
order salbutamol 100 mcg pantoprazole 20mg cheap buy sildenafil pill
buy cialis 10mg sale cialis sale order viagra 100mg pills
cialis 5mg generic symmetrel brand order symmetrel 100 mg online cheap
generic revia 50mg albenza 400mg for sale abilify 20mg sale
avlosulfon 100 mg for sale allegra ca order perindopril 8mg online
order medroxyprogesterone 10mg buy medroxyprogesterone generic buy cyproheptadine online
order provigil 100mg without prescription buy provigil 200mg without prescription ivermectin 3 mg tabs
order generic accutane 20mg isotretinoin 40mg ca buy deltasone pills
buy piracetam 800 mg sale buy sildenafil online cheap sildenafil 100mg canada
azithromycin 500mg tablet order gabapentin sale neurontin 800mg brand
tadalafil 10mg pills buying cialis cheap order sildenafil online cheap
order furosemide 100mg generic buy furosemide 40mg sale hydroxychloroquine sale
tadalafil without a doctor’s prescription cialis 40mg brand clomipramine oral
cheap chloroquine cenforce 50mg uk buy baricitinib 2mg pills
tratamiento para la disfuncion erectil
efectos secundarios moderna tercera dosis
RogerTeany
RogerTeany
https://comprarcialis5mg.org/disfuncion-erectil/
RogerTeany
https://comprarcialis5mg.org/disfuncion-erectil/
RogerTeany
tirodril efectos secundarios
https://comprarcialis5mg.org/cialis-5-mg-precio/