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 trialkaihan badarpura
2,869 Pointshow to select any paragraph
how to select any paragraph in css and make necessary changes
3 Answers
stjarnan
Front End Web Development Techdegree Graduate 56,488 PointsHi Kaihan, as Richard showed you all you need to do to select your paragraphs is to use the element selector (p in this case). But if you need to style a specific paragraph you will need to give it a class or an id, example: <.p class="whateveryouwanttocallit"> content <./p> , and then in the css file you want to select this class by using the class selector which is a full stop ( . ).
Example on how you select the class in your css file: .whatyounamedtheclass { color: blue; }
I wish you good luck!
Richard Duncan
5,568 Pointsp {
// add styles here e.g.
font-size: 10pt;
}
James Barnett
39,199 PointsAs w3schools has some issues with credibility so I usually suggest these instead: