Intro to HTML & CSS

Syed Sami
Syed SamiWeb Designer at Convertize um Convertize
Intro to HTML & CSS
Intro to HTML & CSS
What we’ll cover?
• What HTML and CSS is
• Structure of a HTML Document
• HTML editing software
• How to create a webpage
• Text, links, lists and images
• Various other HTML tags
• Adding CSS to a webpage
• Where to learn more
What is HTML?
Intro to HTML & CSS
Hyper Text
Markup Language
Hypertext is text
which contains links to other texts.
Markup languages are designed for the
processing, definition and presentation of
text. A markup language is to define the
visual elements of the web page.
Why do we need HTML?
• To define the structure of a web page
(HTML is the Skeleton of any modern
website)
• To add contents to our page
(text, pictures, videos etc…)
• To link pages to one another in order to
build an entire website
What is CSS?
HTML HTML+CSS
Cascading
Style Sheets
Cascading means
that styles can fall
from one style
sheet to another,
enabling multiple
style sheets to be
used on one HTML
document.
Why do we need CSS?
• Allows us to style any web page
• CSS describes how HTML elements should
be displayed
• Because of its cascading nature it allows
you to overwrite any previously defined
rules
Front-end Technologies
3 Awesome Front-end
Technologies
HTML
The structure of a web page
CSS
The styling of a web page
JavaScript
Makes a web page interactive
HTML + CSS + JavaScript = Black Magic
How does a
webpage work?
HTML + CSS = Source Code
User-friendly visible result
Intro to HTML & CSS
How to view the page
source?
Right Click
Select View page
source from the
dropdown menu
Page source example
How to inspect page
elements?
Right Click
Select Inspect
from the
dropdown menu
Page source example
Google Chrome Inspector in ACTION
• A programming software
(but every text editor will do)
...
• Your file, named in .html
→ my-own-page.html
• A browser, to display your page.
What do we need?
• FileZilla to upload the page to a server
(FileZilla or CyberDuck)
What do we need?
Intro to HTML & CSS
Intro to HTML & CSS
Coding correctly maximizes the chance
to have your page displayed correctly on
most of the platforms!
Intro to HTML & CSS
Intro to HTML & CSS
Email Clients
the late runners
• Think about mail clients as
even-less-compliant browsers.
Responsive Design
• Adapts to different screen sizes
• One version for all the devices that
supports HTML and other modern web
technologies
Intro to HTML & CSS
Now its easier than ever to
create mobile apps using
HTML, CSS and JavaScript.
Mozilla's Firefox OS
Like every language, HTML
and CSS have rules and
standards.
HTML5 CSS3
Intro to HTML & CSS
A - Boxes principle
• A box into a box into a box… : HTML is like
Russian dolls.
• Each of those boxes is called a tag.
A - Boxes principle
HTML	DOCUMENT
HEAD BODY
TABLETITLE
CSS
PARAGRAPH
IMAGE
B - What is a tag?
• A tag is used to declare a specific type of
container or element.
• TAG STRUCTURE :
<name (attributes (style/css)) ... > [content] </name>
Example
• Code
<p align=“center” style=“font-size: 34px; color: red;”>
Hello World
</p>
• Result
Hello World !
C - A Basic Page
<!DOCTYPE html >
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-
8" />
<title>My page</title>
</head>
<body>
<p align=“center" style="font-size:14px; color:#c00;">Hello World
!</p>
</body>
</html>
Which	language	is	
used	→	HTML
The	documentHEAD - here:
- Special	characters
- Page	title
Body
→	CONTENT
(here	a	paragraph)
Hello World !
So… where is the CSS?
Method - 1
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-
8" />
<title>My page</title>
</head>
<body>
<p align="justify" style="font-size:14px;color:#c00;> Hello World
!</p>
</body>
</html>
<!doctype html>
<html>
<head>
<title>My page</title>
<style type="text/css">.
p {
font-size: 14px;
color: #c00;
text-align: center;
}
</style>.
</head>
<body>
<p>Hello World !</p>
</body>
</html>
Method - 2
<!doctype html>
<html>
<head>
<title>My page</title>
<link rel="stylesheet" type="text/css" href="my-style.css">.
</head>
<body>
<p>Hello World !</p>
</body>
</html> p {
font-size: 14px;
color: #c00;
text-align: justify;
}
my-style.css :
Method - 3
Intro to HTML & CSS
D – Popular HTML tags
• Heading
• Paragraph
• Anchor / Link
• Image
• Unordered List
• List Item
• Horizontal Rule
• Division
• Table
<h1> - <h6>
<p>
<a>
<img>
<ul>
<li>
<hr>
<div>
<table>
Intro to HTML & CSS
Intro to HTML & CSS
Intro to HTML & CSS
Intro to HTML & CSS
Time to talk about CSS
Intro to HTML & CSS
Intro to HTML & CSS
Intro to HTML & CSS
Intro to HTML & CSS
Hands-on Tutorial
Lets build a website and learn
making mistakes!
Intro to HTML & CSS
Intro to HTML & CSS
Intro to HTML & CSS
Intro to HTML & CSS
Step-1
• Create a folder named Hello [Syed]
• Fire up your code editor
• Write Hello World and save the file as
index.html
• Create another file named style.css
Basic HTML Structure
Let’s give a title to our webpage
Comments
Populate Body : Header section
Populate Body : About Me section
Contact
Form
Image Gallery Section
Horizontal Row
Newsletter Section
Footer Section
Closing Body and HTML
tags
Intro to HTML & CSS
Intro to HTML & CSS
Styling Header
section
Padding: 100px
Padding: 100px
Styling About me
section
Intro to HTML & CSS
Intro to HTML & CSS
Intro to HTML & CSS
Intro to HTML & CSS
Intro to HTML & CSS
Intro to HTML & CSS
Intro to HTML & CSS
Link an external
style sheet
e.g. style.css
Align Center
the page
External Font
HTML
CSS
HTML
Intro to HTML & CSS
Intro to HTML & CSS
Intro to HTML & CSS
Common
Styles
Styling
Button
Intro to HTML & CSS
Intro to HTML & CSS
Styling
Button
Styling
Button
Styling
Button
Linking
Button
Intro to HTML & CSS
Styling
Button
Styling
Header section
Intro to HTML & CSS
Styling
Header section
Styling
Header section
Intro to HTML & CSS
Intro to HTML & CSS
Styling
About me section
Styling
About me section
Intro to HTML & CSS
Styling
Contact form section
Styling
Contact form section
Styling
Contact form section
Mobile Layout
with Table tag
Mobile Layout
with <div> tag
Styling
Gallery section
hr section
Newsletter
section
Styling
Contact form section
https://codepen.io/sami3d/pen/YZbGmq
Intro to HTML & CSS
Intro to HTML & CSS
Intro to HTML & CSS
Intro to HTML & CSS
Intro to HTML & CSS
Why do they get rendered
differently?
• They are hosted in a 3rd party server
• Because of security issues
• Different email clients uses different
rendering engine
Solution?
• We design them considering its 1995!!
• We use tables
• We use inline css
• We avoid complicated Layouts
• We avoid HTML5 and CSS3
Intro to HTML & CSS
Nothing !
<table width="300" height="200" align="center">
<tr style="font-size:18px;color:#000000;" align="center">
<td width="100" style="background-color:#CC0000;">Holly</td>
<td style="background-color:#00CCFF, color:#FFFFFF;">Molly !</td>
</tr>
</table>
Holly Molly !
Some tips:
• Use of <table> instead of <div>
• Sliced images have to have
style="display:block;".
• Any special character in text (é, à, “, €, …)
should be encoded :
é → &eacute; OR € → &euro;
Some tips:
• CSS style has to be mainly inline (inside the
tag’s style=" " attribute). If there is some CSS
in the <head> section, it’s a best practice to
copy and put them at the bottom again.
Some tips:
• “Pixels” (image of 1x1 pixel),
like any content, has to be
before closing </body></html>
tags
Intro to HTML & CSS
Intro to HTML & CSS
THE NET NINJA
Interactive Lessons
Video Tutorials
Intro to HTML & CSS
Things we have discussed
• What HTML and CSS is
• Structure of a HTML Document
• HTML editing software
• How to create a webpage
• Text, links, lists and images
• Various other HTML tags
• Adding CSS to a webpage
• Adding JavaScript to a webpage
• Where to learn more
Intro to HTML & CSS
1 von 142

