SlideShare a Scribd company logo
Introduction to HTML and
CSS
Lecture 1
Who is this guy?
Lee Lundrigan
Soft ware Engineer
Blazing Cloud, Inc.

iPhone / iPad Applications in Objective-C
Javascript
HTML / CSS

Wrote a cross browser CSS framework for
iPhone, Android, Blackberry, and Windows Mobile.

Wrote a book - Pro Smartphone Cross-Platform
Development
Who are YOU?
What are we going to
talk about in this class?

XML

HTML foundation

CSS foundation

Website components
What will we not cover
in this class?
Differences between HTML and XHTML

Cross browser compatibility (including the mobile
space)

HTML 5 and CSS 3

Webpage Layouts
Todays Goals


Integrated Development Environment (IDE)

XML

HTML / XHTML

Introduction to CSS
Integrated Development
Environments
Oxygen XML Editor

  http://www.oxygenxml.com/

Aptana

  http://www.aptana.com/

TextEdit (on Mac)

TextPad (on Windows)
XML

Definition: Extensible Markup Language

XML is a simple, very flexible text format derived from
SGML

W3C sets the XML standards

Current version: 1.0
<node>
<node>
</node>
<node />
XML Cont....
Tag: A markup construct that begins with "<" and
ends with ">"

  Three different kinds of Tags

    start-tags <tag>

    end-tags </tag>

    empty-tags <tag />

Declaration: Optional information about the XML
document
       <?xml version="1.0" encoding="UTF-8"?>
XML Cont...
Attribute

  A name/value pair that exists within a start-tag
  or empty-element tag.

  <img src=”firefox.png” alt=”Firefox Icon” />

  The <img /> tag is an empty element tag with
  two attributes: src and alt.
XML Example
<?xml version="1.0" encoding="UTF-8" ?>
<ship color=”blue”>
   <captain>Mr.McGee</captain>
   <crew>
      <member>Joe</member>
      <member>Jane</member>
   </crew>
   <anchored value=”true” />
</ship>
LAB 1


Lets build a simple XML document together
<HTML>




The
markup
language
used
to
describe
web
pages.
HTML
stands
for:

Hypertext
Markup
Language
What’s a Markup
       Language?

It
is
a
set
of
symbols
and

rules
in
a
document
that

describe
its
structure
and

format.

Who decides these
          rules?
        W3C (WORLD WIDE WEB CONSORTIUM)

W3C is an international standards body for both
HTML and CSS

Formed in October 1994

Founded by Tim Berners-Lee

Has 356 members as of September 09’
HTML Tags

are special keywords surrounded by angle bracket
like <div>

Most HTML tags come in pairs like <div></div>

  Consisting of an opening and closing tag
Basic Tags
<a href=”http://www.google.com”>This is a link tag to Google.com</a>

<p>This is a paragraph tag</p>

<div>This tag represents a division in the page (called a “div”)</div>

<img src=”C:Desktopimage.png” alt=”My Image” />

<h1>This is heading 1..the largest heading</h1>

<h2>This is heading 2..the second largest heading</h2>

   Heading tags are defined h1-h6

   Heading tags work just like headings in your favorite word processor
Basic Tags Continued

<br /> is a line break and can be used inside text-
nodes.

<ul> is an unordered list. It has children known as
<li> list items. Next to each list item will be a
bullet.
       <ul>
         <li>Cat</li>
         <li>Dog</li>
         <li>Mouse</li>
       </ul>
.HTM, .HTML or .XHTML?
Document extensions

 .HTM is the same as .HTML

   .HTM is a remnant from the old days when file
   extensions were only three letters

 .XHTML is the same as a .HTML document
 except an .XHTML document is a well-formed
 XML document
Structure of an HTML
      Document
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html SYSTEM "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
     <title></title>
  </head>
  <body>
  </body>
</html>
Doctype (DTD)
                   Document type declaration


 Transitional
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


 XHTML == Markup MUST be well formed XML

 Transitional == Contains all HTML elements and
 attributes, INCLUDING presentational and
 deprecated elements (like the <font> tag)
