Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
front-end 101
Search
codebar
July 29, 2016
Education
0
280
front-end 101
introduction course for front-end development.
codebar
July 29, 2016
Tweet
Share
More Decks by codebar
See All by codebar
wordpress talk
codebar
0
27
AngularJS Fundamentals
codebar
0
180
Getting Started With Git
codebar
0
71
Codebar pitch in JumpstartPakistan
codebar
0
42
CodeBar Launch
codebar
0
260
Other Decks in Education
See All in Education
生成AIを活用できる大学教職員になる-基本と実践-
gmoriki
0
300
Railsチュートリアルの歩き方 (第7版)
yasslab
PRO
1
1M
「小・中・高等学校における情報教育の体系的な学習を目指したカリキュラムモデル基本方針」
codeforeveryone
0
1.3k
心房細動週間ポスター(2024年3月6日)
japanstrokeassociation
0
260
【滋賀大学データサイエンス学部】PropTech(不動産テック)における AI・データサイエンス活用
takehikohashimoto
0
4.1k
6ヶ月間の授業でここまでできた。コンテスト参加に向けての授業内容と生徒の様子を紹介!
asial_corp
0
410
自己紹介 / who-am-i
yasulab
2
3.1k
Frederick Douglass versus George Fitzhugh
oripsolob
0
610
Avoin jakaminen ja Creative Commons -lisenssit
matleenalaakso
0
1.1k
H5P-työkalut
matleenalaakso
3
32k
Data Representation - Lecture 3 - Information Visualisation (4019538FNR)
signer
PRO
1
1.7k
Canva
matleenalaakso
0
160
Featured
See All Featured
4 Signs Your Business is Dying
shpigford
175
21k
The Invisible Customer
myddelton
114
12k
Building Applications with DynamoDB
mza
88
5.6k
Web development in the modern age
philhawksworth
202
10k
Creatively Recalculating Your Daily Design Routine
revolveconf
209
11k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
24
2.3k
The Cult of Friendly URLs
andyhume
74
5.7k
How to train your dragon (web standard)
notwaldorf
72
5.2k
Pencils Down: Stop Designing & Start Developing
hursman
117
11k
Fantastic passwords and where to find them - at NoRuKo
philnash
36
2.5k
Facilitating Awesome Meetings
lara
41
5.6k
[RailsConf 2023] Rails as a piece of cake
palkan
22
3.9k
Transcript
Front-End Development 101 HTML & CSS Najam Sikander Awan @najamsikander
Khurram Raftaz @Khurramraftaz codebarpk.com
Examples and Discussion Examples on github http://bit.ly/GGolFl
ChatRoom https://gitter.im/codebarpak/frontend
Agenda History For Whom Students Back-end
Devs Front-end Devs without basics Why Html will stay and expand Easy to start HTML /CSS Future Desktop Development Mobile Development
1989 1990 1991 Berners-Lee
Evolution Of Web http://www.evolutionoftheweb.com/?hl=en- gb#/evolution/day
None
Content/Data: html Presentation: CSS Behavior: Javascript
Anatomy Of A Web Page
Bad Tags B big center font i small strike
u
Doc Types <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1- strict.dtd"> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1- transitional.dtd"> http://www.w3.org/QA/2002/04/valid-dtd-list.html demo
Minimum Tools for Development Text Editor Browser
Web developer toolbar Firebug / chrome dev tools / IE dev tools JsFiddle Cross Browser Testing IE Tester [IE6+] Chrome Firefox Opera Safari
Semantics Elements Inline Elements Block Level Elements
Inline-Block Elements Attributes
Validation Valid Html Valid CSS
None
None
None
Assignment Create your cv in Html One column
layout Doc type strict IE 6 to all modern browsers Choose tags carefully
None
Adding Style In-line External <link rel="stylesheet" type="text/css"
href="/css/styles.css" /> @import url('/css/styles.css'); In-Page Browser styles User styles
Selectors Group Class Id Pseudo-Classes
A:visited, A:hover Pseudo-Elements Content on fly Clearing float p:first-line CSS3 Selectors
Universal selector * { }
Element type selector body { }
Class selector .copy { }
Id selector #copy { }
Attribute selector Input [type=“submit”]{ }
Group Selector h1, .h1{ Font-size:60px; }
Combinations Li a img{ margin: 0 10px 0 10px; }
Li > a{ margin: 0 10px 0 10px; } ul + p{ background: yellow; }
Pseudo - Classes tr:first-child { color:black; } li:first-child { margin:
0; }
Pseudo - Elements p:first-letter { font-size: 40px; } p:first-line {
color: green; }
None
Browser Styles Browser default style sheets User Style
sheets – firefox plugin CSS Reset Box Model
None
Box-sizing: Content box Padding box Margin box
Border box demo
CSS: Typography Color of page elements Color for
links Font styling Family Color Size Line height Letter spacing Word spacing demo
CSS: Background Images Specify background Background positions
Background repeat Fixed or Scroll demo
Floats
http://www.yuiblog.com/blog/2010/09/27/clearfix -reloaded-overflowhidden-demystified demo
Display Inline Block Inline-block
Positioning Fixed Relative Absolute Static
Z-index demo
Fixed
Relative
Absolute
@stubbornella @jeresig @shanselman @addyosmani @elijahmanor @paul_irish @rmurphey @robconery @SlexAxton
Resources http://net.tutsplus.com/ http://alistapart.com/ http://www.smashingmagazine.com/ http://css-tricks.com/
http://css-weekly.com/ http://html5weekly.com/ http://diveintohtml5.info/ http://www.html5rocks.com/en/
None