Recomendados

Intro to HTML and CSS basics von
Intro to HTML and CSS basicsIntro to HTML and CSS basics
Intro to HTML and CSS basicsEliran Eliassy
2.3K views133 Folien
Introduction to Cascading Style Sheets (CSS) von
Introduction to Cascading Style Sheets (CSS)Introduction to Cascading Style Sheets (CSS)
Introduction to Cascading Style Sheets (CSS)Chris Poteet
11.7K views27 Folien
(Fast) Introduction to HTML & CSS von
(Fast) Introduction to HTML & CSS (Fast) Introduction to HTML & CSS
(Fast) Introduction to HTML & CSS Dave Kelly
3.4K views23 Folien
Basic Details of HTML and CSS.pdf von
Basic Details of HTML and CSS.pdfBasic Details of HTML and CSS.pdf
Basic Details of HTML and CSS.pdfKalyani Government Engineering College
644 views10 Folien
Html coding von
Html codingHtml coding
Html codingBriana VanBuskirk
5.1K views56 Folien
Css von
CssCss
CssHemant Saini
2K views15 Folien

Más contenido relacionado

Was ist angesagt?

Html / CSS Presentation von
Html / CSS PresentationHtml / CSS Presentation
Html / CSS PresentationShawn Calvert
78.8K views96 Folien
HTML & CSS Masterclass von
HTML & CSS MasterclassHTML & CSS Masterclass
HTML & CSS MasterclassBernardo Raposo
11.1K views115 Folien
CSS Basics von
CSS BasicsCSS Basics
CSS BasicsWordPress Memphis
25K views40 Folien
HTML5: features with examples von
HTML5: features with examplesHTML5: features with examples
HTML5: features with examplesAlfredo Torre
24.8K views100 Folien
Cascading style sheets (CSS) von
Cascading style sheets (CSS)Cascading style sheets (CSS)
Cascading style sheets (CSS)Harshita Yadav
3.9K views14 Folien
HTML and CSS crash course! von
HTML and CSS crash course!HTML and CSS crash course!
HTML and CSS crash course!Ana Cidre
2.7K views29 Folien

