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 trialRichard Srery
640 Pointshow do i do something
Give the paragraph element on line 14 the class intro.
<!DOCTYPE html>
<html>
<head>
<title>Lake Tahoe</title>
<link rel="stylesheet" href="page.css">
<link rel="stylesheet" href="style.css">
</head>
<body>
<header id="top" class="main-header">
<span class="title">Journey Through the Sierra Nevada Mountains</span>
<h1>Lake Tahoe, California</h1>
</header>
<div class="primary-content t-border">
<p>
Lake Tahoe is one of the most <span>breathtaking attractions</span> located in California. It's home to a number of ski resorts, summer outdoor recreation, and tourist attractions. Snow and skiing are a significant part of the area's reputation.
</p>
<a href="#more">Find out more</a>
</div>
<footer class="main-footer">
<p>All rights reserved to the state of <a href="#">California</a>.</p>
<a href="#top">Back to top »</a>
</footer>
</body>
</html>
/* Complete the challenge by writing CSS below */
3 Answers
Jason Anders
Treehouse Moderator 145,860 PointsHi Richard,
If you look up at line 10 or line 13, you will see the syntax for adding a class to an element. The challenge just wants you to add the class "intro" to the p tag. You do this with the key word "class" and = sign and the value in quotes (all with no spaces).
<p class="intro">
Welcome to Treehouse and Keep Coding! :)
Richard Srery
640 Pointsthank you
Joel Hernandez
Front End Web Development Techdegree Student 2,571 PointsHey Richard! To give an element a class in HTML you just type Class = " Name of Class " Here is how the code should look on line 14.
<p class="intro">
Simon Vrachliotis
10,760 PointsQuick tip: try using a more descriptive title in your post, as how do i do something
doesn't really let anyone guess what the post is going to be about.
I know you already got your answer, but in the future, you'll probably get quicker help if you are more specific about your title.
:)
Christian Bryant
Front End Web Development Techdegree Student 8,296 PointsChristian Bryant
Front End Web Development Techdegree Student 8,296 PointsAre you asking how to create the "intro" class in the style sheet, or how to add a class to an element?