Tuesday, November 16, 2010

How do you change the font in HTML?I know how to change size, color, etc I just don't know how to change fonts

You can change font size, type, weight, style either through an HTML tag %26lt;font%26gt; or using CSS. If you are new to HTML, may be best for you to just stick with the font tag and stay away from CSS until you have more knowledge on it. You will need both an opening and closing tag. A simple search of the font tag will give you the different properties you can change.How do you change the font in HTML?I know how to change size, color, etc I just don't know how to change fonts
The font tag isn't used any more and it shouldn't be used for color or size either.

CSS is the only way to go.



body {

font-family: Arial, Helvetica, sans-serif;

}



td {

font-family: Arial, Helvetica, sans-serif;

}



th {

font-family: Arial, Helvetica, sans-serif;

}



http://www.w3schools.com/css/default.asp check it out

No comments:

Post a Comment