This is Sasha and thanks for joining me here for another training video on CSS. Today, I want to share with you how to manipulate or modify the font family when it comes it to your business website. If you’re looking to evolve your business website or make modifications to the website then this is how you do it with the font family. Let’s take a look.
Generic font families
When you first take a look at the page, what you want to see is that you really have a default font or font family when it comes to your website. It’s just automatic. It’s the default based. Now, what you could do is go ahead and do the font family element right there, when doing font family, you could type in a generic family. For example, you could type in a Serif so that’s a Serif based font or you could type in something like cursive.
--------------------- HTML CODE --------------------------------------- CSS CODE ------------------ h2 {font-family: serif;}Backstageincome : Learn to grow a business and evolve your life! Welcome to My New Website
Business Launch Pad is focused on showing you the critical concepts on how to build a profitable business from scratch.These are my books and products
Thank you for visiting

Okay, so if you have a cursive based font now you can see the H2 tags that I’ve created, they are cursive, okay, so – because we’re targeting the H2 tag. If I targeted the body, you know, this would change everywhere, okay? But if you target just the H2 then it will only affect the H2 and you can see this little paragraph is not affected. Let’s go ahead and leave on the body for the time being.
--------------------- HTML CODE --------------------------------------- CSS CODE ------------------ body {font-family: cursive;}Backstageincome : Learn to grow a business and evolve your life! Welcome to My New Website
Business Launch Pad is focused on showing you the critical concepts on how to build a profitable business from scratch.These are my books and products
Thank you for visiting

Other things that you could do is Fantasy based, again not something most people would use or even monospace, okay? That’s another one as well. This is more like coding MSDOS based again, not really one that most people would use.

Those are the kind of families that you could go ahead with or the generic families. Typically the way most people work with font family is they’ll type in the ones they want first. I might want Arial first and Verdana and then after that it could be, let’s just say, Times New Roman.
Hierarchy and the font-family property
Typically, Times New Roman is in quotes because it’s just a multi-length kind of name and you put a comma in between all those and if it can’t do that then we’ll do something with a Serif based font and then we’ll end it with our semicolon.
What this does and the way that this works is it basically first tries to hit the Arial if the font is installed and there is Arial then you’re good, that’s the one it’s going to use. If it doesn’t use that one and it doesn’t have it, it’ll see it’ll have Verdana. If it doesn’t have that, it’ll try to hit Times New Roman. If it doesn’t have that, use something that’s a Serif based font.
--------------------- HTML CODE --------------------------------------- CSS CODE ------------------ body {font-family: arial, verdana, "times new roman", serif;}Backstageincome : Learn to grow a business and evolve your life! Welcome to My New Website
Business Launch Pad is focused on showing you the critical concepts on how to build a profitable business from scratch.These are my books and products
Thank you for visiting

Let me go ahead and save this and now what you can see is since we do have Arial then it went with Arial. If I remove Arial then hit save, watch what’s going to happen, okay? There you go. That’s Verdana. If I remove Verdana, okay, right there you’ll see that it’ll go right there to Times New Roman, okay? If I put in Gotham right here which is another font, you can see it changes all that to Gotham based.
That’s how the font-family property works because it’s based hierarchy. You can put in multiple fonts, you know, four or five or six fonts that you can go through that select – tells the browser this is the first one, this is the second one, this is the third one and if it doesn’t have that one move on to the next one.
Use fonts that most people have installed
Usually, you want to use fonts that most people have installed unless you go ahead and use or install some additional font things like Typekit from Adobe or some Google fonts that are absolutely free which are also another way to incorporate some additional fonts beyond just the general or generic fonts that most people have installed which we’ll get to in another training video but for the time being understand that that’s how you go ahead and install or set up the font-family tag is that you have that priority.
You know, you go Arial, Verdana, the next one and the next one and typically three to four is all you need because by then those are usually the ones that you want to use. Otherwise, it may make your website look a little funky or different.