SlideShare a Scribd company logo
Learning
HTML/CSS
Desarae Veit
Kerim Hadzic
Learning HTML
DOCTYPE
<!DOCTYPE html PUBLIC "-//W3C//DTD
XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-
transitional.dtd">
VS.
<!DOCTYPE html>
Learning HTML
What is HTML DOM?
Document Object Model.
What are the Nodes?
Learning HTML
What is an HTML ELEMENT?
What is an HTML Attribute?
What are opening/closing tags?
Learning HTML
How to make an invisible code
comment?
<! -- Comment-- >
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>My Website | Home Page</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="header">Header
<div id="navigation">
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="#">Contact</a></li>
<li><a href="#">Help</a></li>
</ul>
</div><!-- End Navigation Div -->
<h1>My Website</h1>
</div><!-- End Header Div -->
<div id="main">Body
<p>Body content goes here....</p>
</div><!-- End Body Div (id main) -->
<div id="footer">Footer</div> <!-- End Footer Div (id footer)-->
</body>
</html>
Learning CSS
What does CSS stand for?
What are the three ways of inserting a
stylesheet?
Learning CSS
How do the style cascade into one?
Order of Cascade:
• Browser default
• External style sheet
• Internal style sheet (in the head section)
• Inline style (inside an HTML element)
Learning CSS
How to insert an external style sheet?
<link href="css/style.css" rel="stylesheet"
type="text/css" />
Learning CSS
CSS Syntax
Learning CSS
CSS Example:
/*This is a comment*/
p {
text-align:center;
/*This is another comment*/
color:black;
}
.sunny { color: #ddd; border: 1px solid #000;}
@charset "utf-8";
/* CSS Document */
body {background: #F3F3F3;font-family: "Lucida Sans Unicode", "Lucida
Grande", sans-serif;
/*Center the Website*/margin: 0 auto;width: 1020px;}
/*Header*/
#header {height: 150px;}
/*Website Body*/
#main {min-height: 200px;background: #FFFFFF;}
/*Menu*/
#navigation {clear: both;height: 25px;margin-top: 10px;}
#navigation ul {list-style-type: none; padding: 0;margin: 0;}
#navigation ul li {float: left;position: relative;}
#navigation ul li a {border: 1px solid black;padding-right: 15px;padding-left:
15px;padding-top: 4px;padding-bottom: 4px;margin-right: 5px;background:
gray;color: white;}
/*Footer*/
#footer {height: 50px;background: #FFFFFF;}
QUESTIONS?

More Related Content

PPT
Learning Html
Damian Gonz
 
PPT
Html1
Emily McWorthy
 
PPTX
Introduction to HTML
Ameer Khan
 
PPTX
HTML Introduction, HTML History, HTML Uses, HTML benifits
Pro Guide
 
PPT
Introduction to HTML
yht4ever
 
PDF
Lesson 1: Introduction to HTML
Olivia Moran
 
PPTX
Introduction to HTML
Ann Alcid
 
