Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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