SlideShare a Scribd company logo
1 of 142
Download to read offline
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?
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
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?
Coding correctly maximizes the chance
to have your page displayed correctly on
most of the platforms!
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
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
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
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>
Time to talk about CSS
Hands-on Tutorial
Lets build a website and learn
making mistakes!
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
Styling Header
section
Padding: 100px
Padding: 100px
Styling About me
section
Link an external
style sheet
e.g. style.css
Align Center
the page
External Font
HTML
CSS
HTML
Common
Styles
Styling
Button
Styling
Button
Styling
Button
Styling
Button
Linking
Button
Styling
Button
Styling
Header section
Styling
Header section
Styling
Header section
Styling
About me section
Styling
About me section
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
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
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
THE NET NINJA
Interactive Lessons
Video Tutorials
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)

Css
CssCss
Css
 
Basic HTML
Basic HTMLBasic HTML
Basic HTML
 
html-css
html-csshtml-css
html-css
 
Html
HtmlHtml
Html
 
Cascading Style Sheets (CSS) help
Cascading Style Sheets (CSS) helpCascading Style Sheets (CSS) help
Cascading Style Sheets (CSS) help
 
Java script
Java scriptJava script
Java script
 
Web Development using HTML & CSS
Web Development using HTML & CSSWeb Development using HTML & CSS
Web Development using HTML & CSS
 
Html5 semantics
Html5 semanticsHtml5 semantics
Html5 semantics
 
HTML
HTMLHTML
HTML
 
HTML CSS JS in Nut shell
HTML  CSS JS in Nut shellHTML  CSS JS in Nut shell
HTML CSS JS in Nut shell
 
CSS Basics
CSS BasicsCSS Basics
CSS Basics
 
CSS Basics
CSS BasicsCSS Basics
CSS Basics
 
Html n CSS
Html n CSSHtml n CSS
Html n CSS
 
Span and Div tags in HTML
Span and Div tags in HTMLSpan and Div tags in HTML
Span and Div tags in HTML
 
HTML-(workshop)7557.pptx
HTML-(workshop)7557.pptxHTML-(workshop)7557.pptx
HTML-(workshop)7557.pptx
 
Cascading style sheet
Cascading style sheetCascading style sheet
Cascading style sheet
 
HTML CSS Basics
HTML CSS BasicsHTML CSS Basics
HTML CSS Basics
 
Introduction to HTML5
Introduction to HTML5Introduction to HTML5
Introduction to HTML5
 
CSS
CSSCSS
CSS
 
Learning HTML
Learning HTMLLearning HTML
Learning HTML
 

Similar to Intro to HTML & CSS

Thinkful - Frontend Crash Course - Intro to HTML/CSS
Thinkful - Frontend Crash Course - Intro to HTML/CSSThinkful - Frontend Crash Course - Intro to HTML/CSS
Thinkful - Frontend Crash Course - Intro to HTML/CSSTJ Stalcup
 
Web development using HTML and CSS
Web development using HTML and CSSWeb development using HTML and CSS
Web development using HTML and CSSSiddhantSingh980217
 
Html:css crash course (4:5)
Html:css crash course (4:5)Html:css crash course (4:5)
Html:css crash course (4:5)Thinkful
 
FFW Gabrovo PMG - HTML
FFW Gabrovo PMG - HTMLFFW Gabrovo PMG - HTML
FFW Gabrovo PMG - HTMLToni Kolev
 
Html workshop 1
Html workshop 1Html workshop 1
Html workshop 1Lee Scott
 
Web design-workflow
Web design-workflowWeb design-workflow
Web design-workflowPeter Kaizer
 
SDP_-_Module_4.ppt
SDP_-_Module_4.pptSDP_-_Module_4.ppt
SDP_-_Module_4.pptssuser568d77
 
Html css crash course may 11th, atlanta
Html css crash course may 11th, atlantaHtml css crash course may 11th, atlanta
Html css crash course may 11th, atlantaThinkful
 
Advanced Web Programming Chapter 8
Advanced Web Programming Chapter 8Advanced Web Programming Chapter 8
Advanced Web Programming Chapter 8RohanMistry15
 
WEB TECHNOLOGY Unit-2.pptx
WEB TECHNOLOGY Unit-2.pptxWEB TECHNOLOGY Unit-2.pptx
WEB TECHNOLOGY Unit-2.pptxkarthiksmart21
 