PDF
Intro to HTML (Kid's Class at TIY)
Marjorie Sample
 
Learning Html
Damian Gonz
 
Introduction to HTML
Ameer Khan
 
HTML Introduction, HTML History, HTML Uses, HTML benifits
Pro Guide
 
Introduction to HTML
yht4ever
 
Lesson 1: Introduction to HTML
Olivia Moran
 
Introduction to HTML
Ann Alcid
 
Intro to HTML (Kid's Class at TIY)
Marjorie Sample
 

What's hot (20)

PPTX
Basic HTML
coachhahn
 
PPT
Introduction To HTML
Mehul Patel
 
PPTX
Html
mazario
 
PPTX
HTML to FTP
Keira Dooley
 
PPTX
Html introduction by ikram niaz
ikram niaz
 
ODP
How to Make HTML and CSS Files
LearningNerd
 
KEY
HTML presentation for beginners
jeroenvdmeer
 
PPTX
Basic html structure
Jhaun Paul Enriquez
 
PPT
1. html introduction
Muhammad Toqeer
 
PPTX
Basic HTML
Sayan De
 
PPTX
Introduction to basic HTML [Librarian edition]
Kosie Eloff
 
PPTX
Introducing HTML
ritaester
 
PPT
Hour 02
dpd
 
PPT
Html
KIDSTOYSERA
 
PDF
3. tutorial html web desain
faizibra
 
PPTX
Html.ppt
Sunil Thakur
 
PPTX
HTML Basic, CSS Basic, JavaScript basic.
Beqa Chacha
 
PPT
Html basics
mcatahir947
 
PPTX
Very basic intro to HTML
kmcintyre3
 
Basic HTML
coachhahn
 
Introduction To HTML
Mehul Patel
 
Html
mazario
 
HTML to FTP
Keira Dooley
 
Html introduction by ikram niaz
ikram niaz
 
How to Make HTML and CSS Files
LearningNerd
 
HTML presentation for beginners
jeroenvdmeer
 
Basic html structure
Jhaun Paul Enriquez
 
1. html introduction
Muhammad Toqeer
 
Basic HTML
Sayan De
 
Introduction to basic HTML [Librarian edition]
Kosie Eloff
 
Introducing HTML
ritaester
 
Hour 02
dpd
 
3. tutorial html web desain
faizibra
 
Html.ppt
Sunil Thakur
 
HTML Basic, CSS Basic, JavaScript basic.
Beqa Chacha
 
Html basics
mcatahir947
 
Very basic intro to HTML
kmcintyre3
 
Ad

Viewers also liked (6)

PDF
Intro to html, css & sass
Sean Wolfe
 
PPT
Understanding THML
Hinopak Motors Limited
 
PDF
Html text and formatting
eShikshak
 
PDF
Road Show TI SENAC - HTML5 & CSS 3.0 - O que esperar da próxima web?
Renato Bongiorno Bonfanti
 
PPT
Html text formatting
derekoei
 
Intro to html, css & sass
Sean Wolfe
 
Understanding THML
Hinopak Motors Limited
 
Html text and formatting
eShikshak
 
Road Show TI SENAC - HTML5 & CSS 3.0 - O que esperar da próxima web?
Renato Bongiorno Bonfanti
 
Html text formatting
derekoei
 
Ad

Similar to Learning HTML (20)

PPTX
Introduction to HTML and CSS
danpaquette
 
PPSX
Introduction to css
Evolution Network
 
PPTX
Introduction to basics of css, overview, syntax and so on
mictnawaraj
 
PPT
Shyam sunder Rajasthan Computer
shyamverma305
 
PPTX
Unitegergergegegegetgegegegegegeg-2-CSS.pptx
VikasTuwar1
 
DOCX
CSS Tutorial For Basic Students Studying
nirmala119429
 
PPT
Introduction to CSS in HTML.ppt
parveen837153
 
PDF
Css basics
Franc Santos
 
PDF
Css basics
Franc Santos
 
PDF
CSS Introduction
Diliara Nasirova
 
PPT
Css Founder.com | Cssfounder org
Css Founder
 
PPTX
Turorial css
Muhammad Syifa
 
PPTX
CSS – CASCADING STYLE SHEET - MY_PPT.pptx
IorlahaSamuel1
 
PPTX
INTRODUCTIONS OF CSS
SURYANARAYANBISWAL1
 
PPTX
CSS_Day_ONE (W3schools)
Rafi Haidari
 
PDF
Intro to HTML and CSS - Class 2 Slides
Heather Rock
 
PPT
Learning CSS for beginners.ppt all that are but
DangyiGodSees
 
PPTX
[SUTD GDSC] Intro to HTML and CSS
BeckhamWee
 
DOCX
Html html html html html html html html html
riturajbhujel103
 
Introduction to HTML and CSS
danpaquette
 
Introduction to css
Evolution Network
 
Introduction to basics of css, overview, syntax and so on
mictnawaraj
 
Shyam sunder Rajasthan Computer
shyamverma305
 
Unitegergergegegegetgegegegegegeg-2-CSS.pptx
VikasTuwar1
 
CSS Tutorial For Basic Students Studying
nirmala119429
 
Introduction to CSS in HTML.ppt
parveen837153
 
Css basics
Franc Santos
 
Css basics
Franc Santos
 
CSS Introduction
Diliara Nasirova
 
Css Founder.com | Cssfounder org
Css Founder
 
Turorial css
Muhammad Syifa
 
CSS – CASCADING STYLE SHEET - MY_PPT.pptx
IorlahaSamuel1
 
INTRODUCTIONS OF CSS
SURYANARAYANBISWAL1
 
CSS_Day_ONE (W3schools)
Rafi Haidari
 
Intro to HTML and CSS - Class 2 Slides
Heather Rock
 
Learning CSS for beginners.ppt all that are but
DangyiGodSees
 
[SUTD GDSC] Intro to HTML and CSS
BeckhamWee
 
Html html html html html html html html html
riturajbhujel103
 

More from Desarae Veit (17)

PDF
2020 summary ui ux resume desarae veit v1
Desarae Veit
 
PDF
HacktivismPaper.docx
Desarae Veit
 
PDF
655-Final
Desarae Veit
 
DOCX
MIS-604Hackman-week2
Desarae Veit
 
DOCX
PresentationDescription-Starting a Career in IT
Desarae Veit
 
DOCX
PresentationDescription-IndustryPanels
Desarae Veit
 
DOCX
ExampleSiteEvaluationJustification
Desarae Veit
 
DOCX
508checklist
Desarae Veit
 
DOCX
508 Compliance Testing for Example Site
Desarae Veit
 
DOCX
508 compliance documentation for site
Desarae Veit
 
PPTX
Responsive Design & Accessibility
Desarae Veit
 
DOCX
Senior Web Developer specializing in user experience
Desarae Veit
 
DOCX
BRADFROST-SQUISHY-What is Responsive Design
Desarae Veit
 
DOCX
speaking-skills
Desarae Veit
 
DOCX
UI-IA-deploy
Desarae Veit
 
PPTX
softwaredevtechsummit
Desarae Veit
 
DOCX
css-tools
Desarae Veit
 
2020 summary ui ux resume desarae veit v1
Desarae Veit
 
HacktivismPaper.docx
Desarae Veit
 
655-Final
Desarae Veit
 
MIS-604Hackman-week2
Desarae Veit
 
PresentationDescription-Starting a Career in IT
Desarae Veit
 
PresentationDescription-IndustryPanels
Desarae Veit
 
ExampleSiteEvaluationJustification
Desarae Veit
 
508checklist
Desarae Veit
 
508 Compliance Testing for Example Site
Desarae Veit
 
508 compliance documentation for site
Desarae Veit
 
Responsive Design & Accessibility
Desarae Veit
 
Senior Web Developer specializing in user experience
Desarae Veit
 
BRADFROST-SQUISHY-What is Responsive Design
Desarae Veit
 
speaking-skills
Desarae Veit
 
UI-IA-deploy
Desarae Veit
 
softwaredevtechsummit
Desarae Veit
 
css-tools
Desarae Veit
 

Learning HTML

  • 2. Learning HTML DOCTYPE <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1- transitional.dtd"> VS. <!DOCTYPE html>
  • 3. Learning HTML What is HTML DOM? Document Object Model. What are the Nodes?
  • 4. Learning HTML What is an HTML ELEMENT? What is an HTML Attribute? What are opening/closing tags?
  • 5. Learning HTML How to make an invisible code comment? <! -- Comment-- >
  • 6. <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>My Website | Home Page</title> <link href="css/style.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="header">Header <div id="navigation"> <ul> <li><a href="index.html">Home</a></li> <li><a href="#">Contact</a></li> <li><a href="#">Help</a></li> </ul> </div><!-- End Navigation Div --> <h1>My Website</h1> </div><!-- End Header Div --> <div id="main">Body <p>Body content goes here....</p> </div><!-- End Body Div (id main) --> <div id="footer">Footer</div> <!-- End Footer Div (id footer)--> </body> </html>
  • 7. Learning CSS What does CSS stand for? What are the three ways of inserting a stylesheet?
  • 8. Learning CSS How do the style cascade into one? Order of Cascade: • Browser default • External style sheet • Internal style sheet (in the head section) • Inline style (inside an HTML element)
  • 9. Learning CSS How to insert an external style sheet? <link href="css/style.css" rel="stylesheet" type="text/css" />
  • 11. Learning CSS CSS Example: /*This is a comment*/ p { text-align:center; /*This is another comment*/ color:black; } .sunny { color: #ddd; border: 1px solid #000;}
  • 12. @charset "utf-8"; /* CSS Document */ body {background: #F3F3F3;font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif; /*Center the Website*/margin: 0 auto;width: 1020px;} /*Header*/ #header {height: 150px;} /*Website Body*/ #main {min-height: 200px;background: #FFFFFF;} /*Menu*/ #navigation {clear: both;height: 25px;margin-top: 10px;} #navigation ul {list-style-type: none; padding: 0;margin: 0;} #navigation ul li {float: left;position: relative;} #navigation ul li a {border: 1px solid black;padding-right: 15px;padding-left: 15px;padding-top: 4px;padding-bottom: 4px;margin-right: 5px;background: gray;color: white;} /*Footer*/ #footer {height: 50px;background: #FFFFFF;}

Editor's Notes

  • #3: The Doctype must be the first declaration in an HTML document, even before the <html> tag. The Doctype is NOT an html tag; it is an instruction to the web browser about what version of HTML the page is written in. <!DOCTYPE html> is the newest version of doctype, it stands for HTML 5 Resources: For more details on html elements and the difference between Doctypes: http://www.w3schools.com/tags/ref_html_dtd.asp The <!DOCTYPE> tag does not have an end tag. The <!DOCTYPE> declaration is NOT case sensitive. Use W3C's Validator to check that you have written a valid HTML / XHTML document: http://validator.w3.org/
  • #4: Everything in the HTML DOM (Document Object Model) is a node: The document itself (index.html or page.html) is a document node. HTML Elements are element nodes. Element objects can have child nodes including element nodes, text nodes, or comment nodes. Elements can also have attributes. HTML Attributes are attribute nodes. Text inside HTML elements are text nodes. Comments are comment nodes. Basic HTML Website Example (no css): <!DOCTYPE HTML> <html> <head> <title>Title of the document</title> </head> <body> The content of the document...... </body> </html>
  • #5: Element Most HTML elements require a start tag and an end tag. Only a couple of tags do not require an end tag, the break element <BR> does not require two tags. Attributes HTML elements can have attributes. Attributes are always specified by a start tag with a name and value. These attributes look something like name=”value”. You see an example of this in the link element ie. href=”http://linkurl.com”. These attributes are case sensitive, so keep them lowercase. These are case sensitive.
  • #6: Element Most HTML elements require a start tag and an end tag. Only a couple of tags do not require an end tag, the break element <BR> does not require two tags. Attributes HTML elements can have attributes. Attributes are always specified by a start tag with a name and value. These attributes look something like name=”value”. You see an example of this in the link element ie. href=”http://linkurl.com”. These attributes are case sensitive, so keep them lowercase. These are case sensitive.
  • #7: Element Most HTML elements require a start tag and an end tag. Only a couple of tags do not require an end tag, the break element <BR> does not require two tags. Attributes HTML elements can have attributes. Attributes are always specified by a start tag with a name and value. These attributes look something like name=”value”. You see an example of this in the link element ie. href=”http://linkurl.com”. These attributes are case sensitive, so keep them lowercase. These are case sensitive.
  • #8: CSS stands for Cascading Style Sheets. CSS defines how to display HTML elements. External Style Sheets can save a lot of work by making a list of styles for multiple pages, whereas inline styles only work on the page or element they are defined on. External style sheets are stored as CSS files. External Internal Inline
  • #9: CSS stands for Cascading Style Sheets. CSS defines how to display HTML elements. External Style Sheets can save a lot of work by making a list of styles for multiple pages, whereas inline styles only work on the page or element they are defined on. External style sheets are stored as CSS files. External Internal Inline
  • #10: CSS stands for Cascading Style Sheets. CSS defines how to display HTML elements. External Style Sheets can save a lot of work by making a list of styles for multiple pages, whereas inline styles only work on the page or element they are defined on. External style sheets are stored as CSS files. External Internal Inline