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

What's hot

3. tutorial html web desain
3. tutorial html web desain3. tutorial html web desain
3. tutorial html web desain
faizibra
 

What's hot (20)

Html
HtmlHtml
Html
 
Basic HTML
Basic HTMLBasic HTML
Basic HTML
 
Introduction To HTML
Introduction To HTMLIntroduction To HTML
Introduction To HTML
 
Html
HtmlHtml
Html
 
HTML to FTP
HTML to FTPHTML to FTP
HTML to FTP
 
Html introduction by ikram niaz
Html introduction by ikram niazHtml introduction by ikram niaz
Html introduction by ikram niaz
 
How to Make HTML and CSS Files
How to Make HTML and CSS FilesHow to Make HTML and CSS Files
How to Make HTML and CSS Files
 
HTML presentation for beginners
HTML presentation for beginnersHTML presentation for beginners
HTML presentation for beginners
 
Basic html structure
Basic html structureBasic html structure
Basic html structure
 
1. html introduction
1. html introduction1. html introduction
1. html introduction
 
Basic HTML
Basic HTMLBasic HTML
Basic HTML
 
Introduction to basic HTML [Librarian edition]
Introduction to basic HTML [Librarian edition]Introduction to basic HTML [Librarian edition]
Introduction to basic HTML [Librarian edition]
 
Introducing HTML
Introducing HTMLIntroducing HTML
Introducing HTML
 
Hour 02
Hour 02Hour 02
Hour 02
 
Html
HtmlHtml
Html
 
3. tutorial html web desain
3. tutorial html web desain3. tutorial html web desain
3. tutorial html web desain
 
Html.ppt
Html.pptHtml.ppt
Html.ppt
 
HTML Basic, CSS Basic, JavaScript basic.
HTML Basic, CSS Basic, JavaScript basic.HTML Basic, CSS Basic, JavaScript basic.
HTML Basic, CSS Basic, JavaScript basic.
 
Html basics
Html basicsHtml basics
Html basics
 
Very basic intro to HTML
Very basic intro to HTMLVery basic intro to HTML
Very basic intro to HTML
 

Viewers also liked (6)

Html Unit B
Html   Unit BHtml   Unit B
Html Unit B
 
Intro to html, css & sass
Intro to html, css & sassIntro to html, css & sass
Intro to html, css & sass
 
Understanding THML
Understanding THMLUnderstanding THML
Understanding THML
 
Html text and formatting
Html text and formattingHtml text and formatting
Html text and formatting
 
Road Show TI SENAC - HTML5 & CSS 3.0 - O que esperar da próxima web?
Road Show TI SENAC - HTML5 & CSS 3.0 - O que esperar da próxima web?Road Show TI SENAC - HTML5 & CSS 3.0 - O que esperar da próxima web?
Road Show TI SENAC - HTML5 & CSS 3.0 - O que esperar da próxima web?
 
Html text formatting
Html text formattingHtml text formatting
Html text formatting
 

Similar to Learning HTML

Base HTML & CSS
Base HTML & CSSBase HTML & CSS
Base HTML & CSS
Nick Chan
 
Introducing to html
Introducing to htmlIntroducing to html
Introducing to html
Ishaan Arora
 
Girl Develop It Cincinnati: Intro to HTML/CSS Class 1
Girl Develop It Cincinnati: Intro to HTML/CSS Class 1Girl Develop It Cincinnati: Intro to HTML/CSS Class 1
Girl Develop It Cincinnati: Intro to HTML/CSS Class 1
Erin M. Kidwell
 
Html beginner
Html beginnerHtml beginner
Html beginner
wihrbt
 

Similar to Learning HTML (20)

Base HTML & CSS
Base HTML & CSSBase HTML & CSS
Base HTML & CSS
 
Eye catching HTML BASICS tips: Learn easily
Eye catching HTML BASICS tips: Learn easilyEye catching HTML BASICS tips: Learn easily
Eye catching HTML BASICS tips: Learn easily
 
XHTML
XHTMLXHTML
XHTML
 
HTML (Hyper Text Markup Language)
HTML (Hyper Text Markup Language)HTML (Hyper Text Markup Language)
HTML (Hyper Text Markup Language)
 
HTML/CSS Lecture 1
HTML/CSS Lecture 1HTML/CSS Lecture 1
HTML/CSS Lecture 1
 
Introducing to html
Introducing to htmlIntroducing to html
Introducing to html
 
Girl Develop It Cincinnati: Intro to HTML/CSS Class 1
Girl Develop It Cincinnati: Intro to HTML/CSS Class 1Girl Develop It Cincinnati: Intro to HTML/CSS Class 1
Girl Develop It Cincinnati: Intro to HTML/CSS Class 1
 
Html beginner
Html beginnerHtml beginner
Html beginner
 
4. html css-java script-basics
4. html css-java script-basics4. html css-java script-basics
4. html css-java script-basics
 
4. html css-java script-basics
4. html css-java script-basics4. html css-java script-basics
4. html css-java script-basics
 
4. html css-java script-basics
4. html css-java script-basics4. html css-java script-basics
4. html css-java script-basics
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
 
HTML Fundamentals
HTML FundamentalsHTML Fundamentals
HTML Fundamentals
 
