|
INTERVIEW QUESTIONS
WEB
CSS
DETAILS
Question: Which font names are available on all platforms ?
Answer: The simple answer is "None" which is why CSS offers five generic font names as 'serif', 'sans-serif', 'cursive', 'fantasy' and 'monospace'. Never put any of these generic font names in quotes.
A CSS aware browser should make a suitable choice from the available fonts in response to each of those generic names. Specifying any other font name in a www environment comes out as a suggestion only, that may or may not be acknowledged by a browser. The problem with using names of specific fonts is that there is little point in naming fonts that few users will have, so you're down to listing a few mass-market font names. This will then override any superior selection that a minority of discerning readers may have made for themselves. Note also that fonts may differ in their character repertoire, but this is often not evident from the font name itself: by selecting an inappropriate font name, you might prevent internationalized content from displaying correctly for a proportion of users.
|
|
|
Category |
CSS Interview Questions & Answers -
Exam Mode /
Learning Mode
|
Rating |
(0.2) By 8928 users |
Added on |
10/29/2014 |
Views |
69041 |
Rate it! |
|
|
Question:
Which font names are available on all platforms ?
Answer:
The simple answer is "None" which is why CSS offers five generic font names as 'serif', 'sans-serif', 'cursive', 'fantasy' and 'monospace'. Never put any of these generic font names in quotes.
A CSS aware browser should make a suitable choice from the available fonts in response to each of those generic names. Specifying any other font name in a www environment comes out as a suggestion only, that may or may not be acknowledged by a browser. The problem with using names of specific fonts is that there is little point in naming fonts that few users will have, so you're down to listing a few mass-market font names. This will then override any superior selection that a minority of discerning readers may have made for themselves. Note also that fonts may differ in their character repertoire, but this is often not evident from the font name itself: by selecting an inappropriate font name, you might prevent internationalized content from displaying correctly for a proportion of users. Source: CoolInterview.com
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|
|
Related Questions |
View Answer |
|
Why does Netscape lose my styles ?
|
View Answer
|
|
Why is it my ':hover' declaration for links does not work ?
|
View Answer
|
|
Why is it my ':hover' declaration for links does not work ?
|
View Answer
|
|
Why does Netscape lose my styles ?
|
View Answer
|
|
Which font names are available on all platforms ?
|
View Answer
|
|
What is Extensible Stylesheet Language (XSL)?
|
View Answer
|
|
Document Style Semantics and Specification Language (DSSSL)?
|
View Answer
|
|
How can I specify two different sets of link colors?
|
View Answer
|
|
How do you show which page you're on (in a menu)?
|
View Answer
|
|
How do you override the underlining of hyperlinks?
|
View Answer
|
|
If one were to set Text and Link colors using a style sheet, should one also define the background colors for these elements as well?
|
View Answer
|
|
Why are there gaps above and below my form in IE?
|
View Answer
|
|
How does a simple CSS style rule look ?
|
View Answer
|
|
How does a simple CSS style rule look ?
|
View Answer
|
|
How do I move the list bullet to the left/right?
|
View Answer
|
|
I want my page fonts to look the same everywhere as in… a) Why are my font sizes different in different browsers ? b) Why are my font sizes different on different platforms ?
|
View Answer
|
|
Can you use someone else's Style Sheet without permission?
|
View Answer
|
|
How do I place two paragraphs next to each other?
|
View Answer
|
|
I made a 10px-high div, but IE makes it 20px high...
|
View Answer
|
|
To what are partial URLs relative?
|
View Answer
|
Please Note: We keep on updating better answers to this site. In case you are looking for Jobs, Pls Click Here Vyoms.com - Best Freshers & Experienced Jobs Website.
View All CSS Interview Questions & Answers - Exam Mode /
Learning Mode
|