<html>

The <html> tag tells the browser that this is an
HTML document.

The html element is the outermost element in
HTML and XHTML documents. The html element
is also known as the root element.
<head>
hidden from the user

can contain:

  meta information

  stylesheet references

  scripts

  title
<body>
The content of the document

  text

  hyperlinks

  images

  tables

  lists

  etc...
Deprecated what?

Basically, try to avoid using things marked as
DEPRECATED

  While they are supported in the current version
  there is no guarantee future versions will
  continue support
Good Practice
HTML elements should be lowercase

  Why? The W3C recommends it and may require
  it in the future.

All elements should be closed.

  Close an element by either adding a forward
  slash to the start element <br /> or add a
  forward slash to the ending element like <div></
  div>
Helpful documentation	

W3schools

  http://www.w3schools.com/tags/default.asp

  http://www.w3schools.com/html/default.asp

http://en.wikipedia.org/wiki/XML

http://en.wikipedia.org/wiki/HTML
Homework

Make an HTML page using images and
paragraphs (include headers and sub headings)

Make a link on the page to a new page

READ:

  Well-formed XML:

 http://www.developer.com/net/vb/article.php/
 797861/Well-Formed-XML.htm

More Related Content

PDF
HTML Lecture Part 1 of 2
PPTX
Css presentation lecture 1
PPT
Introduction to HTML
PDF
Intro to HTML and CSS - Class 2 Slides
PPT
HTML & CSS Workshop Notes
PDF
Intro to HTML and CSS basics
PPTX
(Fast) Introduction to HTML & CSS
PDF
Introduction to WEB HTML, CSS
HTML Lecture Part 1 of 2
Css presentation lecture 1
Introduction to HTML
Intro to HTML and CSS - Class 2 Slides
HTML & CSS Workshop Notes
Intro to HTML and CSS basics
(Fast) Introduction to HTML & CSS
Introduction to WEB HTML, CSS

What's hot (20)

PPTX
Html css java script basics All about you need
PDF
HTML & CSS Masterclass
PPTX
Introduction to html course digital markerters
PDF
Web I - 02 - XHTML Introduction
PPTX
Hushang Gaikwad
PDF
Week 2-intro-html
PDF
Intro to HTML & CSS
PDF
Html,javascript & css
PPT
Web Development using HTML & CSS
PDF
HTML Email
PDF
Web front end development introduction to html css and javascript
PPTX
uptu web technology unit 2 html
PDF
Introduction to HTML and CSS
ODP
Introduction of Html/css/js
PDF
What is HTML - An Introduction to HTML (Hypertext Markup Language)
PDF
Html css workshop, lesson 0, how browsers work
PDF
Html / CSS Presentation
PPTX
Introduction to HTML
PPT
Html css java script basics All about you need
HTML & CSS Masterclass
Introduction to html course digital markerters
Web I - 02 - XHTML Introduction
Hushang Gaikwad
Week 2-intro-html
Intro to HTML & CSS
Html,javascript & css
Web Development using HTML & CSS
HTML Email
Web front end development introduction to html css and javascript
uptu web technology unit 2 html
Introduction to HTML and CSS
Introduction of Html/css/js
What is HTML - An Introduction to HTML (Hypertext Markup Language)
Html css workshop, lesson 0, how browsers work
Html / CSS Presentation
Introduction to HTML
Ad

Viewers also liked (9)

PPT
Html Ppt
PPT
Introduction to HTML
PPT
Html Slide Part-1
PPT
process management
PPTX
Tesla S - Great Layman's Overview Presentation
PPT
Introduction to html
PDF
Accessibility & Compatibility
KEY
HTML presentation for beginners
PPT
Web Security
Html Ppt
Introduction to HTML
Html Slide Part-1
process management
Tesla S - Great Layman's Overview Presentation
Introduction to html
Accessibility & Compatibility
HTML presentation for beginners
Web Security
Ad

Similar to HTML/CSS Lecture 1 (20)

