SlideShare a Scribd company logo
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

More Related Content

What's hot (20)

PDF
Introduction to HTML and CSS
Mario Hernandez
 
PDF
Introduction to HTML5
Gil Fink
 
PPTX
Html coding
Briana VanBuskirk
 
PDF
Html / CSS Presentation
Shawn Calvert
 
PDF
Intro to HTML and CSS basics
Eliran Eliassy
 
PPTX
html-css
Dhirendra Chauhan
 
PPTX
Html5 tutorial for beginners
Singsys Pte Ltd
 
PPT
CSS for Beginners
Amit Kumar Singh
 
KEY
HTML CSS & Javascript
David Lindkvist
 
PPTX
Introducing Cascading Style Sheets
St. Petersburg College
 
PPT
Advanced Cascading Style Sheets
fantasticdigitaltools
 
PPTX
CSS
Akila Iroshan
 
PPTX
Images and Tables in HTML
Aarti P
 
PPT
CSS Basics
WordPress Memphis
 
PDF
HTML5: features with examples
Alfredo Torre
 
PPTX
Introduction to CSS
Folasade Adedeji
 
PPT
Introduction to Cascading Style Sheets (CSS)
Chris Poteet
 
PPTX
Html & CSS
JainilSampat
 
Introduction to HTML and CSS
Mario Hernandez
 
Introduction to HTML5
Gil Fink
 
Html coding
Briana VanBuskirk
 
Html / CSS Presentation
Shawn Calvert
 
Intro to HTML and CSS basics
Eliran Eliassy
 
Html5 tutorial for beginners
Singsys Pte Ltd
 
CSS for Beginners
Amit Kumar Singh
 
HTML CSS & Javascript
David Lindkvist
 
Introducing Cascading Style Sheets
St. Petersburg College
 
Advanced Cascading Style Sheets
fantasticdigitaltools
 
Images and Tables in HTML
Aarti P
 
CSS Basics
WordPress Memphis
 
HTML5: features with examples
Alfredo Torre
 
Introduction to CSS
Folasade Adedeji
 
Introduction to Cascading Style Sheets (CSS)
Chris Poteet
 
Html & CSS
JainilSampat
 

Similar to Intro to HTML & CSS (20)

PPT
Introduction css
sagaroceanic11
 
PPT
Introduction css
sagaroceanic11
 
PPTX
wd project.pptx
dsffsdf1
 
PPTX
HTML5_CSS_Lesson foe grade 7 students_Plan.pptx
shahana011
 
PDF
Punch it Up with HTML and CSS
mtlgirlgeeks
 
PDF
Girls Can Code East Brunswick Workshop Slides
Kayla Leung
 
PDF
Thinkful - Frontend Crash Course - Intro to HTML/CSS
TJ Stalcup
 
PDF
slidesgo-mastering-html-and-css-a-comprehensive-guide-to-tags-and-elements-20...
MrunmayiLohakare
 
PPT
Basic HTML/CSS
Chris Heiden
 
PDF
HTML+CSS: how to get started
Dimitris Tsironis
 
PPTX
Introduction to HTML and CSS
danpaquette
 
PDF
3 coding101 fewd_lesson3_your_first_website 20210105
John Picasso
 
PPTX
Rakshat bhati
Rakshat bhati
 
PDF
Introduction to HTML-CSS-Javascript.pdf
DakshPratapSingh1
 
PPTX
Basics of Front End Web Dev PowerPoint
Sahil Gandhi
 
PPTX
Web development using HTML and CSS
SiddhantSingh980217
 
PDF
Styling Your Web Pages with Cascading Style Sheets / EDU course / University ...
Patrick Lauke
 
PPT
ppt.ppt
Sana903754
 
PPTX
GDG On Campus NBNSCOE Web Workshop Day 1 : HTML & CSS
udaymore742
 
PPTX
Tech Winter Break - GDG on Campus - PIET
khushi15250705
 
Introduction css
sagaroceanic11
 
Introduction css
sagaroceanic11
 
wd project.pptx
dsffsdf1
 
HTML5_CSS_Lesson foe grade 7 students_Plan.pptx
shahana011
 
Punch it Up with HTML and CSS
mtlgirlgeeks
 
Girls Can Code East Brunswick Workshop Slides
Kayla Leung
 
Thinkful - Frontend Crash Course - Intro to HTML/CSS
TJ Stalcup
 
slidesgo-mastering-html-and-css-a-comprehensive-guide-to-tags-and-elements-20...
MrunmayiLohakare
 
