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

Python Build a Social Network with Flask Broadcasting Add Some Layout

Alexander Rodriguez, MD
Alexander Rodriguez, MD
6,642 Points

Missing text for links when editing layout.html

In this step, why did Kenneth leave out the text for the links below? Aren't they necessary so they show text for the links? For example, I've added "Log Out", "Log in" and "Register" between the opening "a href" and closing "/a" tags. Or am I missing something?

Thanks,

Alex

{% if current_user.is_authenticated %}
<a href="{{ url_for('logout') }}" class="icon-power" title="Log out">Log Out</a>
{% else %}
<a href="{{ url_for('login') }}" class="icon-power" title="Log in">Log in</a>
<a href="{{ url_for('register') }}" class="icon-profile" title="Register">Register </a>
 {% endif %} 

1 Answer

Kenneth Love
STAFF
Kenneth Love
Treehouse Guest Teacher

They weren't provided in the designs I was given, for one thing. But, also, the links have a title attribute that contains the text of the link, so I didn't feel it was 100% necessary.