Home » Microsoft » 70-480 v.2 » Which code segment should you use?
You are developing a web page that includes the following HTML.
<span id="myTextSpan" class="myStyle">Hello, World!</Span> You need to use inline CSS styling to format the text with Arial font.
Which code segment should you use?
A. Option A
B. Option B
C. Option C
D. Option D
Correct Answer: B
Explanation/Reference:
The font-family property specifies the font for an element.
Incorrect Answers:
A, D: This is not inline CSS.
C: With font style we define style only:
Syntax: font-style: normal|italic|oblique|initial|inherit;
Reference: CSS font-family Property