Types Of CSS
đ Internal / Embedded - An internal CSS is defined in the
đ External - To use an external style sheet, add a link to it in the
<head>
section of an HTML page, within a <style>
element.đ External - To use an external style sheet, add a link to it in the
<head>
section of each HTML pageđ Inline - An inline CSS uses the
style
attribute of an HTML elementStyle
<style>
Selector {
style-name : style-value;
}
</style>
CSS Units
Absolute Lengths
Relative Lengths
Browser Support
#id vs .class
#
id selector: styles the element with the specified idN:B you cannot have more than one element with the same id in an HTML document.
âĸ
class selector: styles the element with a specific class nameN:B đMultiple HTML elements can share the same class name.
đHTML elements can also contain more than one class.
<span></span> = The
<span>
tag is an inline container used to mark up a part of a text, or a part of a document.
0 āĻŽāĻ¨ā§āĻ¤āĻŦā§āĻ¯(āĻā§āĻ˛āĻŋ):