HTML how to use different fonts -


If I put my ttf font file in my websites then the "code" AMC .tff and use my website & lt; Font face = "AMC" & gt; is happening in ... if your website does not exceed the method of using unusual fonts

You can include TrueType fonts with the help of CSS3 property @ font-face . The following CSS gives your AMC font to all & lt; H1 / & gt; will be applied to the tag:

  @ font-face {font-family: "AMC"; Src: url (". / .amc.ttf") format ("truetype"); } H1 {font-family: "AMC", non-serif; }  

For browsers, you should specify the same options as your font for webfonts. In the above example, sans-serif will be used if AMC can not be found because the @ font-face tag is not recognized by the browser.


Comments