|
HTML Home
Create a Website HTML TutorialHTML Tutorial HomeAbout HTML Getting Started HTML Elements HTML Formatting HTML Attributes HTML Colors HTML Links HTML Images HTML Meta Tags HTML Comments HTML Forms HTML Tables HTML Image Maps HTML Frames HTML Entities HTML Layouts HTML Styles HTML Scripts HTML Website Templates Website Hosting Summary HTML Code GeneratorsHTML Code GeneratorHTML Table Generator Marquee Generator Music Code Generator HTML Text Generator Text Box Generator Free HTML CodesHTML Background CodeHTML Comment Box Codes HTML Scroll Box Codes HTML Font Codes HTML Picture Codes HTML Marquee Code HTML Music Codes HTML Templates More Codes... HTML ReferenceHTML ExamplesComplete HTML Tag List Complete HTML 5 Tag List HTML Special Characters Hex Color Codes HTML Help FREE Hosting!With every domain name you register with ZappyHost, you get FREE hosting.$1.99 Domain NamesWith every new non-domain purchase thru ZappyHost, you get a domain name for only $1.99. |
HTML Font CodeHere are some HTML font codes that you can copy/paste straight into your website or MySpace page. Once you've pasted the code, you can change the values as required. TIP: You can make it easy on yourself by using the text generator. Quick ExampleThe following font code sets common properties such as font size, line height, font family, and font color. Here are some more colors to choose from. The above code results in this: This font is 14pt, the line height is 20pt, it's color is orange, and the font family will be 'Garamond'. If the user's computer doesn't have 'Garamond', it will use 'Georgia'. Failing that it will use the default 'serif' font on the user's computer (this is often 'Times' or 'Times Roman' - just leave it as 'serif'). You can also specify bold text and italics if you wish! Font FamilyIf you only want to specify the font family, you can use the 'font-family' property: The above code results in this: HTML font code is done using CSS. Font SizeIf you only want to specify the font size, you can use the 'font-size' property: The above code results in this: HTML font code is done using CSS. ColorIf you only want to specify the font color, you can use the 'color' property (more colors): The above code results in this: HTML font code is done using CSS. BoldYou can make your font bold by using the 'font-weight' property: The above code results in this: HTML font code is done using CSS. If you only want to bold some of the text inline, you can use the HTML 'span' tag: The above code results in this: You can bold parts of your text using the HTML 'span' tag. Italic TextYou can make your text italic by using the 'font-style' property: The above code results in this: HTML font code is done using CSS. If you only want to make some of the text italic, you can use the HTML 'span' tag: The above code results in this: You can make some of your text italic using the HTML 'span' tag. More Font CodeWhen coding HTML, CSS is what you use for formatting. Here are the CSS font/text properties:
If you're interested, here's a full list of CSS Properties Have you checked out the HTML Tutorial?Enjoy this website?
Oh, and thank you for supporting Quackit! |
Need Content for your Website?Get unique, quality digital content for your website. You can even earn money by reselling it!Includes:
|