Saturday, May 10, 2014

HTML Lessons part 17

In this lesson I will teach you how to make the <style> tag.  The style tag goes inside the head of an HTML document.  <style> is used instead of <p style="font-size: 50px"> and so on.  Inside the style element you write the code in CSS like this.

<style>
p {
font-size: 20px; color: green;
}
</style>

The 'p' tells it which tag you want is to change and it changes all <p> tags to look like that.
You can also do it with h1-h6 span and others.
If you try to do 'a' for links it changes all of the text to that style not links.  Just make sure you put the <style> tags inside the head or it will not work.  That is all for today.

No comments:

Post a Comment