exam questions

Exam 70-480 All Questions

View all questions & answers for the 70-480 exam

Exam 70-480 topic 4 question 42 discussion

Actual exam question from Microsoft's 70-480
Question #: 42
Topic #: 4
[All 70-480 Questions]

HOTSPOT -
You are implementing an HTML page that uses a custom sans-serif font. The CSS statement for the page is as follows.

Some users report that text is displayed in the default font for the browser.
You need to modify the CSS statement to ensure that the content is displayed with the custom font.
What should you do? (To answer, select the appropriate options from the drop-down lists in the answer area.)
Hot Area:

Show Suggested Answer Hide Answer
Suggested Answer:
Using The Font You Want -
In the CSS3 @font-face rule you must first define a name for the font (e.g. myFirstFont), and then point to the font file.
To use the font for an HTML element, refer to the name of the font (myFirstFont) through the font-family property:

Example -
@font-face {
font-family: myFirstFont;
src: url(sansation_light.woff);
}
div {
font-family: myFirstFont;
}
Note:
* CSS3 Web Fonts - The @font-face Rule
Web fonts allow Web designers to use fonts that are not installed on the user's computer.
When you have found/bought the font you wish to use, just include the font file on your web server, and it will be automatically downloaded to the user when needed.
Your "own" fonts are defined within the CSS3 @font-face rule.
* TrueType Fonts (TTF)
TrueType is a font standard developed in the late 1980s, by Apple and Microsoft. TrueType is the most common font format for both the Mac OS and Microsoft
Windows operating systems.
Reference: CSS3 Web Fonts

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
BadBot
5 years, 3 months ago
This could use some clarification. I am not sure why it is not: <src:local('sans-serif') url(/Special.ttf) format('all');>
upvoted 1 times
examquestion
5 years, 1 month ago
cos nothing in this exam makes any sense
upvoted 5 times
...
zara01
5 years ago
if you put sans serif first then that will show. Sans serif is the default so it should be places after the custom font
upvoted 1 times
...
anasilva33
5 years ago
Because format('all') does not exist. https://tableless.com.br/font-face-fonts-externas-na-web/
upvoted 1 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...