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 trialsusan kaldenberg
Front End Web Development Techdegree Student 553 Points<cite> tag and <a> tag
for tag like these, should you include it inside <p>,<li>,<h1> ...tag or outside? since they seem to make no difference?
e.g. <p><cite>TeamTreeHouse</cite><p> <p><a>TeamTreeHouse</a></p> or <cite><p>TeamTreeHouse</p></cite> <a><p>TeamTreeHouse</p></a>
1 Answer
Peter Lord
10,034 PointsMy recommendation when thinking about the flow of your HTML document is to consider the hierarchy of your tags -- you'll want to make a mental note of what tags are 'larger' and what are 'smaller'. I generally think of anchor tags as the smallest tag and do them last. Below is how I would generally organize an HTML document to make it feel 'organized'.
<figcaption>First sentence in <cite><a href="http://www.george-orwell.org/1984/0.html">Nineteen Eighty-Four</a></cite> by George Orwell (Part 1, Chapter 1).</figcaption>
Another example:
<p>I love learning how to code and I've learned it through <cite><a href="https://teamtreehouse.com/>Team TreeHouse</a></cite></p>
Another example
<div>
<h1>Team Tree House</h1>
<p> I love learning through <cite><a href="https://teamtreehouse.com/>Team TreeHouse</a></cite> </p>
</div>
Let me know if this doesn't make sense!