Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML

Help with some HTML

hey -

i need to write text in-between two lines. the code needs to be created using only HTML.

Thanks.

I'm not sure I understand exactly what you mean, but if you want the text to be exactly like this -------- Text Goes Here ---------

you can use the following code:

<p>---------- Hello World! -----------</p>

it will look like this

http://bit.ly/1uqVR3z

this is what i want to achieve using HTML, kindly follow the below link thanks. http://snag.gy/nLzjb.jpg

1 Answer

I found this link

http://bit.ly/1vBqjiy

Note: CSS was used to accomplish the task.

If you want the lines to be thicker just like in the photo you showed me, you can change the thickness of the border

border-top: 1px solid black;

Change the 1px to 5px or 10px.

Thanks for the share, but is it not possible using only HTML?

I'm not sure :(

is it not possible using only HTML

HTML is just for content (e.g. text), CSS is for presentation like positing text between 2 borders.