Text vs Font – Learn the Difference
Texts are written characters, while fonts are the text’s styles. Let’s discuss these differences.
Text
Text is the characters of a piece of writing.
Text is the predominant content of a software application. For instance, consider this HTML document:
The snippet above is an HTML document containing a GIF animation with some CSS and JavaScript code.
However, even though the above application got configured to display only a GIF animated image, the app’s content is 100% text.
In other words, “text” is essential in building software applications.
Font
A font is a specific style used to alter a text’s appearance.
In other words, suppose you wish to change your text’s look (shape, size, weight, etc.). In such a case, you will style it with the appropriate font.
For instance, to change the weight of a paragraph element, you will apply the CSS font-weight
property like so: