Computer Science 1033A/B Lecture Notes - Lecture 6: Style Sheet Language, Cascading Style Sheets, Html Element
mikekuo58 and 38820 others unlocked
25
COMPSCI 1033A/B Full Course Notes
Verified Note
25 documents
Document Summary
What is css? designates the space between 2 elements. Html controls the structure, css controls the presentation/appearance/style. Stylesheets are a collection of formatting rules, controls the appearance of html webpages. Build a website the developer war using div ids and classes. Can change the entire layout of the page without changing its content or structure, benefits speed in production/maintenance. Store css in 2 ways: within each webpage or in an external style sheet that is attached to a webpage(s) Benefits: maintaining site, enhances appearance, reusability, reduces file size. Cascade refers to how files are applied to pages: styles are applied in the order they are found. Styles in the lowest style sheet override those in the higher style sheets. Every html element on webpage is considered to be a rectangular box. Box model describes the 4 physical properties around elements: #1. + border right: box height = content height + padding top + padding bottom+ border top + border bottom.