CSS has 3 ways to stylize HTML: Inline, Internal, and External. Inline has the CSS directly inside the HTML tags, Internal has the CSS inside a <style> tag inside the <head> parent tag of the HTML file, and External has the CSS in a completely different file that ends in “.css”.

Inline and Internal stylizing isn’t recommended due to making navigation harder and with there being the External CSS way of implementing CSS to a site. Also to import a CSS file to HTML for the site to use, <link ref=”stylesheet” href=”style.css”> is put inside the <head> tag of the HTML file.

Internal and External CSS has 5 parts:

1) The selector, which targets the tag itself.

2) The declaration block, which uses curly brackets to signify that inside the block gets applied to the targeted tag.

3) The declaration / style, which is the styling to apply to the tag.

4 & 5) The property and the value. CSS Property is like “font-size”, “font-family”, “color”, etc., and the value is what that property is assigned with, such as “blue”, “20px”, “40%”, etc. Theses two are what the declaration / style applies to the tag.

By Levi

Leave a Reply

Your email address will not be published. Required fields are marked *