PPT
PPTX
HTML (Hyper Text Markup Language)
PPTX
INTRODUCTION FOR HTML
PPT
Eye catching HTML BASICS tips: Learn easily
PDF
Vision academy sachinsir_9822506209_html_java_script_notes (1)
PPT
Intr to-html-xhtml-1233508169541646-3
PPT
Html basics
PPTX
Grade 10 COMPUTER
PPTX
Introduction to HTML.pptx
PPT
Uta005 lecture2
PPTX
BSC notes of _HTML_Easyto understand lease see.pptx
PDF
HTML practical file
PPTX
4. html css-java script-basics
PPTX
4. html css-java script-basics
PPTX
4. html css-java script-basics
PPTX
POLITEKNIK MALAYSIA
PPTX
PPTX
HTML Fundamentals
PPTX
3 1-html-fundamentals-110302100520-phpapp02
HTML (Hyper Text Markup Language)
INTRODUCTION FOR HTML
Eye catching HTML BASICS tips: Learn easily
Vision academy sachinsir_9822506209_html_java_script_notes (1)
Intr to-html-xhtml-1233508169541646-3
Html basics
Grade 10 COMPUTER
Introduction to HTML.pptx
Uta005 lecture2
BSC notes of _HTML_Easyto understand lease see.pptx
HTML practical file
4. html css-java script-basics
4. html css-java script-basics
4. html css-java script-basics
POLITEKNIK MALAYSIA
HTML Fundamentals
3 1-html-fundamentals-110302100520-phpapp02

More from Lee Lundrigan (6)

KEY
KEY
Interactive Graphics using Javascript, HTML5 and CSS3
PDF
Lecture 2 adv
PDF
Lecture 1 adv
KEY
Lecture3
KEY
Lecture2
Interactive Graphics using Javascript, HTML5 and CSS3
Lecture 2 adv
Lecture 1 adv
Lecture3
Lecture2

Recently uploaded (20)

PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Modernizing your data center with Dell and AMD
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Approach and Philosophy of On baking technology
DOCX
The AUB Centre for AI in Media Proposal.docx
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
GamePlan Trading System Review: Professional Trader's Honest Take
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Advanced IT Governance
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
GDG Cloud Iasi [PUBLIC] Florian Blaga - Unveiling the Evolution of Cybersecur...
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
cuic standard and advanced reporting.pdf
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
Chapter 3 Spatial Domain Image Processing.pdf
Modernizing your data center with Dell and AMD
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Approach and Philosophy of On baking technology
The AUB Centre for AI in Media Proposal.docx
MYSQL Presentation for SQL database connectivity
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Diabetes mellitus diagnosis method based random forest with bat algorithm
GamePlan Trading System Review: Professional Trader's Honest Take
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Advanced IT Governance
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
GDG Cloud Iasi [PUBLIC] Florian Blaga - Unveiling the Evolution of Cybersecur...
Mobile App Security Testing_ A Comprehensive Guide.pdf
cuic standard and advanced reporting.pdf
“AI and Expert System Decision Support & Business Intelligence Systems”
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
The Rise and Fall of 3GPP – Time for a Sabbatical?

