SlideShare a Scribd company logo
HTML, CSS, Bootstrap
Framework
What we will talk
about:
Front-end vs Back-end coding at bswift
Defining HTML, CSS and Javascript
How the client stylesheets work
Examples
Tools
Static Pages / Dynamic Pages
A static website is a group of self-contained,
individual pages (or page), sent to the browser
from the server one-page-at-a-time.
SERVER
page.html page.html page.html
Dyamic web content is built when it is
requested, by the user directly, or
programmatically while a user is on a page
(e.g., facebook updates).
Most websites contain both static and dynamic
SERVER page.html
SQL databases
.net
HTML
SERVER
REQUEST
HTML
CSS
Javas
cript
SQL databases
.net
Can I have
a webpage,
please?
back-end “recipe”
front-end
SERVER
RESPONSE
thanks!
Server-side / Client-
side aka
Back End / Front-
end
Client-side (front-end) coding includes HTML, CSS
and Javascript. This just means that our code will
be downloaded from the server and then compiled
entirely in the browser.
SERVER
page.html
.asp
SQL
etc
.net
BROWSER
style.css
script.js
HTML, CSS,
Javascript
Three layers of web
design:
Structure, Style, Behavior
STRUCTURE
HTML
markup Site
planning
PRESENTATION
CSS
Imagery
BEHAVIOR
Javascript
HTML
Hyper Text
+
Markup Language
Hyper Text
Markup Language
A markup language is
a set of markup tags.
The purpose of the tags is to
group and describe page
content.
Markup Language
Without any markup to give your content structure,
the browser renders unformatted and unstyled text,
also known as “plain text”.
html css js bootstrap framework thisis i
Markup Language
HTML tags give structure and meaning to your content.
“Semantic markup” refers to the use of meaningful tags to
describe content (e.g. using header tags for header
content).
Markup Language
Once your content is marked up, the browser applies built-
in default styles to the tags. While you can override these
styles with css, your marked up, non-css styled document
should be readable and have a clear hierarchy.
doctype
html
head
body
<!DOCTYPE
html>
EXCEPTION
The doctype is not actually a tag,
but a declaration, telling the
browser what kind of html you are
using. The doctype above declares
HTML 5.
<html></html>
The <html> element
defines the whole HTML
document.
<head></head>
The <head> element contains special
elements that instruct the browser
where to find stylesheets, provide
meta info, and more.
<body></body>
The <body> element contains
the document content (what is
shown
inside the browser window).
Nesting
The use of our first three tags (html, head and body),
introduces and important concept: Nesting, which is when
tags “wrap” other tags. When you create markup, you
should indicate nesting by indenting the nested tags with 2
spaces (preferred) or a tab.
<html>
<head> </head>
<body>
<h1></h1>
<p></p>
</body>
</html>
Document Hierarchy: Parents, children and siblings
Just as in a genealogy tree, the family hierarchy is described
in terms of relationships. All elements in the document have
a parent (up to ‘document’, which is at the top), and may
have children (nested inside) or siblings (placed alongside).
<parent x>
<child and sibling y> </child and sibling
y>
<child and sibling z> </child and sibling
z>
</parent x>
The ‘address’ of an element
The document hierarchy provides us with an ‘address’ for
each element.
in the div with class “client-text-container”, make all of the
h2 elements orange and 24px.
HTML Elements
Anatomy of an
Element
<tag>Content</tag>
An HTML element includes both
the HTML tag and everything
between
the tag (the content).
Anatomy of an
Element
<tag>Content</tag>
Tags normally come in pairs. The
first tag is the start tag, and the
second tag is the end tag.
Anatomy of an
Element
<h1>Main Headline</h1>
HTML has a defined set of tag
names (also called keywords)
that the browser understands.
The essential element
tags
Primary
Structure
html
head
body
Head
Elements
title
meta
link
Structural
Elements
(block)
p
br
h1 –
h6 ul
ol
a
img
Formatting
Elements
(inline)
em
i
strong
b
q
blockquote
(span)
eSpace
Nested Tags
eSpace
Basic Structure
Head
eSpace
Preview
eSpace
Body
eSpace
Preview
eSpace
Headers
eSpace
Preview
eSpace
Paragraph
eSpace
Preview
eSpace
Lists
eSpace
Preview
eSpace
Div
eSpace
Preview
eSpace
Block elements
eSpace
Inline elements
eSpace
Preview
eSpace
More Inline elements
eSpace
Preview
eSpace
Anatomy of an
Element
<html lang=”en”></html>
Most elements can have attributes,
which provides additional
information about the element.
Anatomy of an
Element
<div class=”left-nav”></div>
Attributes always follow the same
format: name=”value”. You can
use either single or double
quotes.
The essential
attributes
link <link rel=”stylesheet” type-”text/css”
href=”stylesheet/styles.css”>
img <img src=”images/image.jpg”
alt=”Sam”>
a <a href=”http://colum.edu”>My school</a>
CSS
Cascading
+
Style Sheet
A stylesheet is a set of rules defining
how an html element will be
“presented” in the browser.
These rules are targeted to
specific elements in the html
document.
The
Stylesheet
The “cascade” part of CSS is a set of
rules for resolving conflicts with multiple
CSS rules applied to the same elements.
For example, if there are two rules
defining the color or your h1 elements,
the rule that comes last in the cascade
order will “trump” the other.
The Cascade
Browser
stylesheet
Linked (external) stylesheet
Embedded (internal)
stylesheet Inline (internal)
low
importance
high
importance
html css js bootstrap framework thisis i
Most elements will inherit many style
properties from their parent elements by
default.
HTML
<body>
<div>
<ul>
<li></li>
</ul>
</div>
</body>
relationship
parent
parent
parent
of site
of ul and li, child
of li, child of
div
of body
and body
child of ul, div, and body
Inheritance
body
make the paragraph 16px, Verdana,
red
p
make the paragraph blue
16px, Verdana,
blue
Inheritance
Shortly after styling your first html elements,
you will find yourself wanting more control
over where your styles are applied.
This is where specificity comes in.
Specificity refers to how specific your selector
is in naming an element.
Specificity
body
make the paragraph 16px, Verdana, red
p
make the paragraph blue
p.pink
make the paragraph
pink
Specificity
HTML
<div id=”plan-2323”>
is some text.</p>
this text.</p>
<p>Here
<p>Hide
<div>
<div id=”plan-2323”>
<p>Here is some text.</p>
<p class=”hideclass”>Hide this text.</p>
<div>
CSS
#plan-2323.hideclass {display: none}
html css js bootstrap framework thisis i
CSS Syntax
Syntax = the rules for how to write the
language
Three terms for describing your
styles:
CSS rule
CSS
selector
CSS
declaration
Every style is defined by a selector and
a declaration. The declaration contains at
least one property/value pair.Together they
are called a CSS Rule.
selector {property: value;}
declaration
CSS Rule
body {font-family: Arial, Helvetica}
p {color: #666666}
h1 {font-size: 24px}
a{color: blue}
The selector associates css rules
with HTML elements.
CSS
Selector
p {
color: red
}
The selector is typed in front of the
declaration, with a space separating it and the
opening curly-bracket (aka curly-brace).
Typically, extra spaces and returns are added
as shown for the sake of readability.
CSS
Selector
h1,h2,h3,h4 {
font-weight: bold
}
You can apply styles to multiple selectors in
the same rule by separating the selectors with
commas.
CSS
Selector
p {
property: value
}
The declaration is always defined in a
property/ value pair. The two are separated by
a colon.
How you define the properties will affect
how HTML elements are displayed.
CSS
Declaration
p {
font-family: Arial, sans-serif;
font-size: 14px;
color: #666666;
}
You can apply multiple declarations to a
selector(s) by separating the delcarations
with semi-colons.
CSS
Declaration
CSS Selectors
p Type (element)
# ID
. Class
body {declaration}
p {declaration}
h1 {declaration}
ul {declaration}
The simplest selector is the type selector,
which targets an html element by name.
Type (element) Selectors
Element Selector
eSpace
Preview
eSpace
The essential selector types
(elements)
Primary Body Formatting
Structure Elements Elements
html p em
body br i
h1 – h6 strong
ul b
ol q
a blockquote
img span
div
CSS
#logo {declaration}
HTML
<img id=”logo” src=”” alt=””>
An ID is an html attribute that is added to
your html markup. You reference that ID in
your css with a hash.
ID
Selectors
ID Selector
eSpace
Preview
eSpace
CSS
.ingredients {declaration}
HTML
<ul class=”ingredients”>
A class is an html attribute that is added to
your html markup. You reference that ID in
your css with a period.
Class
Selectors
Class Selector
eSpace
Preview
eSpace
IDs vs
Classes
The most important difference between
IDs and classes is that there can be only
one ID on a page, but multiple classes.
An ID is more specific than a class.
An element can have both an ID
and multiple classes.
IDs vs
Classes
ID: #344-34-4344
Class: Male
Class: Employee
ID: #123-54-9877
Class: Female
Class: Employee
2 Rules
eSpace
Preview
eSpace
Descendant Selectors
CSS
#sidebar .author {declaration}
HTML
<div id=”sidebar”>
<p class=”author”></p>
</div>
A space between two selectors indicates a
descendant selector. In the example above,
the style is targeted to an element with the
class “author” inside the id “sidebar”.
Descendent Selector
eSpace
Preview
eSpace
Multiple classes
CSS
.ingredients.time {declaration}
time”>
HTML
<div class=”ingredients
<h1></h1>
</div>
Elements can have multiple classes, giving
you more control. The are written in the CSS
in the exact order they appear in the html,
with no spaces.
Box Model (Block)
eSpace
Box Model (Block)
eSpace
Box Model (Block)
eSpace
Preview
eSpace
Margin collapse
eSpace
Margin collapse
eSpace
Box Model (Inline)
eSpace
Box Model (Inline)
eSpace
Preview
eSpace
Relative Position
eSpace
Absolute Position
eSpace
Fixed Position
eSpace
Float
eSpace
Float
eSpace
Bootstrap is Front-end Framework
HTML, CSS, and JS framework for
developing responsive, mobile first projects on the
web.
www.getbootstrap.co
m
Bootstrap is Ready-to-use Web Elements
HTML / CSS elements for button, form,
table, image, navbar, label, progress bar,
alert etc.
EXAMPLES
of Bootstrap Elements
more EXAMPLES
of Bootstrap Elements
Websites created by Bootstrap
http://unroll.me
Websites created by Bootstrap
www.fliplingo.com
Why Bootstrap?
● Save 100+ hours of coding
● Easy to use web elements
● Quick responsive prototype /
website
● Great documentation
Bootstrap Package
● CSS - bootstrap.css
● JS - bootstrap.js
● Icon Fonts - glyphicons-halflings-
regular.ttf
Bootstrap CDN
www.bootstrapcdn.co
m
Bootstrap Playground
http://bit.ly/bs-pl
ay
Bootstrap Components
Start
Workshop
What is Grid in web design?
12
Grid
What is Grid in web design?
1 2 3 4 5 6 7 8 9 10 11 12
4 Grids x 3
Columns
= 12 Grids
What is Grid in web design?
1 2 3 4 5 6 7 8 9 10 11 12
4 Grid 4 Grid 4 Grid
Bootstrap Grid
12 Responsive
Grid
Grid Overlay
for Bootstrap & Foundation
http://bit.ly/grid-overl
ay
4 Sizes of Bootstrap Grid
Size Name Screen Size CSS Class
Extra Small Devices
(Phone)
0 - 767 px .col-xs-1 ~ .col-xs-12
Small Devices (Tablet) 768 - 991 px .col-sm-1 ~ .col-sm-12
Medium Devices (Desktop) 992 - 1219 px .col-md-1 ~ .col-md-12
Large Devices
(Large screen
desktop)
1200px + .col-lg-1 ~ .col-lg-12
4 Sizes of Bootstrap Grid
Size Name Screen Size CSS Class
Extra Small Devices
(Phone)
0 - 767 px .col-xs-1 ~ .col-xs-12
Small Devices (Tablet) 768 - 991 px .col-sm-1 ~ .col-sm-12
Medium Devices (Desktop) 992 - 1219 px .col-md-1 ~ .col-md-12
Large Devices
(Large screen
desktop)
1200px + .col-lg-1 ~ .col-lg-12
How many grids in each box?
Bootstrap Grid Example
http://bit.ly/bs-agency
Bootstrap Grid Example
4 grids x 3 Columns
Bootstrap Grid Example
Bootstrap Grid Example
Bootstrap Grid Example 2
How many grids in each box?
Bootstrap Grid Example 2
6 grids x 2 Columns
Bootstrap Grid Example 2
Bootstrap Grid Example 2
Bootstrap Row
1 Row = 12 Grids
Bootstrap Row
3 Rows
Bootstrap Row Example
Bootstrap Row Example
Bootstrap Responsive Grid
Columns will stack when responsive
Bootstrap Responsive Grid
1 2 3 1
2
3
Desktop
Mobile
Columns stack on mobile
Bootstrap Grid Workshop
3 Easy Steps:
1. Add
container
2. Add row
3. Add columns
Bootstrap Grid Workshop
http://bit.ly/bs-busine
ss

More Related Content

Similar to html css js bootstrap framework thisis i (20)

PPTX
CSS
Akila Iroshan
 
PDF
Introduction to HTML and CSS
Mario Hernandez
 
PDF
Web Design & Development - Session 2
Shahrzad Peyman
 
PPTX
Introduction to Web Development.pptx
GDSCVJTI
 
PPTX
Introduction to Web Development.pptx
Alisha Kamat
 
PPTX
Introduction to Web Development.pptx
Alisha Kamat
 
PDF
GDI Seattle Intro to HTML and CSS - Class 1
Heather Rock
 
PPT
html and css- 23091 3154 458-5d4341a0.ppt
ahoveida
 
PDF
Girl Develop It Cincinnati: Intro to HTML/CSS Class 2
Erin M. Kidwell
 
PPTX
Html-Prabakaran
DrPrabakaranPerumal
 
PDF
CSS Foundations, pt 1
Shawn Calvert
 
PPTX
HTML and CSS Basics
Lindsey Meadows
 
PPTX
Lab#1 - Front End Development
Walid Ashraf
 
PDF
Html & Html5 from scratch
Ahmad Al-ammar
 
PPTX
Web Development - Lecture 5
Syed Shahzaib Sohail
 
PPT
Unit 2-CSS & Bootstrap.ppt
TusharTikia
 
PPT
ppt.ppt
Sana903754
 
PPTX
HTML, CSS BASICS OF HTML AND CSS USED IN WEBSITE.pptx
shahmirmirza30
 
PPT
Presentation on html, css
Aamir Sohail
 
Introduction to HTML and CSS
Mario Hernandez
 
Web Design & Development - Session 2
Shahrzad Peyman
 
Introduction to Web Development.pptx
GDSCVJTI
 
Introduction to Web Development.pptx
Alisha Kamat
 
Introduction to Web Development.pptx
Alisha Kamat
 
GDI Seattle Intro to HTML and CSS - Class 1
Heather Rock
 
html and css- 23091 3154 458-5d4341a0.ppt
ahoveida
 
Girl Develop It Cincinnati: Intro to HTML/CSS Class 2
Erin M. Kidwell
 
Html-Prabakaran
DrPrabakaranPerumal
 
CSS Foundations, pt 1
Shawn Calvert
 
HTML and CSS Basics
Lindsey Meadows
 
Lab#1 - Front End Development
Walid Ashraf
 
Html & Html5 from scratch
Ahmad Al-ammar
 
Web Development - Lecture 5
Syed Shahzaib Sohail
 
Unit 2-CSS & Bootstrap.ppt
TusharTikia
 
ppt.ppt
Sana903754
 
HTML, CSS BASICS OF HTML AND CSS USED IN WEBSITE.pptx
shahmirmirza30
 
Presentation on html, css
Aamir Sohail
 

Recently uploaded (20)

PPTX
Bitumen Emulsion by Dr Sangita Ex CRRI Delhi
grilcodes
 
PDF
Decision support system in machine learning models for a face recognition-bas...
TELKOMNIKA JOURNAL
 
PPTX
CST413 KTU S7 CSE Machine Learning Neural Networks and Support Vector Machine...
resming1
 
PDF
13th International Conference of Security, Privacy and Trust Management (SPTM...
ijcisjournal
 
PPTX
FSE_LLM4SE1_A Tool for In-depth Analysis of Code Execution Reasoning of Large...
cl144
 
PDF
Plant Control_EST_85520-01_en_AllChanges_20220127.pdf
DarshanaChathuranga4
 
PPT
دراسة حاله لقرية تقع في جنوب غرب السودان
محمد قصص فتوتة
 
PDF
Generative AI & Scientific Research : Catalyst for Innovation, Ethics & Impact
AlqualsaDIResearchGr
 
PPT
SF 9_Unit 1.ppt software engineering ppt
AmarrKannthh
 
PDF
NFPA 10 - Estandar para extintores de incendios portatiles (ed.22 ENG).pdf
Oscar Orozco
 
PDF
Rapid Prototyping for XR: Lecture 5 - Cross Platform Development
Mark Billinghurst
 
PDF
Rapid Prototyping for XR: Lecture 6 - AI for Prototyping and Research Directi...
Mark Billinghurst
 
PDF
Designing for Tomorrow – Architecture’s Role in the Sustainability Movement
BIM Services
 
PDF
FSE-Journal-First-Automated code editing with search-generate-modify.pdf
cl144
 
PDF
Rapid Prototyping for XR: Lecture 4 - High Level Prototyping.
Mark Billinghurst
 
PDF
How to Buy Verified CashApp Accounts IN 2025
Buy Verified CashApp Accounts
 
PDF
تقرير عن التحليل الديناميكي لتدفق الهواء حول جناح.pdf
محمد قصص فتوتة
 
PDF
May 2025: Top 10 Read Articles in Data Mining & Knowledge Management Process
IJDKP
 
PDF
June 2025 Top 10 Sites -Electrical and Electronics Engineering: An Internatio...
elelijjournal653
 
PDF
Python Mini Project: Command-Line Quiz Game for School/College Students
MPREETHI7
 
Bitumen Emulsion by Dr Sangita Ex CRRI Delhi
grilcodes
 
Decision support system in machine learning models for a face recognition-bas...
TELKOMNIKA JOURNAL
 
CST413 KTU S7 CSE Machine Learning Neural Networks and Support Vector Machine...
resming1
 
13th International Conference of Security, Privacy and Trust Management (SPTM...
ijcisjournal
 
FSE_LLM4SE1_A Tool for In-depth Analysis of Code Execution Reasoning of Large...
cl144
 
Plant Control_EST_85520-01_en_AllChanges_20220127.pdf
DarshanaChathuranga4
 
دراسة حاله لقرية تقع في جنوب غرب السودان
محمد قصص فتوتة
 
Generative AI & Scientific Research : Catalyst for Innovation, Ethics & Impact
AlqualsaDIResearchGr
 
SF 9_Unit 1.ppt software engineering ppt
AmarrKannthh
 
NFPA 10 - Estandar para extintores de incendios portatiles (ed.22 ENG).pdf
Oscar Orozco
 
Rapid Prototyping for XR: Lecture 5 - Cross Platform Development
Mark Billinghurst
 
Rapid Prototyping for XR: Lecture 6 - AI for Prototyping and Research Directi...
Mark Billinghurst
 
Designing for Tomorrow – Architecture’s Role in the Sustainability Movement
BIM Services
 
FSE-Journal-First-Automated code editing with search-generate-modify.pdf
cl144
 
Rapid Prototyping for XR: Lecture 4 - High Level Prototyping.
Mark Billinghurst
 
How to Buy Verified CashApp Accounts IN 2025
Buy Verified CashApp Accounts
 
تقرير عن التحليل الديناميكي لتدفق الهواء حول جناح.pdf
محمد قصص فتوتة
 
May 2025: Top 10 Read Articles in Data Mining & Knowledge Management Process
IJDKP
 
June 2025 Top 10 Sites -Electrical and Electronics Engineering: An Internatio...
elelijjournal653
 
Python Mini Project: Command-Line Quiz Game for School/College Students
MPREETHI7
 
Ad

html css js bootstrap framework thisis i