Text and Images from Slide
Headings - Sample Code
- *make level 1 headings sans-serif, blue and centered*/<br />H1 {font-family: sans-serif;<br /> color; blue;<br /> align: center}
- You can assign a different colour for each level of heading (not recommended) or you can create a uniform appearance for headings:
- /*make all headings blue, sans-serif and centered*/<br />H1, H2, H3, H4, H5, H6 {font-family: x;<br /> color: x;<br /> align: x}
- Where "x" is the value you insert.
- Notice that each attribute has it's own line and is indented slightly so it can be changed easily, and the message for the computer to continue reading the code is the semi-colon ":". This concept is carried over from most other programming languages.
- It is also important to include comments /*.....*/ for each set of attributes so that you know what they were supposed to do when you go to make changes or if they break.
Copyright Karen McCall, Karlen Communications
24