Ict 9 Lesson 18
Ict 9 Lesson 18
Ict 9 Lesson 18
SYNTAX:
<style> selector{property: value;} </style>
INTERNAL STYLE SHEET
INLINE STYLE SHEET
It applies a style to a particular tag only.
SYNTAX: <tag style=”property:value;”></tag>
INLINE STYLE SHEET
SPAN TAG
It is a special tag used to style elements on the web page.
It is more specific compared to internal and inline CSS.
SYNTAX: <span style=”property:value;”></span>
SPAN TAG
HIERARCHY TAG
CSS is intended to apply multiple
styles to a website. The website
efficiently designed loads faster,
wherein same styles are applied to
several elements without repeating
the styles statements in the program
codes.
Order of Precedence
When using selectors, CSS follows the order where the last selector is
the highest priority: element selector, class selector, and ID selector.
ID (id) Selector
It selects the id attribute of an HTML element to find a
certain element.
MULTIMEDIA ELEMENTS
Multimedia is any interactive content that uses a
combination of various forms like sound or audio,
image, video, and animation.
These are the multimedia elements that we can work on:
SIZE
The height and width properties set the size of an image. The
values can be in px or %.
Syntax for height: img{height: value;}
Syntax for width: img{width: value;}
These are the multimedia elements that we can work on:
BORDER
It displays an image with borders. The values follow this order:
width, style, and color.
Syntax: img{border: width style color;}
The values of the border can also be individually used. We specify the
following properties and their values:
These are the multimedia elements that we can work on:
ROUNDED CORNERS
It displays an image with rounded corners. The values can be in px
or %.
Syntax: img{border-radius: value;}
These are the multimedia elements that we can work on:
OPACITY OR TRANSPARENCY
It displays an image in fade effect. The values can be from 0.0 to -
1.0. the default value is 1. Lower values are more transparent.
Syntax: img{opacity: value;}
These are the multimedia elements that we can work on:
CSS: HTML
These are the multimedia elements that we can work on:
HTML
CSS:
THANK YOU!
SEE YOU IN
NEXT LESSON