Basic HTML/CSS
Chris Heiden
 
HTML+CSS: how to get started
Dimitris Tsironis
 
Introduction to HTML and CSS
danpaquette
 
3 coding101 fewd_lesson3_your_first_website 20210105
John Picasso
 
Rakshat bhati
Rakshat bhati
 
Introduction to HTML-CSS-Javascript.pdf
DakshPratapSingh1
 
Basics of Front End Web Dev PowerPoint
Sahil Gandhi
 
Web development using HTML and CSS
SiddhantSingh980217
 
Styling Your Web Pages with Cascading Style Sheets / EDU course / University ...
Patrick Lauke
 
ppt.ppt
Sana903754
 
GDG On Campus NBNSCOE Web Workshop Day 1 : HTML & CSS
udaymore742
 
Tech Winter Break - GDG on Campus - PIET
khushi15250705
 
Ad

Recently uploaded (20)

PPTX
BASIC PRACTICE POWER POINT PRESENTATION 1
rkbasumatary02
 
PPTX
Pendant Lights, Types and their applications
agdisha2
 
PDF
The Third Place revolution: Designing for community in a fragmented world
jgadsbypeet8321
 
PPTX
Introduction_to_GD&T_Complete.pptx_growww
rajkumarsingh764766
 
PPTX
Design Thinking Infographics by Slidego.pptx
JuanAntonioAguirreAb2
 
PPTX
Guildford Flames Adam Long Helmet Design Challenge 2025
Tom Hutchinson
 
PDF
LAVIELACE - Collections portfolio showcase
Geo Lupascu
 
PDF
Guide to Understanding Hailey Welch's Wealth
arslantaj725
 
PPTX
Lotus School Manikonda – Best CBSE & SSC School in Hyderabad
CharanRks
 
PPTX
the sigma cafe a b c d e f g h i j k l i
kamalpavlov
 
PDF
The power of storytelling in design.pdf
Zohaib421
 
PPTX
Modelling for etab and design on etabs for concrete
MohamedAttia601252
 
PPTX
15. Single gene inheritance.pptbmcmlxklx
ketkeekumari7
 
PPTX
Smart_Sustainable_Civil_Engineering_PPT.pptx
venkateshreddy0792
 
PDF
Cannatopolis Brand Book - brand identity
impybla
 
PPTX
Design_Guidelinescarrr_Presentation.pptx
kikajic949
 
PDF
Pompidou-case-study-detailed-planF16.pdf
qxtr95m9nf
 
PDF
M03-operating instructions in microprocessor.pdf
CherinetTekalign
 
PPTX
Factorising Expressions Presentation in Green Brown Illustrative Scrapbook St...
hazlienasyiqeen
 
DOCX
pre test uncertainty, conflictbnnnmnb mn
sanghahembramsh
 
BASIC PRACTICE POWER POINT PRESENTATION 1
rkbasumatary02
 
Pendant Lights, Types and their applications
agdisha2
 
The Third Place revolution: Designing for community in a fragmented world
jgadsbypeet8321
 
Introduction_to_GD&T_Complete.pptx_growww
rajkumarsingh764766
 
Design Thinking Infographics by Slidego.pptx
JuanAntonioAguirreAb2
 
Guildford Flames Adam Long Helmet Design Challenge 2025
Tom Hutchinson
 
LAVIELACE - Collections portfolio showcase
Geo Lupascu
 
Guide to Understanding Hailey Welch's Wealth
arslantaj725
 
Lotus School Manikonda – Best CBSE & SSC School in Hyderabad
CharanRks
 
the sigma cafe a b c d e f g h i j k l i
kamalpavlov
 
The power of storytelling in design.pdf
Zohaib421
 
Modelling for etab and design on etabs for concrete
MohamedAttia601252
 
15. Single gene inheritance.pptbmcmlxklx
ketkeekumari7
 
Smart_Sustainable_Civil_Engineering_PPT.pptx
venkateshreddy0792
 
Cannatopolis Brand Book - brand identity
impybla
 
Design_Guidelinescarrr_Presentation.pptx
kikajic949
 
Pompidou-case-study-detailed-planF16.pdf
qxtr95m9nf
 
M03-operating instructions in microprocessor.pdf
CherinetTekalign
 
Factorising Expressions Presentation in Green Brown Illustrative Scrapbook St...
hazlienasyiqeen
 
pre test uncertainty, conflictbnnnmnb mn
sanghahembramsh
 
Ad

Intro to HTML & CSS