CSS – CSS – Cascading Style Sheets, used to style HTML elements
External style sheet – A separate
Internal style sheet – CSS written inside
Inline style – CSS applied directly to an HTML element using the
CSS syntax –
CSS comment –
Background color –
Text color –
Text size –
Bold text –
Font family –
Text capitalization –
Underline links –
Borders –
Margins –
Padding – spacing inside an element (cannot use negative values)
List style –
ID selector –
Class selector –
Descendant selector –
Grouped selectors – Separate selectors with commas, e.g.,
Position property –
External style sheet – A separate
.css file linked to HTML using <link rel="stylesheet" href="style.css">Internal style sheet – CSS written inside
<style> tags in the HTML <head>Inline style – CSS applied directly to an HTML element using the
style attributeCSS syntax –
selector {property: value;}CSS comment –
/* comment */Background color –
background-color property to set the background color of an elementText color –
color propertyText size –
font-size propertyBold text –
font-weight: bold;Font family –
font-family property to change the fontText capitalization –
text-transform: capitalize;Underline links –
text-decoration property (e.g., text-decoration: none;)Borders –
border-width: top right bottom left; for individual border widthsMargins –
margin-left, margin-right, etc. for spacing outside an elementPadding – spacing inside an element (cannot use negative values)
List style –
list-style-type: square; or other markersID selector –
#idname selects a unique elementClass selector –
.classname selects elements with the same classDescendant selector –
div p selects all <p> elements inside a <div>Grouped selectors – Separate selectors with commas, e.g.,
h1, h2, h3 {color: red;}Position property –
static is the default positioning
