Coding for Beginners: CSS Basics #69— Adding Style with Font-Style

Опубликовано: 02 Октябрь 2024
на канале: Designers Learn Code
11
0

Interested in Web Access Pro to analyze and fix Accessibility Errors on your site? Get your 14 Day Free Trial: https://join.designerslearncode.com/w...

The Daily Code Snippet is part of our "Coding for Beginners" video series for designers to learn the basics of HTML and CSS coding. We teach a single, easy to understand concept in each video so that you can learn to code even if you have a busy schedule. Subscribe here:    / @designerslearncode  

------

We also learned about font-style in the setting of @font-face but it is also a property used to adjust the chosen font-family.

font-style indicates if a font is styled as normal, italic, or oblique face. Italic fonts are cursive and use less horizontal space. Oblique fonts are just sloped versions of the regular font.

font-style accepts the values of normal, italic, oblique, or oblique angle such as oblique 23deg. The value of the angle can be between -90deg and 90deg. If no angle is specified, the default is 14 degrees.

For accessibility reasons, avoid italicizing large sections of text because these will be difficult to read for those with dyslexia.

#HTML #CSS #coding #web #accessibility #webdevelopment2023 #styletextincss #fontstyle #addingstyletoyourfonts #italics #oblique #obliquefonts #choosingafontstyle #typography #webtypography #websitetypography #textstyling #codinglife #webdesign #designerslearncode #dailycodesnippet #codingforbeginners #tags #openingtag #closingtag #learntocode #codingtutorial #htmltutorial #csstutorial #webdevelopment #htmltutorialforbeginners #csstutorialforbeginners #programmingforbeginners #htmlcssfullcourse