Which options are true about style tag? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

Which options are true about style tag?

a.it embeds the information about the style b. it is displayed twice in a document. c. it represent the content of the user. d.it is only used to add style in paragraph only.

16th Sep 2017, 12:09 PM
Prakhar Singh
Prakhar Singh - avatar
6 Answers
+ 3
Only option 'a' is true. Style is not displayed twice but in two areas---the Head and the body. It can be used as an inline style anywhere within the body, and as many times as we want. Style does not represent the content but how the content is structured. Style is not only in paragraph only but also in other tags.
16th Sep 2017, 12:34 PM
Bamgbose Adegbuyi
Bamgbose Adegbuyi - avatar
+ 4
a only b is wrong - it can be used any number of times in a document c is wrong - markup is for content and style for presentation d is wrong - you can style any element with a visual impact
16th Sep 2017, 12:43 PM
Jason Cooper
Jason Cooper - avatar
+ 4
but in question challenge answer is a and b
16th Sep 2017, 12:45 PM
Scooby
Scooby - avatar
+ 3
a,b
16th Sep 2017, 12:17 PM
Scooby
Scooby - avatar
+ 3
@johnny, just the same way the two questions on block elements within inline elements are both true and false in the challenge. One starts with CAN and the other question starts with IN GENERAL. The CAN is false while the IN GENERAL is true. Same question(semantically) but different answers.
16th Sep 2017, 1:22 PM
Bamgbose Adegbuyi
Bamgbose Adegbuyi - avatar
+ 1
ya.. I donno how it's happened.. 👀
16th Sep 2017, 1:36 PM
Scooby
Scooby - avatar