WEB TECHNOLOGY:Web Essentials and Markup Language HTML
WEB TECHNOLOGY:Web Essentials and Markup Language HTMLWEB TECHNOLOGY:Web Essentials and Markup Language HTML
WEB TECHNOLOGY:Web Essentials and Markup Language HTMLsmitawagh14
 
Web technologies-course 02.pptx
Web technologies-course 02.pptxWeb technologies-course 02.pptx
Web technologies-course 02.pptxStefan Oprea
 
Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTMLyht4ever
 

Similar to Intro to HTML & CSS (20)

Introducing Cascading Style Sheets
Introducing Cascading Style SheetsIntroducing Cascading Style Sheets
Introducing Cascading Style Sheets
 
Thinkful - Frontend Crash Course - Intro to HTML/CSS
Thinkful - Frontend Crash Course - Intro to HTML/CSSThinkful - Frontend Crash Course - Intro to HTML/CSS
Thinkful - Frontend Crash Course - Intro to HTML/CSS
 
Web development using HTML and CSS
Web development using HTML and CSSWeb development using HTML and CSS
Web development using HTML and CSS
 
Html:css crash course (4:5)
Html:css crash course (4:5)Html:css crash course (4:5)
Html:css crash course (4:5)
 
FFW Gabrovo PMG - HTML
FFW Gabrovo PMG - HTMLFFW Gabrovo PMG - HTML
FFW Gabrovo PMG - HTML
 
Html workshop 1
Html workshop 1Html workshop 1
Html workshop 1
 
DHTML
DHTMLDHTML
DHTML
 
Web Information Systems Html and css
Web Information Systems Html and cssWeb Information Systems Html and css
Web Information Systems Html and css
 
Web design-workflow
Web design-workflowWeb design-workflow
Web design-workflow
 
SDP_-_Module_4.ppt
SDP_-_Module_4.pptSDP_-_Module_4.ppt
SDP_-_Module_4.ppt
 
Unit 01 (1).pdf
Unit 01 (1).pdfUnit 01 (1).pdf
Unit 01 (1).pdf
 
Html css crash course may 11th, atlanta
Html css crash course may 11th, atlantaHtml css crash course may 11th, atlanta
Html css crash course may 11th, atlanta
 
Advanced Web Programming Chapter 8
Advanced Web Programming Chapter 8Advanced Web Programming Chapter 8
Advanced Web Programming Chapter 8
 
ppt.ppt
ppt.pptppt.ppt
ppt.ppt
 
WEB TECHNOLOGY Unit-2.pptx
WEB TECHNOLOGY Unit-2.pptxWEB TECHNOLOGY Unit-2.pptx
WEB TECHNOLOGY Unit-2.pptx
 
WEB TECHNOLOGY:Web Essentials and Markup Language HTML
WEB TECHNOLOGY:Web Essentials and Markup Language HTMLWEB TECHNOLOGY:Web Essentials and Markup Language HTML
WEB TECHNOLOGY:Web Essentials and Markup Language HTML
 
Rakshat bhati
Rakshat bhatiRakshat bhati
Rakshat bhati
 
HTML & CSS.ppt
HTML & CSS.pptHTML & CSS.ppt
HTML & CSS.ppt
 
Web technologies-course 02.pptx
Web technologies-course 02.pptxWeb technologies-course 02.pptx
Web technologies-course 02.pptx
 
Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTML
 

Recently uploaded

10 Best WordPress Plugins to make the website effective in 2024
10 Best WordPress Plugins to make the website effective in 202410 Best WordPress Plugins to make the website effective in 2024
10 Best WordPress Plugins to make the website effective in 2024digital learning point
 
Niintendo Wii Presentation Template.pptx
Niintendo Wii Presentation Template.pptxNiintendo Wii Presentation Template.pptx
Niintendo Wii Presentation Template.pptxKevinYaelJimnezSanti
 
Top 10 Modern Web Design Trends for 2025
Top 10 Modern Web Design Trends for 2025Top 10 Modern Web Design Trends for 2025
Top 10 Modern Web Design Trends for 2025Rndexperts
 
Karim apartment ideas 01 ppppppppppppppp
Karim apartment ideas 01 pppppppppppppppKarim apartment ideas 01 ppppppppppppppp
Karim apartment ideas 01 pppppppppppppppNadaMohammed714321
 
NBA power point presentation final copy y
NBA power point presentation final copy yNBA power point presentation final copy y
NBA power point presentation final copy ysrajece
 
guest bathroom white and bluesssssssssss
guest bathroom white and bluesssssssssssguest bathroom white and bluesssssssssss
guest bathroom white and bluesssssssssssNadaMohammed714321
 
