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
Hassan Kamal
Courses Plus Student 1,879 PointsHelp with some HTML
hey -
i need to write text in-between two lines. the code needs to be created using only HTML.
Thanks.
Hassan Kamal
Courses Plus Student 1,879 Pointsthis is what i want to achieve using HTML, kindly follow the below link thanks. http://snag.gy/nLzjb.jpg
1 Answer
Umar A
4,041 PointsI found this link
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.
Hassan Kamal
Courses Plus Student 1,879 PointsThanks for the share, but is it not possible using only HTML?
Umar A
4,041 PointsI'm not sure :(
James Barnett
39,199 Pointsis it not possible using only HTML
HTML is just for content (e.g. text), CSS is for presentation like positing text between 2 borders.

Umar A
4,041 PointsUmar A
4,041 PointsI'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