This is Sasha and thanks for joining me here for another CSS training video. In today’s video, what I’d like to do is share with you the three ways that you can add CSS code to your website or webpage. Hopefully as you continue to evolve within building your business website or looking to make changes within your business website, this will give you some insight to how CSS can be applied to those pages. Let’s take a quick look.
Directly within the tags
Here I have one page right here set up with HTML code and then of course on the right I have a page that’s refreshing every couple of seconds. The first way that you can add CSS code is by just typing it in directly. If we have the H2 tag right here or the heading 2, I can just type in style and then I’ll go ahead and add my double quotes and this case I’ll add in the color attribute or the color perimeter and then we’ll go ahead and we’ll just say it red.
You can see I’ve put in this little code right there and when I go ahead and apply that code you can see right there the heading went ahead and made changes right on to the website. If I do the same thing right here on this lower part where it says, “Thank you for visiting”, I can go ahead and apply the same concept color and we could do, let’s just say, green in this case.
Backstageincome : Learn to grow a business and evolve your life! Welcome to My New Website
Business Launch Pad is focused on showing you the critical concepts on how to build a profitable business from scratchThese are my books and products
Thank you for visiting

I went ahead and applied it with green and now you can see those colors have been changed right here on the website. that’s the first way to apply CSS code. Let’s go ahead and undo some of these things. Okay? That’s within the page itself. That’s within the tags.
Using the style tag
The next way is if you go into the heading area, we’ll go ahead and type the style tag and you can see it went ahead and included the type, text/CSS and now what I could do is use my perimeters and I’ll just go ahead and type the H2 tag. We’ll go ahead add in our brackets right there. We’ll type in color and I’ll go ahead and type red and you can see how that automatically changes it right there on the website.
Backstageincome : Learn to grow a business and evolve your life! Welcome to My New Website
Business Launch Pad is focused on showing you the critical concepts on how to build a profitable business from scratchThese are my books and products
Thank you for visiting

If I went ahead and change it to green, okay, and we go ahead and refresh, you can see both of those heading tags changed to green. Now, one thing to keep in mind is here in order for you to just effect one perimeter or just one title here because right now it’s effecting both, you would have to do them individually and add or include classes. In this case, I’ve done the H2 tag so it’ll affect any H2 tags.
If you went ahead and added a class like an H2 green class here and then I went ahead and added a class green right here then it would only affect that one alone individually and we’ll get into classes here a little bit more in detail and you’ll get better at them with time. Okay, so that’s the second method and let’s just go ahead and undo that and refresh the page.
Backstageincome : Learn to grow a business and evolve your life! Welcome to My New Website
Business Launch Pad is focused on showing you the critical concepts on how to build a profitable business from scratchThese are my books and products
Thank you for visiting

The external method
The third and final way is through the external method and that would be – I’m going to go ahead and just type it in, it’s linked Arial and stylesheet, that’s type text/CSS and then href. I already have one defined, it’s stylesheet.css. If you had a folder, you could of course make it CSS/ and then stylesheet or you could do, you know, archive, whatever it is that you want, and I went ahead and saved it and I already have this stylesheet right here just under that page and you can see how it quickly made those adjustments because now it’s pulling the data directly from the stylesheet page.
------------------------ HTML CODE ------------------------------------------------ CSS CODE ------------------------ h2 { color:#3baf6e; font-family: arial, verdana, "times new roman", serif; } p {font-size:17px; background-color: pink;}Backstageincome : Learn to grow a business and evolve your life! Welcome to My New Website
Business Launch Pad is focused on showing you the critical concepts on how to build a profitable business from scratchThese are my books and products
Thank you for visiting

We’re basically linking or connecting two pages together and now it’s allowing it to use those styles that I have here. If I went ahead with the H2 tag and I changed it to red, again right here, you see it quickly makes it to red, here with the background.
------------------------ HTML CODE ------------------------------------------------ CSS CODE ------------------------ h2 { color:red; font-family: arial, verdana, "times new roman", serif; } p {font-size:17px; background-color: blue;}Backstageincome : Learn to grow a business and evolve your life! Welcome to My New Website
Business Launch Pad is focused on showing you the critical concepts on how to build a profitable business from scratchThese are my books and products
Thank you for visiting

If I change it to blue even though that’s on a separate page, you can see the background changed to blue on the paragraph text. This is another way doing that and that’s kind of what I’ve done but those are the three ways that you can link directly or use stylesheets within your pages.