Inline CSS: Inline CSS are directly applied on the HTML elements and it is the most prio
CSS amonth these three. This will override any external or internal CSS.
Internal CSS: Internal CSS are defined in the HTML head section inside of <style> tag to l
browser know where to look for the CSS.
External CSS: External CSS are defined in a separate file that contains only CSS properties
the recomended way to use CSS when you are working on projects. It is easy to maint
multiple CSS files can be created and you can use them by improting it into your HTML do
using HTML <link> tag.
, Syntax:
Selector {
property: value
}
Html:
<p> Paragraph 1 </p>
Css :
, CSS Selectors
CSS selectors are used to "find" (or select) the HTML elements you want to style.
Universal Selectors
Element Selectors
Class Selectors
Id Selectors
Attribute Selectors
Group Selectors