You have the following HTML code.
You need to identify how Text1 and Text2 will be displayed.
What should you identify?

A.
Option A
B.
Option B
C.
Option C
Explanation:
https://www.quackit.com/html_5/tags/html_span_tag.cfm
https://www.quackit.com/html_5/tags/html_body_tag.cfm
https://www.quackit.com/html_5/tags/html_div_tag.cfm
Option C IMO, span is an inline element which has no width property.
If we would add “display: inline-block” to span then width would work but still div element would take Text2 to another line.
20
0
Agree – option C
15
0
The correct answer is D
check the following code:
//!DOCTYPE html>
//html>
//head>
//meta charset=”utf-8″>
//title>///title>
///head>
//body style=”background-color:grey”>
//span style=”background-color:red; width:50%”>text 1///span>
//span style=”background-color:blue; width:50%”>text 2///span>
///body>
///html>
0
21
It is C the answer correct
9
0
the colored element are span and div but you have used both as span. So the answer is C
5
0
Answer is C !
Confirmed and tested !
7
0
C is cool
6
0
Answer is C
5
0
C is correct.
6
0
correct is C (if bothe tag is span span and not span div in this case correct answer is D)
2
0
C for sure
1
0
Correct answer is C
https://next.plnkr.co/edit/OFgV1lQtStFErXOr?preview
2
0