|
Home » The tutorial » Changing Fonts Changing FontsIf you didn't actually try the CSS code from the cascade lesson above, you may have missed something. By adding font-family: Arial; to the html declaration, all of the fonts changed to Arial. html Notice that we actually define 3 different fonts. The browser will try these three in order in case one of them isn't there. So, if your visitor doesn't have Georgia installed they will get Times New Roman instead, which is pretty close. The serif declaration at the end gives us a last ditch try if neither is there. It will go with the default serif font. You should always end a font-family declaration with either serif or sans-serif just in case. You can use more than 3, but 3 seemed a good number. |