Was ist angesagt?(20)

Html / CSS Presentation von Shawn Calvert
Html / CSS PresentationHtml / CSS Presentation
Html / CSS Presentation
Shawn Calvert78.8K views
HTML5: features with examples von Alfredo Torre
HTML5: features with examplesHTML5: features with examples
HTML5: features with examples
Alfredo Torre24.8K views
Cascading style sheets (CSS) von Harshita Yadav
Cascading style sheets (CSS)Cascading style sheets (CSS)
Cascading style sheets (CSS)
Harshita Yadav3.9K views
HTML and CSS crash course! von Ana Cidre
HTML and CSS crash course!HTML and CSS crash course!
HTML and CSS crash course!
Ana Cidre2.7K views
How Cascading Style Sheets (CSS) Works von Amit Tyagi
How Cascading Style Sheets (CSS) WorksHow Cascading Style Sheets (CSS) Works
How Cascading Style Sheets (CSS) Works
Amit Tyagi79.4K views
HTML CSS JS in Nut shell von Ashwin Shiv
HTML  CSS JS in Nut shellHTML  CSS JS in Nut shell
HTML CSS JS in Nut shell
Ashwin Shiv251 views
Introduction to HTML and CSS von danpaquette
Introduction to HTML and CSSIntroduction to HTML and CSS
Introduction to HTML and CSS
danpaquette300 views
Cascading Style Sheets (CSS) help von casestudyhelp
Cascading Style Sheets (CSS) helpCascading Style Sheets (CSS) help
Cascading Style Sheets (CSS) help
casestudyhelp1.8K views
Complete Lecture on Css presentation von Salman Memon
Complete Lecture on Css presentation Complete Lecture on Css presentation
Complete Lecture on Css presentation
Salman Memon9.9K views
Introduction to HTML von Ajay Khatri
Introduction to HTMLIntroduction to HTML
Introduction to HTML
Ajay Khatri410 views

Similar a Intro to HTML & CSS

Introducing Cascading Style Sheets von
Introducing Cascading Style SheetsIntroducing Cascading Style Sheets
Introducing Cascading Style SheetsSt. Petersburg College
3.3K views37 Folien
Thinkful - Frontend Crash Course - Intro to HTML/CSS von
Thinkful - Frontend Crash Course - Intro to HTML/CSSThinkful - Frontend Crash Course - Intro to HTML/CSS
Thinkful - Frontend Crash Course - Intro to HTML/CSSTJ Stalcup
187 views40 Folien
Web development using HTML and CSS von
Web development using HTML and CSSWeb development using HTML and CSS
Web development using HTML and CSSSiddhantSingh980217
282 views16 Folien
Html:css crash course (4:5) von
Html:css crash course (4:5)Html:css crash course (4:5)
Html:css crash course (4:5)Thinkful
291 views44 Folien
FFW Gabrovo PMG - HTML von
FFW Gabrovo PMG - HTMLFFW Gabrovo PMG - HTML
FFW Gabrovo PMG - HTMLToni Kolev
691 views40 Folien
Html workshop 1 von
Html workshop 1Html workshop 1
Html workshop 1Lee Scott
464 views15 Folien

Similar a Intro to HTML & CSS(20)

