HTML / CSS

?
  • Created by: arrey
  • Created on: 24-04-19 11:52
HTML Table structure incl. row / col.
<table> <tr> <td> </td> </tr> </table>
1 of 13
Unordered / Ordered List
<ul> <li> </li> </ul> ORDERED: <ol> <li>
2 of 13
HTML Bold tag
<strong> </strong>
3 of 13
CSS Background Colour
background-color: colour;
4 of 13
CSS change font and size
font-family: font; font-size: size px;
5 of 13
In-line CSS change h1 font colour to blue:
<h1 style="color: blue;"></h1>
6 of 13
HTML implementing images
<img src="source.jpg">
7 of 13
HTML Links
<a href="source.html"> Link word </a>
8 of 13
HTML Input w/ text type
<input type="submit" value "Submit">
9 of 13
CSS Border attributes
border-color, border-style, border-width
10 of 13
Why do we seperate CSS from the HTML doc.?
1) Avoid Duplication of code, 2) Browser doesn't have to repeatedly load the same CSS, 3) Consistency of design, 4) Entire website's look can be changed from 1 place.
11 of 13
HTML ID notes
ID tags are used to identify individual <div>'s on our page; 2) each id tag is only used once on a page to identify a particular area, 3) can have different id tags but no duplcates, ID is used w/ JS to act on diferent areas on a page, in CSS id is #
12 of 13
ID vs Class Q
Only 1 elmenet can hae a given ID (unique); class can be assigned mltiple elements
13 of 13

Other cards in this set

Card 2

Front

Unordered / Ordered List

Back

<ul> <li> </li> </ul> ORDERED: <ol> <li>

Card 3

Front

HTML Bold tag

Back

Preview of the front of card 3

Card 4

Front

CSS Background Colour

Back

Preview of the front of card 4

Card 5

Front

CSS change font and size

Back

Preview of the front of card 5
View more cards

Comments

No comments have yet been made

Similar Computing resources:

See all Computing resources »See all Programming resources »