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

CSS How to Make a Website CSS: Cascading Style Sheets Center the Wrapper

p tags

an opening p tag at the beginning of a line seems to do the same thing as an opening and closing p tag with text in between. Will I run into problems at some point using this?

1 Answer

Some Tags do close themselfes for example the:

<img/>

others such as the:

 <p></p> 

do not. Even if it will work in smaller projects, afterwards with more complex html and css, not closing the tags as intended will lead to problems, so i would stick to the rules here :) Especially due to the fact that the code wonโ€™t validate (regarding the WC3-Standards). This also might lead to errors regarding proper search engine indexiation.