3 1-html-fundamentals-110302100520-phpapp02
3 1-html-fundamentals-110302100520-phpapp023 1-html-fundamentals-110302100520-phpapp02
3 1-html-fundamentals-110302100520-phpapp02
 
Html
HtmlHtml
Html
 
Html css java script basics All about you need
Html css java script basics All about you needHtml css java script basics All about you need
Html css java script basics All about you need
 
Html beginners tutorial
Html beginners tutorialHtml beginners tutorial
Html beginners tutorial
 
Html&Browser
Html&BrowserHtml&Browser
Html&Browser
 
HTML CSS by Anubhav Singh
HTML CSS by Anubhav SinghHTML CSS by Anubhav Singh
HTML CSS by Anubhav Singh
 
HTML5 CSS3 Basics
HTML5 CSS3 Basics HTML5 CSS3 Basics
HTML5 CSS3 Basics
 

More from Desarae Veit

2020 summary ui ux resume desarae veit v1
2020 summary    ui ux resume desarae veit v12020 summary    ui ux resume desarae veit v1
2020 summary ui ux resume desarae veit v1
Desarae Veit
 
HacktivismPaper.docx
HacktivismPaper.docxHacktivismPaper.docx
HacktivismPaper.docx
Desarae Veit
 
MIS-604Hackman-week2
MIS-604Hackman-week2MIS-604Hackman-week2
MIS-604Hackman-week2
Desarae Veit
 
PresentationDescription-Starting a Career in IT
PresentationDescription-Starting a Career in ITPresentationDescription-Starting a Career in IT
PresentationDescription-Starting a Career in IT
Desarae Veit
 
PresentationDescription-IndustryPanels
PresentationDescription-IndustryPanelsPresentationDescription-IndustryPanels
PresentationDescription-IndustryPanels
Desarae Veit
 
ExampleSiteEvaluationJustification
ExampleSiteEvaluationJustificationExampleSiteEvaluationJustification
ExampleSiteEvaluationJustification
Desarae Veit
 
508 Compliance Testing for Example Site
508 Compliance Testing for Example Site508 Compliance Testing for Example Site
508 Compliance Testing for Example Site
Desarae Veit
 
508 compliance documentation for site
508 compliance documentation for site508 compliance documentation for site
508 compliance documentation for site
Desarae Veit
 
Responsive Design & Accessibility
Responsive Design & AccessibilityResponsive Design & Accessibility
Responsive Design & Accessibility
Desarae Veit
 
Senior Web Developer specializing in user experience
Senior Web Developer specializing in user experienceSenior Web Developer specializing in user experience
Senior Web Developer specializing in user experience
Desarae Veit
 
BRADFROST-SQUISHY-What is Responsive Design
BRADFROST-SQUISHY-What is Responsive DesignBRADFROST-SQUISHY-What is Responsive Design
BRADFROST-SQUISHY-What is Responsive Design
Desarae Veit
 
softwaredevtechsummit
softwaredevtechsummitsoftwaredevtechsummit
softwaredevtechsummit
Desarae Veit
 

More from Desarae Veit (17)

2020 summary ui ux resume desarae veit v1
2020 summary    ui ux resume desarae veit v12020 summary    ui ux resume desarae veit v1
2020 summary ui ux resume desarae veit v1
 
HacktivismPaper.docx
HacktivismPaper.docxHacktivismPaper.docx
HacktivismPaper.docx
 
655-Final
655-Final655-Final
655-Final
 
MIS-604Hackman-week2
MIS-604Hackman-week2MIS-604Hackman-week2
MIS-604Hackman-week2
 
PresentationDescription-Starting a Career in IT
PresentationDescription-Starting a Career in ITPresentationDescription-Starting a Career in IT
PresentationDescription-Starting a Career in IT
 
PresentationDescription-IndustryPanels
PresentationDescription-IndustryPanelsPresentationDescription-IndustryPanels
PresentationDescription-IndustryPanels
 
ExampleSiteEvaluationJustification
ExampleSiteEvaluationJustificationExampleSiteEvaluationJustification
ExampleSiteEvaluationJustification
 
508checklist
508checklist508checklist
508checklist
 
508 Compliance Testing for Example Site
508 Compliance Testing for Example Site508 Compliance Testing for Example Site
508 Compliance Testing for Example Site
 
508 compliance documentation for site
508 compliance documentation for site508 compliance documentation for site
508 compliance documentation for site
 
Responsive Design & Accessibility
Responsive Design & AccessibilityResponsive Design & Accessibility
Responsive Design & Accessibility
 
Senior Web Developer specializing in user experience
Senior Web Developer specializing in user experienceSenior Web Developer specializing in user experience
Senior Web Developer specializing in user experience
 
BRADFROST-SQUISHY-What is Responsive Design
BRADFROST-SQUISHY-What is Responsive DesignBRADFROST-SQUISHY-What is Responsive Design
BRADFROST-SQUISHY-What is Responsive Design
 
speaking-skills
speaking-skillsspeaking-skills
speaking-skills
 
UI-IA-deploy
UI-IA-deployUI-IA-deploy
UI-IA-deploy
 
softwaredevtechsummit
softwaredevtechsummitsoftwaredevtechsummit
softwaredevtechsummit
 
css-tools
css-toolscss-tools
css-tools
 

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

  1. 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/
  2. 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>
  3. 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.
  4. 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.
  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. 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
  7. 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
  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