Sõnastik Veebirakendus

CSSCSS – Cascading Style Sheets, used to style HTML elements
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 attribute
CSS syntaxselector {property: value;}
CSS comment/* comment */
Background colorbackground-color property to set the background color of an element
Text colorcolor property
Text sizefont-size property
Bold textfont-weight: bold;
Font familyfont-family property to change the font
Text capitalizationtext-transform: capitalize;
Underline linkstext-decoration property (e.g., text-decoration: none;)
Bordersborder-width: top right bottom left; for individual border widths
Marginsmargin-left, margin-right, etc. for spacing outside an element
Padding – spacing inside an element (cannot use negative values)
List stylelist-style-type: square; or other markers
ID selector#idname selects a unique element
Class selector.classname selects elements with the same class
Descendant selectordiv p selects all <p> elements inside a <div>
Grouped selectors – Separate selectors with commas, e.g., h1, h2, h3 {color: red;}
Position propertystatic is the default positioning