Making and Unmaking of Chandigarh - A City of Two Plans2-4-24.ppt
Making and Unmaking of Chandigarh - A City of Two Plans2-4-24.pptMaking and Unmaking of Chandigarh - A City of Two Plans2-4-24.ppt
Making and Unmaking of Chandigarh - A City of Two Plans2-4-24.pptJIT KUMAR GUPTA
 
Interior Design for Office a cura di RMG Project Studio
Interior Design for Office a cura di RMG Project StudioInterior Design for Office a cura di RMG Project Studio
Interior Design for Office a cura di RMG Project StudioRMG Project Studio
 
Karim apartment ideas 02 ppppppppppppppp
Karim apartment ideas 02 pppppppppppppppKarim apartment ideas 02 ppppppppppppppp
Karim apartment ideas 02 pppppppppppppppNadaMohammed714321
 
10 must-have Chrome extensions for designers
10 must-have Chrome extensions for designers10 must-have Chrome extensions for designers
10 must-have Chrome extensions for designersPixeldarts
 
FW25-26 Knit Cut & Sew Trend Book Peclers Paris
FW25-26 Knit Cut & Sew Trend Book Peclers ParisFW25-26 Knit Cut & Sew Trend Book Peclers Paris
FW25-26 Knit Cut & Sew Trend Book Peclers ParisPeclers Paris
 
Map of St. Louis Parks
Map of St. Louis Parks                              Map of St. Louis Parks
Map of St. Louis Parks CharlottePulte
 
guest bathroom white and blue ssssssssss
guest bathroom white and blue ssssssssssguest bathroom white and blue ssssssssss
guest bathroom white and blue ssssssssssNadaMohammed714321
 
怎么办理英国Newcastle毕业证纽卡斯尔大学学位证书一手渠道
怎么办理英国Newcastle毕业证纽卡斯尔大学学位证书一手渠道怎么办理英国Newcastle毕业证纽卡斯尔大学学位证书一手渠道
怎么办理英国Newcastle毕业证纽卡斯尔大学学位证书一手渠道yrolcks
 
Piece by Piece Magazine
Piece by Piece Magazine                      Piece by Piece Magazine
Piece by Piece Magazine CharlottePulte
 
Sharif's 9-BOX Monitoring Model for Adaptive Programme Management
Sharif's 9-BOX Monitoring Model for Adaptive Programme ManagementSharif's 9-BOX Monitoring Model for Adaptive Programme Management
Sharif's 9-BOX Monitoring Model for Adaptive Programme ManagementMd. Shariful Hoque
 
Unit1_Syllbwbnwnwneneneneneneentation_Sem2.pptx
Unit1_Syllbwbnwnwneneneneneneentation_Sem2.pptxUnit1_Syllbwbnwnwneneneneneneentation_Sem2.pptx
Unit1_Syllbwbnwnwneneneneneneentation_Sem2.pptxNitish292041
 
simpson-lee_house_dt20ajshsjsjsjsjj15.pdf
simpson-lee_house_dt20ajshsjsjsjsjj15.pdfsimpson-lee_house_dt20ajshsjsjsjsjj15.pdf
simpson-lee_house_dt20ajshsjsjsjsjj15.pdfLucyBonelli
 
world health day 2024.pptxgbbvggvbhjjjbbbb
world health day 2024.pptxgbbvggvbhjjjbbbbworld health day 2024.pptxgbbvggvbhjjjbbbb
world health day 2024.pptxgbbvggvbhjjjbbbbpreetirao780
 
DAKSHIN BIHAR GRAMIN BANK: REDEFINING THE DIGITAL BANKING EXPERIENCE WITH A U...
DAKSHIN BIHAR GRAMIN BANK: REDEFINING THE DIGITAL BANKING EXPERIENCE WITH A U...DAKSHIN BIHAR GRAMIN BANK: REDEFINING THE DIGITAL BANKING EXPERIENCE WITH A U...
DAKSHIN BIHAR GRAMIN BANK: REDEFINING THE DIGITAL BANKING EXPERIENCE WITH A U...Rishabh Aryan
 

Recently uploaded (20)

10 Best WordPress Plugins to make the website effective in 2024
10 Best WordPress Plugins to make the website effective in 202410 Best WordPress Plugins to make the website effective in 2024
10 Best WordPress Plugins to make the website effective in 2024
 
Niintendo Wii Presentation Template.pptx
Niintendo Wii Presentation Template.pptxNiintendo Wii Presentation Template.pptx
Niintendo Wii Presentation Template.pptx
 
