Upload
john-sonny-deviasta
View
214
Download
0
Embed Size (px)
Citation preview
8/16/2019 ICTWorkshop_Day2
1/30
DULN004(Q) KP(JPS)5195/IPTS/1144 05 June 2004 Co. No. 497194-M
ICT Workshop –
HTML & CSS(Day2)
8/16/2019 ICTWorkshop_Day2
2/30
DULN004(Q) KP(JPS)5195/IPTS/1144 05 June 2004 Co. No. 497194-M
selector {
property1: value 1; property2: value 2;
}
Web Development Structure
• Use HTML to describe the content.• Use CSS to format the content.
– CSS con!"n #$%e "n&o'!"on !# ! #e o&
'u%e#. – CSS 'u%e #e con#"## o& ! #e%eco' !n*
! *ec%!'!"on+
CSS 'u%e
8/16/2019 ICTWorkshop_Day2
3/30
DULN004(Q) KP(JPS)5195/IPTS/1144 05 June 2004 Co. No. 497194-M
Create an External CSS
• pen !otepad"!otepad## to create ablan$ external CSS.
• Save the %le as style.css.
8/16/2019 ICTWorkshop_Day2
4/30
DULN004(Q) KP(JPS)5195/IPTS/1144 05 June 2004 Co. No. 497194-M
CSS Example & 'ac$(round Color
• pen )ndex.html usin(!otepad"!otepad##.
• Chan(e the bac$(round color in st*le.css+
body {
background-color: blue;
}
8/16/2019 ICTWorkshop_Day2
5/30
DULN004(Q) KP(JPS)5195/IPTS/1144 05 June 2004 Co. No. 497194-M
Lin$ the External CSS
• To appl* the CSS, lin$ the external CSSinside the -head ta( in )ndex.html+
• Note: Save the %le and refresh *our)ndex.html pa(e to see the chan(es.
Welcome to Perth
8/16/2019 ICTWorkshop_Day2
6/30
DULN004(Q) KP(JPS)5195/IPTS/1144 05 June 2004 Co. No. 497194-M
CSS Example & 'ac$(round )ma(e
•/dd bac$(round ima(e and %xed thebac$(round 0ith no repetition inst*le.css+
body {
background-i!age: url"background.#pg"$; background-attach!ent: fixed;
}
8/16/2019 ICTWorkshop_Day2
7/30
DULN004(Q) KP(JPS)5195/IPTS/1144 05 June 2004 Co. No. 497194-M
-D)1 ta(
• The -div ta( de%nes a division or asection in an HTML document.
• The -div ta( is used to (roup bloc$2elements to format them 0ith CSS.
8/16/2019 ICTWorkshop_Day2
8/30
DULN004(Q) KP(JPS)5195/IPTS/1144 05 June 2004 Co. No. 497194-M
-D)1 )D ta( vs -D)1 Class ta(•
-D)1 )D – ,!c e%een c!n !e on%$ one ID.
– ,!c !e c!n !e on%$ one e%een
" ! ID.
8/16/2019 ICTWorkshop_Day2
9/30
DULN004(Q) KP(JPS)5195/IPTS/1144 05 June 2004 Co. No. 497194-M
-D)1 )D ta( vs -D)1 Class ta(•
-D)1 Class – ou c!n u#e e #!e c%!## on u%"%e
e%een#.
–
ou c!n u#e u%"%e c%!##e# on e#!e e%een#.
8/16/2019 ICTWorkshop_Day2
10/30
DULN004(Q) KP(JPS)5195/IPTS/1144 05 June 2004 Co. No. 497194-M
Modif* )ndex 3a(e
• Center the banner – ** e 3!nne' "n ! *" ! "
63!nne' "* "n In*e8.%+
– Cene' e 3!nne' "n #$%e.c##+
8/16/2019 ICTWorkshop_Day2
11/30
DULN004(Q) KP(JPS)5195/IPTS/1144 05 June 2004 Co. No. 497194-M
Modif* )ndex 3a(e 4cont.5
• Center the menu – 'ou e enu "n ! *" ! "
6enu "* "n In*e8.%+
– Cene' e enu "n #$%e.c##+
8/16/2019 ICTWorkshop_Day2
12/30
DULN004(Q) KP(JPS)5195/IPTS/1144 05 June 2004 Co. No. 497194-M
Modif* )ndex 3a(e 4cont.5
• 6ormat the headin( – In #$%e.c##+
• Note: I& e &on &!"%$ "# o'e !n one
o'*: " u# 3e "n ";uo!"on !'
8/16/2019 ICTWorkshop_Day2
13/30
DULN004(Q) KP(JPS)5195/IPTS/1144 05 June 2004 Co. No. 497194-M
Modif* )ndex 3a(e 4cont.5
Property Descriptionfont-fa!ily =on #$%e
,+ '"!%: T"e# ne'o!n
font-si)e Te #">e o& e &on,+ 128
text-align Te8 !%"nen,+ Cene': %e&: '":
ec.color Te8 co%o'
,+ ?e*: 3%ue: ec.• Note: 8 ("8e%) "# ! *o on e coue'
#c'een !n* e o# coon !$ o&#ec"&$"n &on #">e# "n CSS (18 @ 0.75).
8/16/2019 ICTWorkshop_Day2
14/30
DULN004(Q) KP(JPS)5195/IPTS/1144 05 June 2004 Co. No. 497194-M
Modif* )ndex 3a(e 4cont.5
Property Descriptiontext-transfor!ation Te8 c!ne
,+ ue'c!#e:%oe'c!#e: c!"!%">e
letter-spacing S!c"n 3eeen e!c%ee',+ 28: 58
ord-spacing S!c"n 3eeen e!c
o'*,+ 28: 58
8/16/2019 ICTWorkshop_Day2
15/30
DULN004(Q) KP(JPS)5195/IPTS/1144 05 June 2004 Co. No. 497194-M
Modif* )ndex 3a(e 4cont.5
• 6ormat the para(raphs – ** 6"n*e8 c%!## o e!c ! "n
In*e8.%+
8/16/2019 ICTWorkshop_Day2
16/30
DULN004(Q) KP(JPS)5195/IPTS/1144 05 June 2004 Co. No. 497194-M
Modif* )ndex 3a(e 4cont.5
• 6ormat the para(raphs 4cont.5 – In #$%e.c##+
• Note: margi0le(t:auto; !n* margi0
right:auto; !'e o cene' !n e%een.
p.index{
font-fa!ily: calibri;font-si)e: '1pt;
idth: 23;
!argin-left: auto;
!argin-right: auto;
}
8/16/2019 ICTWorkshop_Day2
17/30
DULN004(Q) KP(JPS)5195/IPTS/1144 05 June 2004 Co. No. 497194-M
Modif* )ndex 3a(e 4cont.5
• Create a photo (aller* – ** oo# !n* 'ou e oo# "n !
*" ! " 6oo# "* "n
In*e8.%+
8/16/2019 ICTWorkshop_Day2
18/30
DULN004(Q) KP(JPS)5195/IPTS/1144 05 June 2004 Co. No. 497194-M
Modif* )ndex 3a(e 4cont.5
• Create a photo (aller* 4cont.5 – ?e#">e e oo# "n #$%e.c##+
– Cene' e oo# "n #$%e.c##+
&photos i!g{
idth: ,px;}
&photos{
text-align: center;
}
8/16/2019 ICTWorkshop_Day2
19/30
DULN004(Q) KP(JPS)5195/IPTS/1144 05 June 2004 Co. No. 497194-M
Modif* /ttractions 3a(e
• 6ormat the follo0in( elements as the)ndex pa(e+ – =o'! e !e 3!c
8/16/2019 ICTWorkshop_Day2
20/30
DULN004(Q) KP(JPS)5195/IPTS/1144 05 June 2004 Co. No. 497194-M
Modif* /ttractions 3a(e 4cont.5
• 6ormat the para(raphs – ** 6!'!c"on# c%!## o e!c !
"n !'!c"on#.%+
8/16/2019 ICTWorkshop_Day2
21/30
DULN004(Q) KP(JPS)5195/IPTS/1144 05 June 2004 Co. No. 497194-M
Modif* /ttractions 3a(e 4cont.5
• 6ormat the para(raphs 4cont.5 – In #$%e.c##+
p.attractions{
font-fa!ily: calibri;font-si)e: '1pt;
text-align: center;
}
8/16/2019 ICTWorkshop_Day2
22/30
8/16/2019 ICTWorkshop_Day2
23/30
DULN004(Q) KP(JPS)5195/IPTS/1144 05 June 2004 Co. No. 497194-M
Modif* /ccommodation 3a(e
• 6ormat sections 4total 8 sections5 – 'ou e!c #ec"on "n ! *" ! "
6#ec"on c%!## "n ccoo*!"on.%+
###
8/16/2019 ICTWorkshop_Day2
24/30
DULN004(Q) KP(JPS)5195/IPTS/1144 05 June 2004 Co. No. 497194-M
Modif* /ccommodation 3a(e 4cont.5
• 6ormat sections 4cont.5 – ** 3o'*e' o e!c #ec"on "n #$%e.c##+
.section{
border-style: dotted; border-idth: thick;
border-color: blue;
}
8/16/2019 ICTWorkshop_Day2
25/30
DULN004(Q) KP(JPS)5195/IPTS/1144 05 June 2004 Co. No. 497194-M
Modif* /ccommodation 3a(e 4cont.5
• 6ormat sections 4cont.5 – =o'! e e8 &o' e!c #ec"on "n
#$%e.c##+#sectio{
order0style: dotted;order0*idth: thic4;
order0color: lue;font-si)e: ',pt;
}
8/16/2019 ICTWorkshop_Day2
26/30
DULN004(Q) KP(JPS)5195/IPTS/1144 05 June 2004 Co. No. 497194-M
Modif* /ccommodation 3a(e 4cont.5
• 6ormat sections 4cont.5 – ** #!c"n ! e 3oo o& e!c
#ec"on "n #$%e.c##+
#sectio{
order0style: dotted;
order0*idth: thic4;
order0color: lue;
(ot0si9e: 1pt; !argin-botto!: 40px;
}
8/16/2019 ICTWorkshop_Day2
27/30
DULN004(Q) KP(JPS)5195/IPTS/1144 05 June 2004 Co. No. 497194-M
Modif* /ccommodation 3a(e 4cont.5
• 6ormat sections4cont.5 – ** #!c"n !'oun* e conen o& e!c
#ec"on "n #$%e.c##+
#sectio{
order0style: dotted;
order0*idth: thic4;
order0color: lue;
(ot0si9e: 1pt;margi0ottom: 27p6; padding: 4px;
}
8/16/2019 ICTWorkshop_Day2
28/30
DULN004(Q) KP(JPS)5195/IPTS/1144 05 June 2004 Co. No. 497194-M
Modif* /ccommodation 3a(e 4cont.5
• 6ormat sections 4cont.5 – S$%e e $e'%"n
8/16/2019 ICTWorkshop_Day2
29/30
DULN004(Q) KP(JPS)5195/IPTS/1144 05 June 2004 Co. No. 497194-M
Modif* /ccommodation 3a(e 4cont.5
• 6ormat sections 4cont.5 – S$%e e $e'%"n
8/16/2019 ICTWorkshop_Day2
30/30
DULN004(Q) KP(JPS)5195/IPTS/1144 05 June 2004 Co. No. 497194-M
Than$ *ou for *our participation9
• Web Development Competition & nline :e(istration6orm https+""
docs.(oo(le.com"forms"d";