The three types of CSS are internal (embedded) styles, inline styles, and external styles. Internal Styles are placed inside the section of a particular web page via the style tag. These styles can be used only for the web page in which they are embedded; therefore, you would need to create these styles over and over again for each web page you wish to style. PROS: All CSS is in one place in the web page: in in the . Good to use when one page has different styles than all the other pages (which are linked to the external style sheet). CONS: Internal is redundant, because you need to have it in every web page file. If you want to change a style throughout a website, you’ll need to change the style in every section of every page… You should try to avoid using internal CSS as much as possible!
Inline CSS is embedded into individual html tags; they are “local” to a single tag. Inline CSS is a blend of CSS and HTML: it uses html syntax to define css styles as an attribute of the html tag. Inline CSS is first in order of preference; it overrides both internal and external styles.
PROS: Good for when you want to apply a certain style to just one or a few tags. Inline CSS gives you the most specific local control.
CONS: Defeats the purpose of separating the content and logical code from the style, because the CSS is “all mixed up” with the HTML code.
External Styles are defined on the external style sheet, which is linked to the web pages. External styles are the best choice to use because it allows a separate file that contains only CSS styles, no html. File called a “style sheet.” A tag in the section of a web page links to the style sheet file. External style sheet settings can be “overridden” by internal and inline CSS; external style sheets are the last in the order of preference.
PROS: One style sheet can define style for many web pages or an entire website. Change settings in the style sheet