Prev Demo
Display:Block
Next Demo
Write code here
J
|
B
|
A
<!DOCTYPE html> <html> <head> <title> Display property </title> <style> .class1{ display:block; } </style> </head> <body> <h2><i>Display block creates text in vertical line</i></h2> <p class="class1">TechFunda</p> <p class="class1">is </p> <p class="class1">online website </p> <p class="class1">Step by step</p> <p class="class1">procedure </p> </body> </html>
Note: We DO NOT save your trial code in our database.
Output