Monday, 21 March 2016

WEEK5_CSS & JavaScript

3 way of inserting a style sheet:

1. External style sheet


2. Internal style sheet


3. Inline style



CSS Selectors =to apply a declared style

selectors type have:

a. Element selectors
b. Class Selectors

.legs { font-weight: bold; background: pink;}

c. ID Selectors

#snout { border: solid red;}

d. Pseudo Selectors

-specific to hyperlink



JAVA Script

where to put JavaScript?
* between the HTML document's head tags
* within the HTML document's body
*in an external file 








No comments:

Post a Comment