Which HTML attribute is used to define inline styles?
-
A
class
-
B
style
Correct answer
-
C
font
-
D
styles
7 views
Explanation
The style attribute adds inline CSS directly to an HTML element, for example
.
Reference
Asked in: Matric,FBISE
Doubts & discussion
Not sure why the answer is B? Ask here and get an explanation.
Ask a doubt about this MCQ