LLCU 212 Lecture Notes - Lecture 22: Css Zen Garden, Alliance Data, Cascading Style Sheets
Document Summary
Almost all web pages are composed of 3 technologies: html: content, css: style, appearance, how things are displayed, js: javascript behavior, scripting technology that changes the behavior of a web page. style=(cid:498)background-color: red; color: white(cid:499) /> onclick=(cid:498)alert (cid:523)(cid:494)(ello world! (cid:495)(cid:524)(cid:499) /> Separation between content that is the table cells and the appearance of the table cells in html. Html does not change, the only thing that changes is the css, the appearance of the site. Html: align tag is deprecated, the browser will respect it, but should be avoided. Define it once so that any table cell will be aligned. Declaration: {text-align: center;: property: text-align, value: center. Can use more than one tag, but they need to be separated by commas. Id: ways of uniquely identifying specific elements (every id should be unique) Class: used when you want to have multiple tags to follow the same rules (named groups)