nguyenkhanhnhat / prj-rev-bwfs-dasmoto

0 stars 0 forks source link

CSS repetition font family. #3

Open farishkash opened 6 years ago

farishkash commented 6 years ago

https://github.com/nguyenkhanhnhat/prj-rev-bwfs-dasmoto/blob/c10b1ee4e45602df2e7eb1f25e1e86759ef56a81/First%20project/style.css#L2

Whenever styles are being repeated, alternatives should be considered to reduce this. One of the purposes of CSS is to reduce the amount of repetitive styling done on a website.

So for font family, the same one is being used throughout the webpage. A universal selector can be used to write this once.

* {
font-family: "Helvetica"; 
}