Help with html document?

  • Thread starter Thread starter rachelle171986
  • Start date Start date
R

rachelle171986

Guest
I'm doing an assignment for my web prog class. I'm trying to create a style to display bold text in a yellow font. I need everything that's in bold in my document to be yellow. I also need to create a style to indent paragraphs by 2 em units. please help me code this
 
CSS
p {text-indent:1em;}
.yellow{color:yellow;font-weight:bold;}

HTML
<p>This will be a regular paragraph!</p>
<p class="yellow">This will be yellow and bold!</p>
 
Assuming you are using the <strong> tag to make things bold:

strong {
color: #ff0;
}

To do a first-line indent of all p elements:

p {
text-indent: 2em;
}
 
Back
Top