Thinkful - Frontend Crash Course - Intro to HTML/CSS von TJ Stalcup
Thinkful - Frontend Crash Course - Intro to HTML/CSSThinkful - Frontend Crash Course - Intro to HTML/CSS
Thinkful - Frontend Crash Course - Intro to HTML/CSS
TJ Stalcup187 views
Html:css crash course (4:5) von Thinkful
Html:css crash course (4:5)Html:css crash course (4:5)
Html:css crash course (4:5)
Thinkful291 views
FFW Gabrovo PMG - HTML von Toni Kolev
FFW Gabrovo PMG - HTMLFFW Gabrovo PMG - HTML
FFW Gabrovo PMG - HTML
Toni Kolev691 views
Html workshop 1 von Lee Scott
Html workshop 1Html workshop 1
Html workshop 1
Lee Scott464 views
Web design-workflow von Peter Kaizer
Web design-workflowWeb design-workflow
Web design-workflow
Peter Kaizer1.6K views
Html css crash course may 11th, atlanta von Thinkful
Html css crash course may 11th, atlantaHtml css crash course may 11th, atlanta
Html css crash course may 11th, atlanta
Thinkful189 views
Advanced Web Programming Chapter 8 von RohanMistry15
Advanced Web Programming Chapter 8Advanced Web Programming Chapter 8
Advanced Web Programming Chapter 8
RohanMistry1519 views
Web technologies-course 02.pptx von Stefan Oprea
Web technologies-course 02.pptxWeb technologies-course 02.pptx
Web technologies-course 02.pptx
Stefan Oprea9 views
Introduction to HTML von yht4ever
Introduction to HTMLIntroduction to HTML
Introduction to HTML
yht4ever927 views
Introduction to HTML von yht4ever
Introduction to HTMLIntroduction to HTML
Introduction to HTML
yht4ever1.9K views

Último

Design System in Figma A to Z.pdf von
Design System in Figma A to Z.pdfDesign System in Figma A to Z.pdf
Design System in Figma A to Z.pdfAtiqur Rahaman
18 views16 Folien
Big Deal Curmel Moton Shirt von
Big Deal Curmel Moton ShirtBig Deal Curmel Moton Shirt
Big Deal Curmel Moton Shirtbrandshop1
8 views1 Folie
My Creative Resume DIAPOS.pptx von
My Creative Resume DIAPOS.pptxMy Creative Resume DIAPOS.pptx
My Creative Resume DIAPOS.pptxBrayanQuispe23
15 views82 Folien
Sudden Deafness Design Document von
Sudden Deafness Design DocumentSudden Deafness Design Document
Sudden Deafness Design Documentwyfangherman
38 views19 Folien
Benzodiazepines--Medicinal Chemistry von
Benzodiazepines--Medicinal ChemistryBenzodiazepines--Medicinal Chemistry
Benzodiazepines--Medicinal ChemistryNarminHamaaminHussen
6 views32 Folien
Designing Effective AR Experiences von
Designing Effective AR ExperiencesDesigning Effective AR Experiences
Designing Effective AR ExperiencesKumar Ahir
5 views46 Folien

Último(20)

Design System in Figma A to Z.pdf von Atiqur Rahaman
Design System in Figma A to Z.pdfDesign System in Figma A to Z.pdf
Design System in Figma A to Z.pdf
Atiqur Rahaman18 views
Big Deal Curmel Moton Shirt von brandshop1
Big Deal Curmel Moton ShirtBig Deal Curmel Moton Shirt
Big Deal Curmel Moton Shirt
brandshop18 views
Sudden Deafness Design Document von wyfangherman
Sudden Deafness Design DocumentSudden Deafness Design Document
Sudden Deafness Design Document
wyfangherman38 views
Designing Effective AR Experiences von Kumar Ahir
Designing Effective AR ExperiencesDesigning Effective AR Experiences
Designing Effective AR Experiences
Kumar Ahir5 views
Doing Footwear - Footwear Factory von Doing Footwear
Doing Footwear - Footwear FactoryDoing Footwear - Footwear Factory
Doing Footwear - Footwear Factory
Doing Footwear10 views
217 Drive - All on upper.pptx von vidstor282
217 Drive - All on upper.pptx217 Drive - All on upper.pptx
217 Drive - All on upper.pptx
vidstor28214 views
TISFLEET WEB DESIGN PROJECT von Rabius Sany
TISFLEET WEB DESIGN PROJECTTISFLEET WEB DESIGN PROJECT
TISFLEET WEB DESIGN PROJECT
Rabius Sany38 views
Oregon Ducks 4 Spencer Webb Hoodie von brandshop1
Oregon Ducks 4 Spencer Webb HoodieOregon Ducks 4 Spencer Webb Hoodie
Oregon Ducks 4 Spencer Webb Hoodie
brandshop112 views

Intro to HTML & CSS