Open zannain opened 6 years ago
Hi, Zannain! Thank you for very good comments and tips! I used the font-family twice since it was indicated on two occasions that the text needs to be in Helvetica. I thought that the rest of the text will therefore need to be in times new roman.
Dont-Repeat-Yourself. This is an important programming principle. If you find yourself repeating certain styles this is an indication that you can simplify your stylesheet by making use of CSS classes.
Rather than applying the following styles multiple times.
Alternatives
Now you can give multiple element tags a class attribute of
bold
and they will all receive this common style. This is in fact how CSS libraries such as Bootstrap work.With any of these approaches, it's easy to update a style simultaneously by modifying that variable or the
.bold
/body
selector and the entire page is updated.