font properties

2
Font Properties <p>The <b>font properties are used to control the appearance of the font that you apply to the text in a webpage. With these properties you can specify the size, weight, style etc. of the font.</b> <h2>Font-Family :</h2> <hr> <p>The <b>Font-Family</b> property allows you to specify the font that you want to apply to the text in a webpage. The values that you can specify to this property can be a generic family (family of fonts) and/or specific font from a family. If there are multiple values, then each value must be separated by comma.</p> <b>Example:</b> <pre lang=”HTML”> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Font Family</title> <style type="text/css"> </-- h1{font-family:"Times New Roman", Times, serif} h2{font-family:"Lucida Sans Unicode", "Lucida Grande", sans- serif} h3{font-family:"Trebuchet MS", Arial, Helvetica, sans-serif} -->

Upload: rahul-upamanyu

Post on 10-Nov-2015

212 views

Category:

Documents


0 download

DESCRIPTION

fonts

TRANSCRIPT

Font PropertiesThe font properties are used to control the appearance of the font that you apply to the text in a webpage. With these properties you can specify the size, weight, style etc. of the font.Font-Family :

The Font-Family property allows you to specify the font that you want to apply to the text in a webpage. The values that you can specify to this property can be a generic family (family of fonts) and/or specific font from a family. If there are multiple values, then each value must be separated by comma.Example:

Font Family

Times New Roman Font FamilyLucida Sans Unicode Font FamilyTrebuchet MS Font Family

Output :