<element class="class-name"> or <element id="id-name">
by id #id { float: left; } by class selector .class selector { float: left; }
selector { declaration1: value; declaration 2: value }
<link rel = "stylesheet" href="xxx.css">
)external CSS file should not contain any HTML tags, and there is NO space between the property value and the unit.
<style>
element, for ex.<style> body { declaration:value; } h1 { declaration: value; declaration: value; } </style>
<h1 style="declaration:value;declaration:value">heading</h1>
)*Note: if multiple styles sheets were defined for the same element, the last style sheet will be used *Note: if multiple style in a page is speified, the priority hierarchy is: inline –> external and internal style sheets –> browser default.
Color can be a color description(ex. red, green), a hex(#xxxxxx) value, or RGB (rgb(0,0,255))
How to make the page move according to the display size of my browser?