table, th, td { CSS Font Stack A complete collection of web safe CSS font stacks Sans Serif Arial Mac: 98.74% Windows: 99.84% font-family: Arial, “Helvetica Neue”, Helvetica, sans-serif; } text-align: left; DengXian text-align: left; width:100%; Chalkduster table#t01 tr:nth-child(even) { SimSun-ExtB MONOSPACE FONT FAMILY Aparajita Hoefler Text Consolas } See the font-family CSS property. The font-style property is specified as a single keyword chosen from the list of values below, which can optionally include an angle if the keyword is oblique. Lucida Handwriting Bahnschrift Next Comic Sans This tool enables you to make font-family just by selecting from the list of web safe fonts. Dotum BrowalliaUPC MS PMincho color: white; Webdings Stencil Std } DotumChe Perpetua Century Gothic Marker Felt Segoe UI Symbol CSS provides several font properties, that directly affect text rendering. © 2005-2020 Mozilla and individual contributors. The font-family CSS property specifies a prioritized list of one or more font family names and/or generic family names for the selected element. th, td { Century Gothic Chalkduster Yu Mincho Microsoft YaHei UI Georgia Get the latest and greatest from MDN delivered straight to your inbox. Arial Arial narrow The font-family property can hold several font names as a "fallback" system. Parkavenue Example of usage of font-family:font-family: Verdana, Arial, Tahoma, Serif; Bookman Segoe Print Calisto MT Garamond Brush Script MT Unlike most other CSS properties, component values are separated by a comma to indicate that they are alternatives: body { font-family: Gill, Helvetica, sans-serif } Khmer UI Aharoni Bold Lucida Sans Typewriter Vijaya × Verdana } background-color: #6A8BD8; JasmineUPC Luminari MingLiU_HKSCS Lucida Sans Typewriter Consolas Meiryo table#t01 tr:nth-child(even) { Malgun Gothic Semilight Microsoft Himalaya table, th, td { } Blippo FangSong Marlett Leelawadee Lucida Sans Unicode Coronetscript Gill Sans } Gautami Shruti GulimChe Hebrew Coronet script Webdings When using a font-family list in a style rule, the fonts listed should all belong to the same family. FONT FAMILY Microsoft Uighur Gulim Jazz LET Urdu Typesetting SANS-SERIF FONT FAMILY SimKai Lao BIZ UDGothic Sitka Urdu Typesetting Goudy Old Style Font-family Picker. Gungsuh table#t01 th { The font-style property is specified as a single keyword chosen from the list of values below, which can optionally include an angle if the keyword is oblique. Microsoft YaHei Sign in to enjoy the benefits of an MDN account. Georgia News Gothic MT UD Digi KyoKasho N-R BrowalliaUPC by SW Design Lab. Neue Haas Grotesk Text Pro DFKai-SB Each font family is specified as either a or a value. Snell Roundhan Monaco Gabriola URW Chancery Verdana Pro Hoefler Text Lucidatypewriter The font-family property allows the author to provide a comma-separated list of specific font families, plus a generic type of font family, to be used in the rendering of an element's text. Courier New This lets the browser select an acceptable fallback font when necessary. Trattatello Arial Gill Sans Nova } To avoid unexpected results, the last font family on the font list should be one of the generic families which are … Candara table#t01 tr:nth-child(odd) { Microsoft Tai Le Difference between a font-family and font-style are:-font-family: With a font-family, we can set more than one font to the selected item while with font-style we can only set one font for a selected item. Trattatello All those fonts which has the higher probability that they will be installed in most of the devices are Web safe fonts. Calisto MT Brushstroke Cambria Math Mangal Georgia Pro The font-family property allows the author to provide a comma-separated list of specific font families, plus a generic type of font family, to be used in the rendering of an element's text.. Possible Values. 1. Dotum Gill Sans Nova Select, preview, and generate CSS and HTML for your font family. Cordia New Westminster Raavi Snell Roundhan table { Courier background-color: #eee; Brush Script MT David Impact, Charcoal, sans-serif: This is a heading. The font-familyproperty should hold several font names as a "fallback" system. System font values caption The system font used for captioned controls (e.g., buttons, drop-downs, etc.). Lao UI Comic Sans MS Shruti Bodoni MT Next MS PMincho Noto Didot Leelawadee Lucida Sans Typewriter MS Gothic } CordiaUPC (adsbygoogle = window.adsbygoogle || []).push({}); CSS Font Family List Copy this code and paste it in your HTML /* New/Updated List */ border: 1px solid gray; Futara Latha } Microsoft Sans Serif Arial Black ', THIS Is sample12345! ' SimHei EucrosiaUPC Sitka Arial, sans-serif; Helvetica, sans-serif; Gill Sans, sans-serif; Lucida, sans-serif; Helvetica Narrow, sans-serif; sans-serif; Gill Sans Goudy Old Style Arial, sans-serif; Helvetica, sans-serif; Gill Sans, sans-serif; Lucida, sans-serif; Helvetica … Save to your folder(s) Expand | Embed | Plain Text. Malgun Gothic Semilight MS PGothic Bodoni MT Cordia New Brushstroke The browser will look for each family on the user's computer and in any @font-face resource. Segoe UI Historic th, td { Geneva Simplified Arabic Windows/Mac/iOS standard fonts are available. Blippo Gadugi Geneva Bradley Hand The font-family property specifies a list of fonts, from highest priority to lowest. Segoe UI Stencil Std Aharoni GungsuhChe color: white; Euphemia Blippo Segoe UI Comic Sans } You list the font that you want first, then any fonts that might fill in for the first if it is unavailable, and you should end the list with a generic font, of which there are five: serif, sans-serif, monospace, cursive and fantasy. Comic Sans MS Jazz LET background-color: #eee; Lucida Bright Florence Javanese Text Japanese Utsaah Florence Select, preview, and generate CSS and HTML for your font family. Aldhabi There are two types of font family names: family-name - The name of a font-family, like times, courier, arial, etc. border: 1px solid gray; border: 1px solid gray; Palatino Latha CSS Font Family List Simplified Arabic Font names that are made up of more than one word should be placed inside quotation marks. table#t01 tr:nth-child(odd) { table { Arial Nova Segoe UI Emoji However, it may be unavailable in some cases like the user's computer doesn't have that font. padding: 15px; BIZ UDMincho Medium Noto UD Digi KyoKasho NK-R width:100%; Lucida Handwriting News Gothic MT Browsers do not support all the fonts, so you need to use multiple fonts to be on safer side. menu The system font used in menus (e.g., dropdown menus and menu lists). Apple Chancery Jazz LET IrisUPC table#t01 th { Narkisim Ink Free There is a large variety of fonts available, some are installed on your computers while others can be downloaded or used in some other forms. APPEARANCE Rockwell Extra Bold Nyala Korean Apple Chancery font-family Example text; Arial, Helvetica, sans-serif: This is a heading. Helvetica Big Caslon New Century Schoolbook MingLiU_HKSCS Arial Rounded MT Bold } Rod Mangal Lucida Sans Franklin Gothic Medium Brushstroke Candara Sans-Serif. Gadugi Consolas MS Gothic Blippo table#t01 tr:nth-child(even) { Palatino Linotype border-collapse: collapse; Copperplate width:100%; Zapf Chancery Times New Roman Book Antiqua Symbol BIZ UDMincho Medium text-align: left; Yu Gothic UI Rockwell Nova Extra Bold Luminari There are many interesting articles online about web typography, especially the use of different font-families in CSS. font-family: “Font You Like”, “Times New Roman”, Times, “Alternate System Font”, serif; or font-family: “Font You Like”, Arial, Helvetica, Tahoma, Calibri, Verdana, sans-serif; or font-family: “Font You Like”, “Zapf Chancery”, “Lucida Calligraphy” , script; border: 1px solid gray; } AngsanaUPC Suggested font-family Lists. Luminari Impact Book Antiqua Tunga background-color: #fff; Lucida Bright FangSong Narkisim FrankRuehl The font-family property lists one or more font families, separated by commas. Traditional Chinese th, td { Oldtown Select, preview, and generate CSS and HTML for your font family. Lucida Console FANTASY FONT FAMILY Franklin Gothic Medium Bradley Hand Microsoft Uighur Bookman Mac. Microsoft YaHei DokChampa Microsoft Sans Serif PMingLiU DilleniaUPC Leelawadee UI Semilight Simplified Chinese Bahnschrift SemiLight KaiTi Values normal Selects a font that is classified as normal within a font-family. Palatino text-align: left; EucrosiaUPC Candara Copperplate Making the web more beautiful, fast, and open through great typography Optima Brush Script MT Arnoldboecklin Note/Warning/Info Some fonts may not be supported in your computer so few fonts appearance will be in a normal font family. URW Chancery Lucida Sans Unicode Lucida Console All those fonts which has the higher probability that they will be installed in most of the devices are Web safe fonts. How to use font-family property? } border-collapse: collapse; table#t01 th { italic Selects a font that is classified as italic. KaiTi Corbel Arabic Typesetting Constantia Impact Bahnschrift Light Applies to. } New Century Schoolbook × Dismiss alert table#t01 th { Sakkal Majalla UD Digi KyoKasho NK-R David color: white; Westminster Baskerville Lucidatypewriter MingLiU_HKSCS-ExtB Rockwell Nova Extra Bold See the line-height CSS property. Calisto MT background-color: #eee; Apple Chancery Arial. background-color: #fff; Batang } Vani Korean Rockwell Nova Cond } Baskerville Levenim MT background-color: #eee; Gulim FONT FAMILY Copperplate } Calibri } Oldtown Monaco } Cambodian th, td { Lucida Sans Mongolian Baiti There are two types of font family names: family-name - The name of a font-family, like "times", "courier", "arial", etc. Copperplate Brush Script MT The property value is a prioritized list of font family names and/or generic family names. Segoe Script MingLiU_HKSCS-ExtB background-color: #6A8BD8; Parkavenue Trebuchet MS iPhone/iPad ' Arial ', THIS Is sample12345! ' Euphemia While it’s perfectly legit to use the serif, sans-serif, monospace, cursive, and fantasy generic font family names, they are designed as a fallback for when preceding font families are not recognised. Levenim MT Wingdings Noto × Dismiss alert } Generic family names are keywords and must not be quoted. } Meiryo UI Copperplate Gothic Light Segoe UI Symbol Abadi MT Condensed Light Arial papyrus Calibri ', THIS Is sample12345! ' Sylfaen table#t01 tr:nth-child(odd) { Traditional Chinese Description. Marker Felt APPEARANCE Palatino Linotype Bodoni MT font-family: Arial, Helvetica, sans-serif; Perpetua The font-family property specifies the font for text, which changes the way characters look like. Ink Free JasmineUPC Disclaimer. font-family: Cambria, 'Times New Roman', 'Nimbus Roman No9 L', 'Freeserif', Times, serif; font-family : Verdana , Geneva , 'Bitstream Vera Sans' , 'DejaVu Sans' , sans-serif ; font-family : 'Helvetica Neue' , Arial , 'Liberation Sans' , FreeSans , sans-serif ; } FreesiaUPC background-color: #fff; NSimSun Angsana New padding: 15px; # font-family font-family: "Source Sans Pro", "Arial", sans-serif; When using multiple values, the font-family list of font families defines the priority in which the browser should choose the font family. background-color: #eee; Microsoft New Tai Lue CSS CSS. Lucidatypewriter color: white; Font-family Picker. Gill Sans This tool enables you to make font-family just by selecting from the list of web safe fonts. Big Caslon FONT FAMILY If you haven’t already created an account, you will be prompted to do so after signing in. New Century Schoolbook Gisha Batang Kartika border-collapse: collapse; table#t01 tr:nth-child(odd) { Comic Sans Snell Roundhan Arial Black ', THIS Is sample12345! ' Andale Mono Arial narrow papyrus LilyUPC Noto Trebuchet MS Leelawadee UI Arial Black Perpetua border: 1px solid gray; Yu Gothic Lao UI th, td { Garamond Rockwell Look at the following example. Formal definition This is a paragraph "Arial Black", Gadget, sans-serif: This is a heading. Windows. Monaco Gautami HoloLens MDL2 Assets Times New Roman The following table summarizes the usages context and the version history of this property. Yu Gothic UI Georgia Pro Gisha If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. If you'd like to contribute to the data, please check out, https://github.com/mdn/interactive-examples, https://github.com/mdn/browser-compat-data. Courier New background-color: #fff; border-collapse: collapse; } We have gathered together a nice resource list of stunning web safe fonts that you can use with CSS. papyrus When a font is only available in some styles, variants, or sizes, those properties may also influence which font family is chosen. Adds new generic font families, specifically. This is referred to as a "font stack." If this font is also not supported by your browser, it will use the Tahoma font and if this font is also not supported, then the browser of the user will set the Serif font. text-align: left; Jazz LET } Estrangelo Edessa Arial Black Google-plus. Bodoni MT Your browser might not support few fonts as those fonts might not be present in your computer so the appearance of those fonts will appear like normal default font of your browser. Bahnschrift SemiBold Dismiss alert background-color: #fff; SimKai CURSIVE FONT FAMILY Arnoldboecklin table { Calibri ', THIS Is sample12345! ' Lucida Console Bahnschrift Light Browallia New The example below lists two font families, the first with a and the second with a : Generic font families are a fallback mechanism, a means of preserving some of the style sheet author's intent when none of the specified fonts are available. Bahnschrift SemiLight Calibri There are many types of fonts but not all are enabled on all browsers and computers. Garamond Microsoft Yi Baiti table#t01 tr:nth-child(odd) { You should always include at least one generic family name in a font-family list, since there's no guarantee that any given font is available. The compatibility table on this page is generated from structured data. Yu Mincho The browser will select the first font in the list that is installed or that can be downloaded using a @font-face at-rule. The source for this interactive example is stored in a GitHub repository. Simplified Chinese Two common font combination lists and the five generic fallback font families.

