<!DOCTYPE html> <html> <head> <style> p{display:inline;} </style> </head> <body> <p>This is paragraph number 1.</p> <p>This is paragraph number 2.</p> <p><strong>NOTE: </strong> display property forces the p element to behave like inline element. Remove the inline property and then see the result.</p> </body> </html>
Run
×
Share