KEMBAR78
Intro to front end development Basic | PPTX
Front End Developer
welcome
By: Abdulrahman Abdullah
twitter : @nfs056
email : nfs 056moc.liamg@
1 2 3
Outline
HTML:
>File Extension.
>DOM.
>Display
>Example.
>Activity.
CSS:
>CSS shortcut.
>Bringing CSS &
HTML together.
>Attribute & Value.
>Class & ID.
>Display.
Exercise:
>Media query
>Fluid pattern
>Column pattern.
#HTML
Hypertext Markup Language
#HTML Sir Tim Berners-Lee
Is an English engineer and computer scientist
create the World Wide Web
#HTML DOM
Document
#HTML
HTML Display
Example
Block-level
inline-level <em > <strong> <li >
#HTML
<a >
Tag <body> , <p> , <header> , <h 1>lo< , >lu< , >vid< , >… etc
#HTML
File Extension
#HTML
Example
Attribute & Value
<a href=”top 10lmth.”a/<seivoM taerG>>
attribute valueequals
sign
#HTML
#CSS
Cascading style sheet
#CSS
Bringing
CSS
&
HTML
together
Inline
Tag
Link File
#CSS
Selector
#CSS
Class VS ID
Source : CSS: The Definitive Guide (Book)
#CSS
Attribute & Value
Thinking of boxes
● Everything in a webpage is a box ! Always think of boxes.
Box Model
9Important CSS properties
● Display
● Width & height
● Float
● Color
● Font
● Background
● Margin
● Padding
● Border
Resource
#CSS CSS Display
Block
inline inline-block
flex elementelement element
inline-flex element element element
OR
#CSS
>flexbox is a layout-based add-on to css 3.
>ease to use and well support.
>flexbox is based on the relationship
between a parent layout container and it’s
flexible child layout.
Flexbox
#CSS
Flex-Direction e.g
Why Responsive?
“Every device
has different
screen size, use
viewport to
match the device
dimensions”
Ex
:
● The initial-scale property controls the zoom level when the page is
first loaded.
● The width controls the size of the viewport. It can be set to a specific
number of pixels like width=600 or to the special value device-width
● Add viewport in head tag .
● Use relative width: set sizes in terms of percentages
rather than pixels.
● Specify max-width.
● Set the box-sizing attribute to border-box for every
element.
● Different browsers work slightly differently.
Sometimes this causes different browsers to display
the same code differently, so test your code in
different browser.
Breakpoint & Media query
min-wdith dna max-width yreuq
Media query
Exercise ● Between 0 and 500🡪 Set the background color
to blue ot txet dna white
● Between 501 and 800🡪 Set the background
color to orange ot txet dna black
● For larger screen 🡪Set the background color to
white ot txet dna purple
Common Responsive Web Design Patterns
Mostly fluid
Fluid pattern
Codelab
Build web page contain 5
boxes with fluid pattern
Exercise
answer
Intro to front end development Basic

Intro to front end development Basic