+ 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😑😕😕...
3 Antworten
+ 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.
+ 2
I'm new learner in HTML that's y Dont know full attributes...
+ 1
thank u rohan I didn't noticed that 😅😅