to wear it.
CSS styles In a website,
you can use three different ways to insert CSS cold,
the first internal style shit second,
external style shit and last using in Leiden style.
The advantage for using each depends on what you are doing with style.
Let's see now out to use each one of them and what the advantage and these advantages.
First,
the internal style shits where you write This year's has called for the weapons in dead
section off a particular file being inserted inside the style opening and close tech.
That was the methods that I used in the previous chapters,
where I change the style of a bear ref.
And then having this makes it easy to apply styles in order to reuse Deco's Do these
advantage off using an internal style shit is that changes to the internal style shit on
Lee Effect the page where the causes inserted into.
So if you want to apply styles in another pages,
you need to declare all of your styles on every single page of your website inside the
section F.
For the next example,
I want to specify some new properties,
foreign adding and the paragraph that I have defined in the HTML colt using some text.
Like I said,
the gold is written in that section and inside style tag I defined now with CSS rule for my
having one with color blue and size 24 pixels.
For the paragraph,
I want the fund size with value 20 pixels,
background color yellow and to define the fun family I use value could here.
Now that I define adding in paragraph rules,
you see the changes in the browser the second way to wear it sell sheets to your weapons is
using an external style shit that is simple.
A CSS individual filed that you link to your website.
The huge advantage of using this method is that whatever you changed in the CSS shit will
affect every page in your website that is connected to the CSS file.
So dis prevents you from having to make medical changes in each page.
CSS files can be created using any text editor like when you create an HTML file.
The only difference is that you must save the file with the CSS extension to include an
external style sheet in one off your webpages.
You need to have a link tech within the earth.
Take off your page where you use attributes.
REHL Debt specifies the relationship between the current document and linked documents and
type attribute to tell the media.
Type off the length documents.
Did a draft simply tell?
Is the location off the CSS file?
You can see now all these attributes defines in our document using style sheets called
style dot CSS.
So I want to ever see assess file type with names style.
And that's what I do know create in my main directory.
The file with name,
style dot CSS that will be my external style sheets.
In the first example of internal style shits,
I create the style for adding in paragraph elements,
but now I want to do the same.
But with the external CSS file,
I just need to move the rule created to my CSS file after saving defile is visible debt.
My webpage still f the styles applied previously with text color blue and size 24 pixels
and the cells defined for the paragraph with front size,
20 pixels,
background color yellow and fund family Could ea if I simple change,
spare ref background color in CSS.
You see that HTML documents that is connected to external CSS file will change background
color off paragraph.
As expected,
Resuming external style sheets allow you to put all of your styling information into a
completely separate CSS file.
You can then simply reference CSS file from within.
Each webpage and page content will then be styled according to the file.
The obvious huge advantage off this method is that you need only change the style in your
style sheet file,
and the changes will cascade through the rest of your website being the best methods to use
,
giving a great flexibility and easy maintenance.
Now,
finally,
Dean Line style that is specific to the tag itself uses the HTML style attributes to change
the elements style.
This method is not recommended because every change that you might in the CSS cold as to be
made in every tag that you want to apply the style.
So if you have three paragraphs in a page,
you have to apply the styles three times inside each deck.
This is a good matter to apply for individual CSS changes that are not to use repeatedly in
a website for this example,
I have to equal paragraphs where I changed the first,
the caller to blue and font size to 30 pixels.
This change our only applied to the specific paragraph you see in the browser.
That situation where the second paragraph has no changes.
This matter is far from ideal.
Like I said,
because if you want to change the style properties,
you would have to have it each and every instance off the style on every single page of
your website,
Thanks.