Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do I quote font names in inline style rules?

font inline names Quote rules style
0
Posted

How do I quote font names in inline style rules?

0

As a general rule, it is best to avoid inline style rules because they make your code more difficult to maintain and defeat one of the great strengths of CSS; to separate presentation code from markup. If you have an external style sheet and inline styling it can also lead to confusion because the inline style may override those in the external style sheet; over time you may forget about the inline styles and struggle to solve the unexpected styling it can cause. Having said that, sometimes inline styling is the easiest and most convenient way to get the job done. So long as you understand the judgement you are making, and perhaps comment the code as a reminder to yourself, you can use nested pairs of double or single quotes.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123