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 trialerick spinoza
3,820 PointsWhat html tag can you use to be able to make a css stripe with measurements and color?
I have made one using an empty div and I would like to know if that is the correct option, thanks
3 Answers
Steven Parker
231,248 PointsIf all the element does is contain a color, "div" is a good choice.
If the stripe is going to be used to separate paragraphs, another choice might be "hr".
erick spinoza
3,820 Pointsthanks for you comment, it is only a decorative background, it does not separate any extra information this is my code for review
<!-- start title -->
<h1>Creative Wireframe</h1>
<!-- end title -->
<!-- stripe start -->
<div class="franja"></div> // Is this the correct way to write the code?
<!-- start p -->
<p>
Lorem ipsum dolor, sit amet consectetur adipisicing elit. Tenetur similique quod,
veniam vel suscipit soluta reprehenderit commodi! Porro deleniti eum earum ullam omnis nisi,
maxime obcaecati fugit minima doloribus voluptatum?
</p>
<!-- end p -->
Steven Parker
231,248 PointsWithout any contents, you may need to give the div an explicit height to make it visible.
erick spinoza
3,820 Pointsthanks for your time!!