Instead of relying on CSS classes, you have the option to apply inline styling directly to your HTML elements:
<h1 style="color: blue; font-size: 13px;">Hello</h1>
However, this approach is not recommended due to its lack of scalability and maintainability. Proceed with caution. ;)
It's worth noting that the CSS code snippet you shared in your query is invalid. Remember that CSS class names must adhere to certain naming conventions. A correct example would be:
<h1 class="blue-13px">Hello</h1>
.blue-13px {
color: blue;
font-size: 13px;
}
Additionally, it's possible to include CSS rules directly within your HTML document (rather than using an external CSS file):
<style>
.blue-13px {
color: blue;
font-size: 13px;
}
</style>
<h1 class="blue-13px">Hello</h1>