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

HTML

Set the class of the first "article" element to "primary", then the next "article" with "secondary" and the last with "tertiary"

Hi,

I'm currently lost at where I am going wrong with this final part of the challenge.

My code is:

<!DOCTYPE html>
<html>
<head>
<title>Plugin</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<div id="container" class="wmuSlider">
<div class="wmuSliderWrapper">
            <div class="primary"> First Article </div>
            <div class="secondary"> Second Article </div>
            <div class="tertiary"> Third Article </div>
</div>
</div>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="jquery.wmuslider.js"></script>
<script type="text/javascript">
var options = {
animation:"slide",
navigationControl: false
}
$(".wmuSlider").wmuSlider(options);
</script>
</body>
</html>

Can anyone help please and point out where I'm going wrong? It simply say's task 1 is no longer working so it's clearly something wrong with syntax or something.

Thanks

5 Answers

Hi Justen, I have amended the CSS to be black and blue accordingly where it asks, but because my article links are wrong it's saying task 1 is incorrect.

I have tried simply writing:

<article>class="primary"</article>

But this is clearly incorrect.

Any other suggestions?

<article class="primary"> First Article </article>
 <article class="secondary"> Second Article </article>
 <article class="tertiary"> Third Article </article>

sorry for the formatting there.

This challenge relates to the Responsive Slider Plugin for:

Build an Interactive Website > jQuery Plugins > Responsive Slider Plugin - CSS

Step one is setting the Pagination link background colors. It doesn't look like you are doing this in your code.

Also, I just noticed this, you are using div for the slider pages (Primary, Secondary, Tertiary). Should be using article

Ahhhhh brilliant!!!

I didn't realise I had to remove the closing article bracket to make it a class. Thanks Justen, appreciate your help!

No problem. <article> is one of the new semantic html tags like <header> and <footer> so it behaves the same way any other html tag would when adding classes, ect.