Welcome to the Treehouse Community
Looking to learn something new?
Where in a paragraph tag can I set the class attribute class="main.pg"?
I am having a hard time figuring out how to where in a paragraph tag to put class="main.pg".
Jamie ReardonTreehouse Project Reviewer
<p class="main-pg">Your paragraph content here...</p>
Replace the above "Your paragraph content here" with your own paragraph content.
Any attributes you want to add such as classes to elements, go inside the opening tag like above.
They are defined by their attribute name (in this case class) followed by an equal sign (=) and a set of quotes, single or double ("") and inside the quotes, is the value for the attribute.
<a class="classname">Link</a> <p class="intro">Paragraph content...</p> <a href="linktofacebook">Facebook</a>
nick67Front End Web Development Techdegree Graduate 18,812 Points
Just put it right after the first p tag <p class="main.pg">Text</p>