With CSS, you can specify a variety of properties for a given HTML element. Styles can be declared in three ways: inline, internal, and/or external. With CSS, you are not limited to applying styles in one manner. For example, you may want to have a style applied globally to all of your hyperlinks, so you would use an external style sheet. However, on one specific page, you may have a hyperlink that you want to style differently. On that HTML tag, you can apply an inline style. The order of “applying” styles is as follows: external –> internal –> inline. If you apply the same property on an external style and apply a different property on the internal and/or inline, the inline will take priority.
Inline Styles
An inline style can be used if a unique style is to be applied to one single occurrence of an element. To use inline styles, use the style attribute in the relevant tag. The style attribute can contain any CSS property. The following shows how to change the color and underline the text:
Internal Style Sheet
An internal style sheet can be used if one single web page has a unique style. Internal styles are defined in the
section of an HTML page, by using the