Home
HTML
Block and inline
Tryit: HTML span element
Run ❯
Get your
own
website
Result Size:
625 x 534
×
Change Orientation
Save Code
Change Theme, Dark/Light
Go to Spaces
<!DOCTYPE html> <html> <body> <p>This is an inline span <span style="border: 1px solid black">Hello World</span> element inside a paragraph.</p> <p>The SPAN element is an inline element, and will not start on a new line and only takes up as much width as necessary.</p> </body> </html>