Top 10 Modern Web Design Trends for 2025
Top 10 Modern Web Design Trends for 2025Top 10 Modern Web Design Trends for 2025
Top 10 Modern Web Design Trends for 2025
 
Karim apartment ideas 01 ppppppppppppppp
Karim apartment ideas 01 pppppppppppppppKarim apartment ideas 01 ppppppppppppppp
Karim apartment ideas 01 ppppppppppppppp
 
NBA power point presentation final copy y
NBA power point presentation final copy yNBA power point presentation final copy y
NBA power point presentation final copy y
 
guest bathroom white and bluesssssssssss
guest bathroom white and bluesssssssssssguest bathroom white and bluesssssssssss
guest bathroom white and bluesssssssssss
 
Making and Unmaking of Chandigarh - A City of Two Plans2-4-24.ppt
Making and Unmaking of Chandigarh - A City of Two Plans2-4-24.pptMaking and Unmaking of Chandigarh - A City of Two Plans2-4-24.ppt
Making and Unmaking of Chandigarh - A City of Two Plans2-4-24.ppt
 
Interior Design for Office a cura di RMG Project Studio
Interior Design for Office a cura di RMG Project StudioInterior Design for Office a cura di RMG Project Studio
Interior Design for Office a cura di RMG Project Studio
 
Karim apartment ideas 02 ppppppppppppppp
Karim apartment ideas 02 pppppppppppppppKarim apartment ideas 02 ppppppppppppppp
Karim apartment ideas 02 ppppppppppppppp
 
10 must-have Chrome extensions for designers
10 must-have Chrome extensions for designers10 must-have Chrome extensions for designers
10 must-have Chrome extensions for designers
 
FW25-26 Knit Cut & Sew Trend Book Peclers Paris
FW25-26 Knit Cut & Sew Trend Book Peclers ParisFW25-26 Knit Cut & Sew Trend Book Peclers Paris
FW25-26 Knit Cut & Sew Trend Book Peclers Paris
 
Map of St. Louis Parks
Map of St. Louis Parks                              Map of St. Louis Parks
Map of St. Louis Parks
 
guest bathroom white and blue ssssssssss
guest bathroom white and blue ssssssssssguest bathroom white and blue ssssssssss
guest bathroom white and blue ssssssssss
 
怎么办理英国Newcastle毕业证纽卡斯尔大学学位证书一手渠道
怎么办理英国Newcastle毕业证纽卡斯尔大学学位证书一手渠道怎么办理英国Newcastle毕业证纽卡斯尔大学学位证书一手渠道
怎么办理英国Newcastle毕业证纽卡斯尔大学学位证书一手渠道
 
Piece by Piece Magazine
Piece by Piece Magazine                      Piece by Piece Magazine
Piece by Piece Magazine
 
Sharif's 9-BOX Monitoring Model for Adaptive Programme Management
Sharif's 9-BOX Monitoring Model for Adaptive Programme ManagementSharif's 9-BOX Monitoring Model for Adaptive Programme Management
Sharif's 9-BOX Monitoring Model for Adaptive Programme Management
 
Unit1_Syllbwbnwnwneneneneneneentation_Sem2.pptx
Unit1_Syllbwbnwnwneneneneneneentation_Sem2.pptxUnit1_Syllbwbnwnwneneneneneneentation_Sem2.pptx
Unit1_Syllbwbnwnwneneneneneneentation_Sem2.pptx
 
simpson-lee_house_dt20ajshsjsjsjsjj15.pdf
simpson-lee_house_dt20ajshsjsjsjsjj15.pdfsimpson-lee_house_dt20ajshsjsjsjsjj15.pdf
simpson-lee_house_dt20ajshsjsjsjsjj15.pdf
 
world health day 2024.pptxgbbvggvbhjjjbbbb
world health day 2024.pptxgbbvggvbhjjjbbbbworld health day 2024.pptxgbbvggvbhjjjbbbb
world health day 2024.pptxgbbvggvbhjjjbbbb
 
DAKSHIN BIHAR GRAMIN BANK: REDEFINING THE DIGITAL BANKING EXPERIENCE WITH A U...
DAKSHIN BIHAR GRAMIN BANK: REDEFINING THE DIGITAL BANKING EXPERIENCE WITH A U...DAKSHIN BIHAR GRAMIN BANK: REDEFINING THE DIGITAL BANKING EXPERIENCE WITH A U...
DAKSHIN BIHAR GRAMIN BANK: REDEFINING THE DIGITAL BANKING EXPERIENCE WITH A U...
 

Intro to HTML & CSS