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 trialsheryl stephan
Courses Plus Student 69 Pointsstyle tags
in my workspaces they say dont forget write your style tag im trying but i dont kbow where is the mistake
7 Answers
Ken Alger
Treehouse TeacherSheryl;
It would help tremendously to see your code. See this thread how to post code, or look at the Markdown Cheatsheet.
Thanks, Ken
Sreng Hong
15,083 PointsHi Sheryl!!!
Style tags should be like this <style></style>
and don't forget to put it above h1 tags
zacharygassem
3,697 PointsPlease add your code so that we can help you. Use 3 back ticks like this
<p>then close it with another</p>
sheryl stephan
Courses Plus Student 69 Points<style>
h1 { color: blue; }
</style> <h1>sheryl stephen</h1> thats how iv been typing
Ken Alger
Treehouse TeacherSheryl;
That is CSS code. If you are trying to do it inline in the HTML then you need to use <style> tags.
Ken
sheryl stephan
Courses Plus Student 69 Pointshow tags? can you please demonstrate some?
Ken Alger
Treehouse TeacherSheryl;
Sure:
<html>
<head>
<style>
h1 {color:red;}
p {color:blue;}
</style>
</head>
<body>
<h1>A heading</h1>
<p>A paragraph.</p>
</body>
</html>
Not inline like I mentioned before, but that is one sample.
An inline sample would be something like:
<p style="color:blue;">This is a paragraph.</p>
Hope it helps. Ken