px (pixel), and % (percent of the page) are the most common.
em.
The "id" attribute specifies a unique ID for an element:Ids must be unique within the page (so no other elements that are ided as "firstParagraphOfGreatness".)Ids can be referenced in CSS like so:#firstParagraphOfGreatness {css rules here}
Period which specifies to a class using (.) or dot operator Where as hash or # specifies to id of a particular attribute of HTML tags
Some attributes for the BODY tag are: * dir - Specifies the text direction for the content. Values (rtl and ltr) * id - Specifies a unique id for the component * style - specifies the style (usually CSS) to be used * background - to specify a background image (Deprecated) * bgcolor - to specify a background color (Deprecated) * etc...
Use the CSS declaration "background-color" For instance... <style type="text/css"> body { background-color: red; } </style> That code will change the background color to red. Background color will take the same values for a color as all other CSS color. A named color keyword, a hex RGB value, a decimal RGB value, and a decimal RGBA value.
css
You would need CSS for that.body a:link{color: #FF0000}If you put that code in the of the document, all the links will be red.
In HTML 4.01, the "size" attribute specifies thickness and the "width" attribute specifies width, as measured in pixels. For example: <hr size="20" width="800" /> However, these attributes are deprecated in XHTML Strict and HTML 5--you should use CSS instead.
Valid CSS is CSS that has been run through the W3C CSS checker and passed.
CSS layouts can be created in an external CSS file. The extension of the file should be CSS only.
if you neglected to save your css file in a .css format, then it may not work.
CSS refers to Confederate States Ship as in the name CSS Shenadoah.CSS refers to Confederate States Ship as in the name CSS Shenadoah. In computer terms CSS is a Cascading Style Sheet.