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 How to Make a Website Beginning HTML and CSS Write a CSS Selector and Property

style 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
STAFF
Ken Alger
Treehouse Teacher

Sheryl;

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
Sreng Hong
15,083 Points

Hi Sheryl!!!

Style tags should be like this <style></style> and don't forget to put it above h1 tags

Please add your code so that we can help you. Use 3 back ticks like this

<p>then close it with another</p>

<style>

h1 { color: blue; }

</style> <h1>sheryl stephen</h1> thats how iv been typing

Ken Alger
STAFF
Ken Alger
Treehouse Teacher

Sheryl;

That is CSS code. If you are trying to do it inline in the HTML then you need to use <style> tags.

Ken

how tags? can you please demonstrate some?

Ken Alger
STAFF
Ken Alger
Treehouse Teacher

Sheryl;

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