HTML/CSS Lecture 1

  • 1. Introduction to HTML and CSS Lecture 1
  • 2. Who is this guy? Lee Lundrigan Soft ware Engineer Blazing Cloud, Inc. iPhone / iPad Applications in Objective-C Javascript HTML / CSS Wrote a cross browser CSS framework for iPhone, Android, Blackberry, and Windows Mobile. Wrote a book - Pro Smartphone Cross-Platform Development
  • 4. What are we going to talk about in this class? XML HTML foundation CSS foundation Website components
  • 5. What will we not cover in this class? Differences between HTML and XHTML Cross browser compatibility (including the mobile space) HTML 5 and CSS 3 Webpage Layouts
  • 6. Todays Goals Integrated Development Environment (IDE) XML HTML / XHTML Introduction to CSS
  • 7. Integrated Development Environments Oxygen XML Editor http://www.oxygenxml.com/ Aptana http://www.aptana.com/ TextEdit (on Mac) TextPad (on Windows)
  • 8. XML Definition: Extensible Markup Language XML is a simple, very flexible text format derived from SGML W3C sets the XML standards Current version: 1.0
  • 11. XML Cont.... Tag: A markup construct that begins with "<" and ends with ">" Three different kinds of Tags start-tags <tag> end-tags </tag> empty-tags <tag /> Declaration: Optional information about the XML document <?xml version="1.0" encoding="UTF-8"?>
  • 12. XML Cont... Attribute A name/value pair that exists within a start-tag or empty-element tag. <img src=”firefox.png” alt=”Firefox Icon” /> The <img /> tag is an empty element tag with two attributes: src and alt.
  • 13. XML Example <?xml version="1.0" encoding="UTF-8" ?> <ship color=”blue”> <captain>Mr.McGee</captain> <crew> <member>Joe</member> <member>Jane</member> </crew> <anchored value=”true” /> </ship>
  • 14. LAB 1 Lets build a simple XML document together
  • 17. What’s a Markup Language? It
is
a
set
of
symbols
and
 rules
in
a
document
that
 describe
its
structure
and
 format.

  • 18. Who decides these rules? W3C (WORLD WIDE WEB CONSORTIUM) W3C is an international standards body for both HTML and CSS Formed in October 1994 Founded by Tim Berners-Lee Has 356 members as of September 09’
  • 19. HTML Tags are special keywords surrounded by angle bracket like <div> Most HTML tags come in pairs like <div></div> Consisting of an opening and closing tag
  • 20. Basic Tags <a href=”http://www.google.com”>This is a link tag to Google.com</a> <p>This is a paragraph tag</p> <div>This tag represents a division in the page (called a “div”)</div> <img src=”C:Desktopimage.png” alt=”My Image” /> <h1>This is heading 1..the largest heading</h1> <h2>This is heading 2..the second largest heading</h2> Heading tags are defined h1-h6 Heading tags work just like headings in your favorite word processor
  • 21. Basic Tags Continued <br /> is a line break and can be used inside text- nodes. <ul> is an unordered list. It has children known as <li> list items. Next to each list item will be a bullet. <ul> <li>Cat</li> <li>Dog</li> <li>Mouse</li> </ul>
  • 22. .HTM, .HTML or .XHTML? Document extensions .HTM is the same as .HTML .HTM is a remnant from the old days when file extensions were only three letters .XHTML is the same as a .HTML document except an .XHTML document is a well-formed XML document
  • 23. Structure of an HTML Document <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html SYSTEM "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> </head> <body> </body> </html>
  • 24. Doctype (DTD) Document type declaration Transitional <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> XHTML == Markup MUST be well formed XML Transitional == Contains all HTML elements and attributes, INCLUDING presentational and deprecated elements (like the <font> tag)
  • 25. <html> The <html> tag tells the browser that this is an HTML document. The html element is the outermost element in HTML and XHTML documents. The html element is also known as the root element.
  • 26. <head> hidden from the user can contain: meta information stylesheet references scripts title
  • 27. <body> The content of the document text hyperlinks images tables lists etc...
  • 28. Deprecated what? Basically, try to avoid using things marked as DEPRECATED While they are supported in the current version there is no guarantee future versions will continue support
  • 29. Good Practice HTML elements should be lowercase Why? The W3C recommends it and may require it in the future. All elements should be closed. Close an element by either adding a forward slash to the start element <br /> or add a forward slash to the ending element like <div></ div>
  • 30. Helpful documentation W3schools http://www.w3schools.com/tags/default.asp http://www.w3schools.com/html/default.asp http://en.wikipedia.org/wiki/XML http://en.wikipedia.org/wiki/HTML
  • 31. Homework Make an HTML page using images and paragraphs (include headers and sub headings) Make a link on the page to a new page READ: Well-formed XML: http://www.developer.com/net/vb/article.php/ 797861/Well-Formed-XML.htm