font-family: Times, "Times New Roman", serif

Behold! Note/Warning/Info DilleniaUPC The font-family property lists one or more font families, separated by commas. background-color:#6A8BD8; Gungsuh Two common font combination lists and the five generic fallback font families.

font-family: Times, "Times New Roman", serif

Behold! width:100%; Wingdings

Font family is verdana

Avanta Garde Sanskrit Text Segoe UI Emoji Cambodian Marker Felt generic-family - The name of a generic-family, like serif, sans-serif, cursive, fantasy, monospace. Perpetua Thai Brush Script Std PMingLiU CSS provides a system of fallbacks, where you list the font that you want first, then fonts that might fill in for the first if it is unavailable, and you should end the list with a generic font, of which there are five: serif, sans-serif, monospace, cursive and fantasy. Kokila } Arial Nova Microsoft PhagsPa MS Mincho FONT FAMILY Book Antiqua Avanta Garde Browsers do not support all the fonts, so you need to use multiple fonts to be on safer side. CordiaUPC Malgun Gothic In CSS, a font-family (or face attribute in HTML) is a preferentially ordered list of font families to use when rendering text. Follow @tutorial_brain Vani Microsoft Himalaya table#t01 tr:nth-child(even) { AlternateGothic2 BT The newsletter is offered in English only at the moment. Calisto MT DOM Syntax object.style.fontFamily = "georgia,garamond,serif"; color: white; Bookman Font Family List / Published in: CSS. Marker Felt Andale Mono by SW Design Lab. Note/Warning/Info Some fonts may not be supported in your computer so few fonts appearance will be in a normal font family. Candara Comic Sans MS Raavi Marlett Verdana DaunPenh Sylfaen KodchiangUPC Rockwell Extra Bold Miriam Lucida Sans CSS font-family defines the priority for the browser to choose the font from multiple fonts. Gabriola Trattatello This is a paragraph "Comic Sans MS", cursive, sans-serif: This is a heading. Chalkduster No automatic language associations So, the first fallback is Arial. Avanta Garde DokChampa Copperplate Gothic Bold Book Antiqua Malgun Gothic padding: 15px; In this case, the main font is Verdana and if this is not available, your browser will use the fallback value. No automatic language associations Garamond Microsoft JhengHei UI Arial is again the most widely accepted font used for CSS from CSS font family list. Franklin Gothic Medium Courier New } Aldhabi Arabic Typesetting Chalkduster Meiryo 167. Century Gothic Font Family The font-family property specifies the font for an element. Snell Roundhan APPEARANCE Tunga generic-family - The name of a generic-family, like "serif", "sans-serif", "cursive", "fantasy", "monospace". th, td { Copperplate Gothic Light background-color: #fff; Prev Font selection does not simply stop at the first font in the list that is on the user's system. Segoe UI ress_js("//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"); SERIF FONT FAMILY Symbol Geneva LilyUPC Didot Utsaah Calibri Rockwell Nova italic Selects a font that is classified as italic. Andale Mono Traditional Arabic This means that punctuation characters and digits at the start of each token must be escaped in unquoted font family names. Courier New UD Digi Kyokasho FreesiaUPC border-collapse: collapse; Khmer UI Arial narrow Aharoni Bold The browser will select the first font to use if it is available. UD Digi KyoKasho NP-R Cherokee Thai Tahoma BIZ UDGothic Verdana Windows. Segoe UI Historic Optima Luminari Follow @tutorial_brain } } Example: serif, Sans-serif etc A serif font family list! Stencil Std Book Antiqua Andalus Browallia New Gill Sans Arial Rounded MT Bold AlternateGothic2 BT Nyala MingLiU-ExtB MoolBoran Comic Sans Iskoola Pota Content is available under these licenses. Myanmar Text The list is separated by commas (as shown above). padding: 15px; Bradley Hand Oldtown background-color: #eee; Times New Roman Geneva Parkavenue Sakkal Majalla Shonar Bangla Comic Sans MS Kokila Microsoft PhagsPa SimSun-ExtB iPhone/iPad ' Arial ', THIS Is sample12345! ' So, the first fallback is Arial. Baskerville Some CSS properties are animatable, meaning that they can be used in animations and transitions.. Animatable properties can change gradually from one value to another, like size, numbers, percentage and color. Cambria Math papyrus Microsoft Tai Le UD Digi KyoKasho NP-R table, th, td { Internal CSS