Talk:Font family (HTML)
![]() | This article is rated Start-class on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | ||||||||||
|
Sample display
edit- Firefox 1.0.4/Mac all the samples display as my default font.
- Safari 2.0/Mac, a few samples display as intended.
- Internet Explorer 5.2/Mac, only a half dozen display as intended.
Image files would perhaps better show the intended display. --sparkit (talk) July 1, 2005 20:55 (UTC)
- Agreed - Is there any browser that does render these all correctly? If not, we can compile an image from different browsers that support different pieces of it... ~ Booya Bazooka 22:09, 4 August 2006 (UTC)
- I don't understand the intention of the big list labelled "there may be many other font families"—are these generic families supported by some browser? They certainly aren't in the HTML specification. It doesn't look like a list of common font faces either.
- Try searching w3.org for "font family" 68.112.220.137 01:56, 30 August 2006 (UTC)
What about "verdana? Isn't that a common font family? — Preceding unsigned comment added by 134.76.249.10 (talk) 22:27, June 19, 2007
References to 'you'
editmany times 'you' or 'your browser' is mentioned. surely this is bad practice and needs to be changed to 'the user'? — Preceding unsigned comment added by 88.105.178.173 (talk) 16:02, July 7, 2007
wingdings
editInsert non-formatted text here
— Preceding unsigned comment added by 200.210.214.135 (talk) 19:48, February 19, 2008
"Font names must be quoted if containing whitespaces"
editA simple test casts doubt on this claim. Edit the list of fonts at the bottom of the article and change 'Times New Roman', times, serif; to Times New Roman, monospace; (deleting the single quotes around the font name); then click Show preview. In Firefox I see a serif font, not monospace, and I bet that I would see the same thing in Internet Explorer. Putting quotes around whitespace-containing font names would make sense only if the list was separated by spaces instead of commas. Nevertheless, it is probably correct to say, "Official standards dictate that font names must be quoted if containing whitespaces, but this is not necessary in practice because the list of fonts is comma-separated and web browsers will correctly interpret the list if quotes are omitted." However, I will not change the article unless I can track down a source. --Keith111 (talk) 01:08, 24 July 2009 (UTC)
@Keith111, the w3c dictates this and is the authority on html & css, so... ( http://www.w3schools.com/cssref/pr_font_font-family.asp ) -- DocLeonard (talk) 04:19, 23 January 2012 (UTC)
A better test case to use would be Arial Black, if you have this font on your system. You can see that the text is indeed rendered in Arial Black rather than plain Arial, so the browser does not truncate the font name after "Arial", despite the font name not being enclosed in quotes in the inline CSS. --Keith111 (talk) 01:30, 24 July 2009 (UTC)
sewa bharti
rotery regency cmputer instituteregd10189
edit—Preceding unsigned comment added by 59.180.111.77 (talk) 07:43, 30 July 2010 (UTC)
Source of "Generic fonts"?
editIs there a directory/vocabulary from which the fonts in the "Generic fonts" table are taken? They are not given in the W3C CSS2 Fonts specification. Martin de la Iglesia (talk) 10:22, 16 November 2011 (UTC)
There exist only FIVE generic-families
editThey are: serif, sans-serif, monospace, cursive and fantasy: https://www.w3.org/TR/css-fonts-3/#generic-font-families
Why does the article refers to other fonts? 201.78.94.227 (talk) —Preceding undated comment added 19:36, 1 February 2018 (UTC)
Changing font
editHow do you change the font in a table, especially when it is not a whole cell? Allen (talk) 17:59, 11 March 2012 (UTC)
- I don't think this is really the place to ask this kind of question, but I will answer anyway.
- To change the font of an entire table, I'm pretty sure you just apply the font to the table tag.
- To change the font of an individual cell, give a class or id to your cell using the attribute "class" or "id", then you can reference it in css using "td.class{} OR td#id{}"
- To change the font of some text inside a cell, surround the cell in <span> tags, and give the span cells a class or id as defined above. Then, use <nowiki>"span.class{} OR span#id{}"
- Hope this helped. Alexmitchell1 (talk) 09:10, 19 April 2016 (UTC)
There's something wrong with the type faces mentioned
editScript and Modern appear differently in the two places they are mentioned. I don't feel comfortable editing the document.
Weird sentence
editWeb browsers can access fonts online, as well as users local installations, taking advantage of the best of both worlds to provide a seamless user experience.will only be able to apply a font if it is available on the system on which it operates, which is not always the case.
The second sentence appears to be cut off at the beginning? 2A01:119F:21D:7900:595:338C:387:92C2 (talk) 04:52, 15 May 2019 (UTC)
OKAY