What is the true answer... | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What is the true answer...

in a challenge it waz asked like how many lines will be the output for this <p>one two</p> <pre>three four</pre> <p>five</p>.... the answer was 4... but when I tried this code output is 3 lines😑😕😕...

3rd Jun 2018, 7:52 AM
Munvar Pasha
3 Answers
+ 7
You inserted space after 'three'. But in challenge that was a enter which means an extra line. What pre tag does is that it preserves the line spaces and line breaks also. In one sentence ur input was different from the challenge. So, it will look like : Input : <p>one two</p> <pre>three four</pre> <p>five</p> Output : one two three four five edited : Don't worry Munvar Badshah u will be a pro one day.
3rd Jun 2018, 8:17 AM
***
+ 2
I'm new learner in HTML that's y Dont know full attributes...
3rd Jun 2018, 8:34 AM
Munvar Pasha
+ 1
thank u rohan I didn't noticed that 😅😅
3rd Jun 2018, 8:28 AM
Munvar Pasha