Inactive Tutor answered 12/21/19
Hello,
The short answer is Yes. But only as long as you have HTML in it.
In fact, as long as you have HTML in any file, you can apply inline styles regardless of the extension of the file.
Tip
However, I recommend to NEVER use inline styles unless is absolutely necessary.
Using inline styles is quite a bad practice, due to:
- Increased specificity.
- Hard HTML to maintain.
- Hard HTML to scale.
- Code bloating (although HTML is not "code", it's markup).
- Makes the CSS prone to using the !important notation which is also a bad practice (read the first reason here again).
Hope this helps.
Regards.