What are Web Safe Fonts?
π Web safe fonts are fonts that are universally installed across all browsers and devices.
π Fallback Fonts
However, there are no 100% completely web safe fonts. There is always a chance that a font is not found or is not installed properly.
π Therefore, it is very important to always use fallback fonts.
π This means that you should add a list of similar "backup fonts" in the font-family property. If the first font does not work, the browser will try the next one, and the next one, and so on. Always end the list with a generic font family name.
@html_css_tut
"w3schools .com"
π Web safe fonts are fonts that are universally installed across all browsers and devices.
π Fallback Fonts
However, there are no 100% completely web safe fonts. There is always a chance that a font is not found or is not installed properly.
π Therefore, it is very important to always use fallback fonts.
π This means that you should add a list of similar "backup fonts" in the font-family property. If the first font does not work, the browser will try the next one, and the next one, and so on. Always end the list with a generic font family name.
@html_css_tut
"w3schools .com"
πTutorials based on web development and programming.
π» + Source Code
βοΈ Html, CSS, JavaScript, React , Bootstrap, jQuery, AJAX, PHP, java, Python, SQL, MYSQL, Node.js, JSON, and More...
π Subscribe for More Tutorials:
https://www.youtube.com/codingwithelias?sub_confirmation=1
π» + Source Code
βοΈ Html, CSS, JavaScript, React , Bootstrap, jQuery, AJAX, PHP, java, Python, SQL, MYSQL, Node.js, JSON, and More...
π Subscribe for More Tutorials:
https://www.youtube.com/codingwithelias?sub_confirmation=1
CSS Font Size
πThe font-size property sets the size of the text.
πBeing able to manage the text size is important in web design. However, you should not use font size adjustments to make paragraphs look like headings, or headings look like paragraphs.
πAlways use the proper HTML tags, like <h1> - <h6> for headings and <p> for paragraphs.
The font-size value can be an absolute, or relative size.
πAbsolute size:
βΎοΈSets the text to a specified size
βΎοΈDoes not allow a user to change the text size in all browsers (bad for accessibility reasons)
βΎοΈAbsolute size is useful when the physical size of the output is known
πRelative size:
βΎοΈSets the size relative to surrounding elements
βΎοΈAllows a user to change the text size in browsers
@html_css_tut
"w3schools .com"
πThe font-size property sets the size of the text.
πBeing able to manage the text size is important in web design. However, you should not use font size adjustments to make paragraphs look like headings, or headings look like paragraphs.
πAlways use the proper HTML tags, like <h1> - <h6> for headings and <p> for paragraphs.
The font-size value can be an absolute, or relative size.
πAbsolute size:
βΎοΈSets the text to a specified size
βΎοΈDoes not allow a user to change the text size in all browsers (bad for accessibility reasons)
βΎοΈAbsolute size is useful when the physical size of the output is known
πRelative size:
βΎοΈSets the size relative to surrounding elements
βΎοΈAllows a user to change the text size in browsers
@html_css_tut
"w3schools .com"