Tuesday, April 22, 2014

HTML Lessons part 5

In this lesson you are going to learn how to style paragraphs and headings.  To do this you must add extra attributes inside the starting tag of the element like this.  <p style="background-color: red; color: blue">Hi </p>.  Inside the tag you first need to add the style="" inside this you must write the attributes for the color, background-color, font-family, and size.  You separate the attributes with semi-colons ( ; ).  These are all of the text attributes possible to get.
You can also do this with headings and lists.  If you want it to happen to the whole list then add the styles in the <ul> or <ol>.  If you want it to only be for that list number then put it in the <li>.

No comments:

Post a Comment