My <p>
tag is set to contain several lines of text with a specific CSS class, but I am looking to modify the text format within certain parts of the paragraph.
In the past, I would achieve this using the <font>
tag, however it seems that HTML5 no longer supports this method.
What is now considered the most effective way to accomplish this?
For example:
<p class="mainText">This is an example
<font class="newFormat"> of how to change the text format</font>
within a single paragraph.
</p>
Any advice is greatly appreciated. Thanks!