Summary 3

HTML & CSS - CH 2&11

Topic One: Headings and Paragraphs

There six levels of headings, h1 being the largest and h6 being the smallest. H1 is typically used for main headings, while h2 is used for subheadings, h3 for further sections, and so on. Paragraphs are created using the opening tag <p> and the closing tag </p>.


Topic Two: Style Tags

It is possible to specify the style of an HTML element by using style tags such as <b> for bold, and <i> for italic. Placing these tags around the word(s) you which to style will make them appear in the style according to which tag is used. There are also tags for superscript, subscript, line breaks, and horizontal rules.


Topic Three: Color

Color can be specified in CSS using RGBA values, HEX codes, or simply color names. The integration of RGBA colors into CSS allows designers to indicate the color’s opacity, although older browsers may not be able to read RGBA colors and therefore the opacity properties will be displayed as a solid color. The color of text can be specified by using the declaration “color,” which refers to foreground, while the declaration “background-color” refers to the background and will change the color behind the text.