Add Style To Your Web Pages
Add Style To Your Web Pages
Sheets
(CSS )
“Add style to your web pages”
ITEINC ENDTERM-Learning Topic3 by: Marites D. Manganti, MSCS CHMSC - College of Computer Studies
CSS Definition
Course Contents CSS Advantages
CSS Syntax
Types of Selectors
Grouping Selectors
Inserting CSS
We can do
this!
ITEINC ENDTERM MDM
Ways of Inserting CSS- Internal Style or
Embedded CSS - The <style> Element
We can do
this!
ITEINC ENDTERM MDM
Ways of Inserting CSS - External Style CSS –
The <link> Element
The <link> element can be used to include an external stylesheet file in your
HTML document. An external style sheet is a separate text file
with .css extension. You define all the Style rules within this text file and then
you can include this file in any HTML document using <link> element.
Here is the generic syntax of including external CSS file:
<head> <link href=“MyCSSStyle.css" rel="stylesheet"></head>
Attributes associated with <style> elements are:
Attribute Value Description
href Your saved .css file points to the location of the external style sheet
type text/css must be set to "text/css" for linking to cascading style sheets
Online Sources:
https://www.w3schools.com/css/default.asp
https://www.tutorialspoint.com/css/index.htm
https://www.webucator.com/how-to/how-
create-css-external-style-sheet.cfm
Css-tricks.com
Let’s learn
more!
ITEINC ENDTERM MDM
Doumo arigatou gozaimasu!
Empowered!