SlideShare a Scribd company logo
1 of 36
Technologies




LIS 3353 – February 20, 2012 – Week 8
Agenda

   Debrief on HTML from midterm and
    A4
   IT News
   IT in action – interdisciplinary!
   HTML validation today and Tuesday
   Tuesday: Assignment #6 will be
    distributed & discussed
   Thursday: Quiz and group
    presentations
IT News & Stuff

   Beating Moore's Law
   https://twitter.com/#!/Chiefkariuki

   http://www.codeacademy.com

LBS!
 http://www.airbnb.com

 http://www.relayrides.com
Attendance Check!

   On the blank side of the index card,
    write the following:
    – Your name
    – Your FSU email address
   On the LINED side of the index card,
    answer this question:
    – How can location-based services impact
      your life? Have you ever used such
      services? Reference the sites we just
      talked about.
   5 minutes – go!
Beyond HTML

   HTML 1.0 and 2.0
     – 1989-> mid 90s
     – Browser wars with different ―standards‖
   HTML 3.0
     – 1995->
     – Still 2 ways of doing things (IE and Netscape)
   HTML 4.0
     – 1998->
     – W3C intervenes to get rid of the discrepancies
     – Proposed separating HTML into structure (HTML 4.0)
       and presentation (CSS)
Beyond HTML

   HTML 4.01
    –   1999->
    –   W3C rules adopted
    –   Current standard
    –   Birth of CSS but everyone not happy
   XHTML 1.0
    – 2000->
    – HTML (popular, browser-friendly) and XML
      (strictness, extensibility)
    – 7/26/06 – W3C released 8th draft of XHTML 2.0
Beyond HTML

   With the different types of code …
    YOU have to tell the BROWSER
    what to do OTHERWISE it uses a
    default code
   We do this with DOCTYPES!
Beyond HTML (transitional)
    Now you have to ―prep‖ the browser
    <!DOCTYPE HTML PUBLIC ―-//W3C//DTD HTML 4.01 Transitional//EN‖ ―http://www.w3.org/TR/html4/loose.dtd‖>




       <HTML> is the first element
       Standard is Publicly available




                             Using html 4.01 written in English
                               Transitional allows for legacy,
                                Non standard HTML to work
                                                                            File at W3C that identifies
Not HTML executable code
                                                                                     standard
Beyond HTML
    Now you have to ―prep‖ the browser
    <meta http-equiv=―Content-Type‖ content=―text/html; charset=ISO-8859-1‖>




    Meta tells browser about
        Content in page



                                Using an HTML file


                                                          Using a special character encoding
                                                                 Latin-1 characters –
                                                               all European languages
Beyond HTML

   Standards make using browsers easier
   So…You told the browser that you are
    using html 4.01 … But are you???
   Check using http://validator.w3.org
   If it passes … you are validated (sort
    of)
Beyond HTML (strict)
    Now you have to ―prep‖ the browser
    <!DOCTYPE HTML PUBLIC ―-//W3C//DTD HTML 4.01//EN‖ ―http://www.w3.org/TR/html4/strict.dtd‖>




                           Transitional is gone!

                                                             We move to STRICT!


    Check using http://validator.w3.org
Beyond HTML




                          So who cares?

   If it works – relax and enjoy!
   If not .. Go back and fix the pages
   Benefits
     – Adheres to standards
     – ADA compliance (alt attributes with images)
HTML 4.01

   Always start each page with a DOCTYPE
   <html> starts and </html> ends page
   Everything must go in <head> or <body>

   <head>
    – Always use a <title>
    – <meta> and <style> optional
   <body>
    – <h?>, <p>, <blockquote> allowed
    – More rules (see a tutorial – w3c.org)
HTML 4.01

   4.01 is the widely supported
    standard
   W3C defines ―standards‖
   Browsers will work with original
    HTML but who knows for how long?
HTML 5

• HTML5 ≈ HTML 5 + CSS 3 + JavaScript
• HTML5 is a suite of tools for:
   • Markup (HTML 5)
   • Presentation (CSS 3)
   • Interaction (DOM, Ajax, APIs)
• Brought on by the evolving use of the web
Example (old style)
 <html>
 <head>
   <title>Singleton’s Page</title>
 </head>
 <body bgcolor="yellow" text="black">
 <p>
 As you can see by my performance, I can play with the big boys inside and fading
 away. I am <font face="arial">6ft 9inches and weigh 220 lbs</font> and I have
 good leaping ability. So, here's why you should come seem me:
 </p>
 <ul>
 <li>Stronger Upper Body
 <li>Accuracy with free throws
 <li>Ability to DUNK
 </ul>
 <p align ="right">
 NOLES ROCK!
 <center><font size="small">This page brought to you by Warchant
 Promotions</font></center>
 </body>
 </html>
Validator Results
   The following missing or conflicting information caused the validator to perform guesswork prior to validation. If the
    guess or fallback is incorrect, it may make validation results entirely incoherent. It is highly recommended to check
    these potential issues, and, if necessary, fix them and re-validate the document.
   Unable to Determine Parse Mode!
   The validator can process documents either as XML (for document types such as XHTML, SVG, etc.) or SGML (for HTML
    4.01 and prior versions). For this document, the information available was not sufficient to determine the parsing mode
    unambiguously, because:
       –   in Direct Input mode, no MIME Media Type is served to the validator
       –   No known Document Type could be detected
       –   No XML declaration (e.g <?xml version="1.0"?>) could be found at the beginning of the document.
       –   No XML namespace (e.g <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">) could be found at the root of
           the document.
   As a default, the validator is falling back to SGML mode.
   No DOCTYPE found! Checking with default HTML 4.01 Transitional Document Type.
   No DOCTYPE Declaration could be found or recognized in this document. This generally means that the document is
    not declaring its Document Type at the top. It can also mean that the DOCTYPE declaration contains a spelling error, or
    that it is not using the correct syntax.
   The document was checked using a default "fallback" Document Type Definition that closely resembles ―HTML 4.01
    Transitional‖.
   Learn how to add a doctype to your document from our FAQ.
   ↑ Top
   Validation Output: 1 Error
   Line 1, Column 0: no document type declaration; implying "<!DOCTYPE HTML SYSTEM>".<html> ✉
   The checked page did not contain a document type ("DOCTYPE") declaration. The Validator has tried to validate with a
    fallback DTD, but this is quite likely to be incorrect and will generate a large number of incorrect error messages. It is
    highly recommended that you insert the proper DOCTYPE declaration in your document -- instructions for doing this are
    given above -- and it is necessary to have this declaration before the page can be declared to be valid.
Second try (loose)
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN―
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
  <title>Singleton’s Page</title>
</head>
<body bgcolor="yellow" text="black">
<p>
As you can see by my performance, I can play with the big boys inside and fading away. I am <font
face="arial">6ft 9inches and weigh 220 lbs</font> and I have good leaping ability. So, here's why you
should come seem me:
</p>
<ul>
<li>Stronger Upper Body
<li>Accuracy with free throws
<li>Ability to DUNK
</ul>
<p align ="right">
NOLES ROCK!
<center><font size="small">This page brought to you by Warchant Promotions</font></center>
</body>
</html>
Validator Results (loose)
Week 8



Validator Results (strict)

Validation Output: 8 Errors
Line 7, Column 14: there is no attribute "BGCOLOR".<body bgcolor="yellow"
text="black">
Line 7, Column 28: there is no attribute "TEXT".<body bgcolor="yellow" text="black"> ✉
Line 9, Column 105: there is no attribute "FACE".…e and fading away. I am <font
face="arial">7ft 1inches and weigh 241 lbs</f ✉
Line 9, Column 112: element "FONT" undefined.…ading away. I am <font face="arial">7ft
1inches and weigh 241 lbs</font> an ✉
Line 16, Column 10: there is no attribute "ALIGN".<p align ="right"> ✉
Line 18, Column 7: element "CENTER" undefined.<center><font size="small">This page
brought to you by Warchant Promotions</font ✉
Line 18, Column 19: there is no attribute "SIZE".<center><font size="small">This page
brought to you by Warchant Promotions</font ✉
Line 18, Column 26: element "FONT" undefined.<center><font size="small">This page
brought to you by Warchant Promotions</font ✉


SO NOW YOU GO FIX THESE!
XML (eXtensible Markup Language)

    A programming language/specification developed by the
     W3C - pared-down version of SGML (standard general
     markup language - IBM markup initiative)


    It enables Web authors and designers to create their own
     customized tags to provide functionality not available with
     HTML - XML is great for information exchange


    Widely used system for defining data formats, provides a
     very rich system to define complex documents and data
     structures such as invoices, molecular data, news feeds,
     glossaries, inventory descriptions, real estate properties, etc.
XML (eXtensible Markup Language)

    As long as a programmer has the XML definition for a
     collection of data (often called a "schema") then they can
     create a program to reliably process any data formatted
     according to those rules


    ―The introduction of XML is in many ways like the creation
     of writing in the evolution of language. People had spoken
     language for a long period before they got to the point of
     inventing writing. But as soon as they did, they were able
     to make huge steps forward‖ – David Turner, MICROSOFT
XML (eXtensible Markup Language)

    XML means ―Extensible Markup Language‖ - not fixed
     format like HTML
    XML is a meta-language - a language for describing
     other languages
    Enables you to define your own customized markup
     languages for different classes of documents
    IBM, Microsoft, Oracle and Sun all agree: XML is the
     key to e-business
    XML enables business application sharing, direct
     transactions and other business applications
    Blending EDI (electronic data exchange) with HTML for
     business
XML (eXtensible Markup Language)

 <?xml version="1.0" encoding="ISO-8859-1"?>
 <note>
    <to>Tom</to>
    <from>Janice</from>
    <heading>Reminder</heading>
    <body>Don't forget the money!</body>
 </note>
XML (eXtensible Markup Language)

    Element
     – delimited by angle brackets
     – Identify the nature of the content they
       surround
     – General format: <element> … </element>
     – Empty element: <empty-Element/>
    Attribute
     – Name-value pairs that occur inside
       start-tags after element name, like:
        • <element attribute="value">
XML (eXtensible Markup Language)
<h1> Bibliography </h1>
<p> <i> Foundations of DBs</i>, Abiteboul, Hull, Vianu
<br> Addison-Wesley, 1995
<p> <i> Logics for DBs and ISs </i>, Chomicki, Saake, eds.
                                                             HTML
<br> Kluwer, 1998


<bibliography>
  <book> <title> Foundations of DBs </title>
           <author> Abiteboul </author>
           <author> Hull </author>
          <author> Vianu </author>
           <publisher> Addison-Wesley </publisher>
                   ....
                                                             XML
   </book>
  <book> ... <editor> Chomicki </editor>... </book>   ...

</bibliography>
XML (eXtensible Markup Language)

http://xml.coverpages.o
 rg/xmlApplications.ht
 ml
XML (eXtensible Markup Language)

   XML is a language
   It has types, structure, like any other programming language
   To start the PAGE!
      – Declaration
          • Includes
              – A declaration: version, encoding, standalone
              – An optional DTD (Document Type Definition )
          • Example
              – <?xml version="1.0" encoding="ISO-8859-1"
                standalone="yes"?>

   NEXT – XHTML!
Meta Data Example

   http://www.richardjurban.net/dash
    board/
Meta Data Example

   XHTML
    – is aimed to replace HTML
    – is almost identical to HTML 4.01
    – is a stricter (hence the validator) and cleaner
      version of HTML
   XML vs XHTML
    – XML is a markup language designed for
      describing data
    – XHTML is HTML redefined as an XML
      application
    – XHTML is a ―bridge‖ between HTML and XML
XHTML (eXtensible Hypertext Markup Language)

    HTML started out as a way of way of
     describing the structure of documents,
     with tags to format
    Users demanded control over the
     appearance of documents
    HTML acquired tags to control fonts,
     alignment, etc.
    The result is a markup language that does
     both, but is very messy
XHTML (eXtensible Hypertext Markup Language)

    XHTML elements must be properly nested
         <b><i>bold and italic</b></i> is wrong
    XHTML documents must be well-formed
         <html>
         <head> ... </head>
         <body> ... </body>
         </html>
    Tag names must be in lowercase
    All XHTML elements must be closed
      – <br />, <hr />, <img src="smile.gif" />
      – Note: Some browsers require a space before the
         /
    Attribute names must also be in lower case
      – Example: <table width="100%">
    Attribute values must be quoted
      – Example: <table width="100%">
DTD (Document Type Definitions)

    Describes the syntax to use for the current
     document
    There are three different DTDs for XHTML—
     you can pick the one you want
      – These DTDs are public and on the web
      – You must start your XHTML document
        with a reference to one of these DTDs
    Every XHTML document must begin with
     one of the DOCTYPE declarations (DTDs)
DTD (Document Type Definitions)

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

    Strict - Use for really clean markup, with no display information
     (no font, color, or size information) or use with CSS (Cascading
     Style Sheets) if you want to define how the document should
     look
    Transitional - Use with standard HTML and/or with CSS; Allows
     deprecated HTML elements
    Frameset - Use if your document uses HTML frames
DTD (Document Type Definitions)

 <!DOCTYPE html PUBLIC "-//W3C//DTD
 XHTML 1.0 Strict//EN―
 ―http://www.w3.org/TR/xhtml1/DTD/xhtml
 1-strict.dtd">
 <html>
   <head>
      <title>A simple document</title>
   </head>
   <body>
      <p>A simple paragraph.</p>
   </body>
 </html>
Questions

More Related Content

What's hot

Web I - 02 - XHTML Introduction
Web I - 02 - XHTML IntroductionWeb I - 02 - XHTML Introduction
Web I - 02 - XHTML IntroductionRandy Connolly
 
Essential Javascript -- A Javascript &lt;b>Tutorial&lt;/b>
Essential Javascript -- A Javascript &lt;b>Tutorial&lt;/b>Essential Javascript -- A Javascript &lt;b>Tutorial&lt;/b>
Essential Javascript -- A Javascript &lt;b>Tutorial&lt;/b>tutorialsruby
 
The Difference between HTML, XHTML & HTML5 for Beginners
The Difference between HTML, XHTML & HTML5 for BeginnersThe Difference between HTML, XHTML & HTML5 for Beginners
The Difference between HTML, XHTML & HTML5 for BeginnersRasin Bekkevold
 
Css presentation lecture 1
Css presentation lecture 1Css presentation lecture 1
Css presentation lecture 1Mudasir Syed
 
XHTML and CSS
XHTML and CSS XHTML and CSS
XHTML and CSS peak3
 
Introduction to XML, XHTML and CSS
Introduction to XML, XHTML and CSSIntroduction to XML, XHTML and CSS
Introduction to XML, XHTML and CSSJussi Pohjolainen
 
What is html xml and xhtml
What is html xml and xhtmlWhat is html xml and xhtml
What is html xml and xhtmlFkdiMl
 
Hypertext markup language (html)
Hypertext markup language (html)Hypertext markup language (html)
Hypertext markup language (html)Aksa Sahi
 
HTML (Hyper Text Markup Language)
HTML (Hyper Text Markup Language)HTML (Hyper Text Markup Language)
HTML (Hyper Text Markup Language)actanimation
 
IN LIVING CODING
IN LIVING CODINGIN LIVING CODING
IN LIVING CODINGkdhicks2
 

What's hot (20)

Web I - 02 - XHTML Introduction
Web I - 02 - XHTML IntroductionWeb I - 02 - XHTML Introduction
Web I - 02 - XHTML Introduction
 
Essential Javascript -- A Javascript &lt;b>Tutorial&lt;/b>
Essential Javascript -- A Javascript &lt;b>Tutorial&lt;/b>Essential Javascript -- A Javascript &lt;b>Tutorial&lt;/b>
Essential Javascript -- A Javascript &lt;b>Tutorial&lt;/b>
 
Xhtml
XhtmlXhtml
Xhtml
 
The Difference between HTML, XHTML & HTML5 for Beginners
The Difference between HTML, XHTML & HTML5 for BeginnersThe Difference between HTML, XHTML & HTML5 for Beginners
The Difference between HTML, XHTML & HTML5 for Beginners
 
Css presentation lecture 1
Css presentation lecture 1Css presentation lecture 1
Css presentation lecture 1
 
XHTML and CSS
XHTML and CSS XHTML and CSS
XHTML and CSS
 
HTML5 CSS3 Basics
HTML5 CSS3 Basics HTML5 CSS3 Basics
HTML5 CSS3 Basics
 
Introduction to XML, XHTML and CSS
Introduction to XML, XHTML and CSSIntroduction to XML, XHTML and CSS
Introduction to XML, XHTML and CSS
 
Xhtml 2010
Xhtml 2010Xhtml 2010
Xhtml 2010
 
What is html xml and xhtml
What is html xml and xhtmlWhat is html xml and xhtml
What is html xml and xhtml
 
HTML/CSS Lecture 1
HTML/CSS Lecture 1HTML/CSS Lecture 1
HTML/CSS Lecture 1
 
XHTML
XHTMLXHTML
XHTML
 
Hypertext markup language (html)
Hypertext markup language (html)Hypertext markup language (html)
Hypertext markup language (html)
 
HTML 5 Overview
HTML 5 OverviewHTML 5 Overview
HTML 5 Overview
 
About html
About htmlAbout html
About html
 
HTML (Hyper Text Markup Language)
HTML (Hyper Text Markup Language)HTML (Hyper Text Markup Language)
HTML (Hyper Text Markup Language)
 
Hyper Text Mark-up Language
Hyper Text Mark-up Language Hyper Text Mark-up Language
Hyper Text Mark-up Language
 
IN LIVING CODING
IN LIVING CODINGIN LIVING CODING
IN LIVING CODING
 
html5.ppt
html5.ppthtml5.ppt
html5.ppt
 
Introduction to WEB HTML, CSS
Introduction to WEB HTML, CSSIntroduction to WEB HTML, CSS
Introduction to WEB HTML, CSS
 

Similar to LIS3353 SP12 Week 8

WT Module-1.pdf
WT Module-1.pdfWT Module-1.pdf
WT Module-1.pdfRamyaH11
 
Web engineering notes unit 3
Web engineering notes unit 3Web engineering notes unit 3
Web engineering notes unit 3inshu1890
 
Sitepoint.com a basic-html5_template
Sitepoint.com a basic-html5_templateSitepoint.com a basic-html5_template
Sitepoint.com a basic-html5_templateDaniel Downs
 
HTML course.ppt
HTML course.pptHTML course.ppt
HTML course.pptRyanTeo35
 
Web Development From the Ground Up, a Series for Novice ...
Web Development From the Ground Up, a Series for Novice ...Web Development From the Ground Up, a Series for Novice ...
Web Development From the Ground Up, a Series for Novice ...webhostingguy
 
Web Engineering UNIT III as per RGPV Syllabus
Web Engineering UNIT III as per RGPV SyllabusWeb Engineering UNIT III as per RGPV Syllabus
Web Engineering UNIT III as per RGPV SyllabusNANDINI SHARMA
 
Delhi student's day
Delhi student's dayDelhi student's day
Delhi student's dayAnkur Mishra
 
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 1Erin M. Kidwell
 
Html5 deciphered - designing concepts part 1
Html5 deciphered - designing concepts part 1Html5 deciphered - designing concepts part 1
Html5 deciphered - designing concepts part 1Paxcel Technologies
 
HTML validation, microformats, jQuery
HTML validation, microformats, jQueryHTML validation, microformats, jQuery
HTML validation, microformats, jQueryJeffrey Barke
 
Web Concepts - an introduction - introduction
Web Concepts - an introduction - introductionWeb Concepts - an introduction - introduction
Web Concepts - an introduction - introductionclement swarnappa
 

Similar to LIS3353 SP12 Week 8 (20)

Fundamentals of HTML5
Fundamentals of HTML5Fundamentals of HTML5
Fundamentals of HTML5
 
WT Module-1.pdf
WT Module-1.pdfWT Module-1.pdf
WT Module-1.pdf
 
mst_unit1.pptx
mst_unit1.pptxmst_unit1.pptx
mst_unit1.pptx
 
Web engineering notes unit 3
Web engineering notes unit 3Web engineering notes unit 3
Web engineering notes unit 3
 
Sitepoint.com a basic-html5_template
Sitepoint.com a basic-html5_templateSitepoint.com a basic-html5_template
Sitepoint.com a basic-html5_template
 
HTML course.ppt
HTML course.pptHTML course.ppt
HTML course.ppt
 
Xhtml validation
Xhtml validationXhtml validation
Xhtml validation
 
Web Development From the Ground Up, a Series for Novice ...
Web Development From the Ground Up, a Series for Novice ...Web Development From the Ground Up, a Series for Novice ...
Web Development From the Ground Up, a Series for Novice ...
 
Web Engineering UNIT III as per RGPV Syllabus
Web Engineering UNIT III as per RGPV SyllabusWeb Engineering UNIT III as per RGPV Syllabus
Web Engineering UNIT III as per RGPV Syllabus
 
HTML Basics by software development company india
HTML Basics by software development company indiaHTML Basics by software development company india
HTML Basics by software development company india
 
Delhi student's day
Delhi student's dayDelhi student's day
Delhi student's day
 
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
 
Html5 deciphered - designing concepts part 1
Html5 deciphered - designing concepts part 1Html5 deciphered - designing concepts part 1
Html5 deciphered - designing concepts part 1
 
Html.pptx
Html.pptxHtml.pptx
Html.pptx
 
Html basics
Html basicsHtml basics
Html basics
 
HTML5 and Joomla! 2.5 Template
HTML5 and Joomla! 2.5 TemplateHTML5 and Joomla! 2.5 Template
HTML5 and Joomla! 2.5 Template
 
HTML validation, microformats, jQuery
HTML validation, microformats, jQueryHTML validation, microformats, jQuery
HTML validation, microformats, jQuery
 
HTML 5
HTML 5HTML 5
HTML 5
 
Iwt module 1
Iwt  module 1Iwt  module 1
Iwt module 1
 
Web Concepts - an introduction - introduction
Web Concepts - an introduction - introductionWeb Concepts - an introduction - introduction
Web Concepts - an introduction - introduction
 

More from Amanda Case

LIS3021 Group 7 Fall2012 T@llyCo
LIS3021 Group 7 Fall2012 T@llyCoLIS3021 Group 7 Fall2012 T@llyCo
LIS3021 Group 7 Fall2012 T@llyCoAmanda Case
 
LIS3353 SP12 Week 10
LIS3353 SP12 Week 10LIS3353 SP12 Week 10
LIS3353 SP12 Week 10Amanda Case
 
LIS3353 SP12 Week 13
LIS3353 SP12 Week 13LIS3353 SP12 Week 13
LIS3353 SP12 Week 13Amanda Case
 
LIS3353 SP12 Week 12
LIS3353 SP12 Week 12LIS3353 SP12 Week 12
LIS3353 SP12 Week 12Amanda Case
 
LIS3353 SP12 Week 11
LIS3353 SP12 Week 11LIS3353 SP12 Week 11
LIS3353 SP12 Week 11Amanda Case
 
LIS3353 SP12 Week 10a
LIS3353 SP12 Week 10aLIS3353 SP12 Week 10a
LIS3353 SP12 Week 10aAmanda Case
 
LIS3353 SP12 Week 10
LIS3353 SP12 Week 10LIS3353 SP12 Week 10
LIS3353 SP12 Week 10Amanda Case
 
LIS3353 SP12 Week 9
LIS3353 SP12 Week 9LIS3353 SP12 Week 9
LIS3353 SP12 Week 9Amanda Case
 
LIS3353 SP12 Week 7
LIS3353 SP12 Week 7LIS3353 SP12 Week 7
LIS3353 SP12 Week 7Amanda Case
 
LIS3353 SP12 Week 6
LIS3353 SP12 Week 6LIS3353 SP12 Week 6
LIS3353 SP12 Week 6Amanda Case
 
LIS3353 SP12 Week 5a
LIS3353 SP12 Week 5aLIS3353 SP12 Week 5a
LIS3353 SP12 Week 5aAmanda Case
 
LIS3353 SP12 Week 4
LIS3353 SP12 Week 4LIS3353 SP12 Week 4
LIS3353 SP12 Week 4Amanda Case
 
LIS3353 SP12 Week 5
LIS3353 SP12 Week 5LIS3353 SP12 Week 5
LIS3353 SP12 Week 5Amanda Case
 
LIS3353 -SP12 Week 3
LIS3353 -SP12 Week 3LIS3353 -SP12 Week 3
LIS3353 -SP12 Week 3Amanda Case
 
LIS3353 SP 12 Week 2a
LIS3353 SP 12 Week 2aLIS3353 SP 12 Week 2a
LIS3353 SP 12 Week 2aAmanda Case
 
LIS3353 SP12 Week 2
LIS3353 SP12 Week 2LIS3353 SP12 Week 2
LIS3353 SP12 Week 2Amanda Case
 
Lis3353 sp12 week1
Lis3353 sp12 week1Lis3353 sp12 week1
Lis3353 sp12 week1Amanda Case
 
LIS 3353 - Group 1 - GigWalk
LIS 3353 - Group 1 - GigWalkLIS 3353 - Group 1 - GigWalk
LIS 3353 - Group 1 - GigWalkAmanda Case
 

More from Amanda Case (18)

LIS3021 Group 7 Fall2012 T@llyCo
LIS3021 Group 7 Fall2012 T@llyCoLIS3021 Group 7 Fall2012 T@llyCo
LIS3021 Group 7 Fall2012 T@llyCo
 
LIS3353 SP12 Week 10
LIS3353 SP12 Week 10LIS3353 SP12 Week 10
LIS3353 SP12 Week 10
 
LIS3353 SP12 Week 13
LIS3353 SP12 Week 13LIS3353 SP12 Week 13
LIS3353 SP12 Week 13
 
LIS3353 SP12 Week 12
LIS3353 SP12 Week 12LIS3353 SP12 Week 12
LIS3353 SP12 Week 12
 
LIS3353 SP12 Week 11
LIS3353 SP12 Week 11LIS3353 SP12 Week 11
LIS3353 SP12 Week 11
 
LIS3353 SP12 Week 10a
LIS3353 SP12 Week 10aLIS3353 SP12 Week 10a
LIS3353 SP12 Week 10a
 
LIS3353 SP12 Week 10
LIS3353 SP12 Week 10LIS3353 SP12 Week 10
LIS3353 SP12 Week 10
 
LIS3353 SP12 Week 9
LIS3353 SP12 Week 9LIS3353 SP12 Week 9
LIS3353 SP12 Week 9
 
LIS3353 SP12 Week 7
LIS3353 SP12 Week 7LIS3353 SP12 Week 7
LIS3353 SP12 Week 7
 
LIS3353 SP12 Week 6
LIS3353 SP12 Week 6LIS3353 SP12 Week 6
LIS3353 SP12 Week 6
 
LIS3353 SP12 Week 5a
LIS3353 SP12 Week 5aLIS3353 SP12 Week 5a
LIS3353 SP12 Week 5a
 
LIS3353 SP12 Week 4
LIS3353 SP12 Week 4LIS3353 SP12 Week 4
LIS3353 SP12 Week 4
 
LIS3353 SP12 Week 5
LIS3353 SP12 Week 5LIS3353 SP12 Week 5
LIS3353 SP12 Week 5
 
LIS3353 -SP12 Week 3
LIS3353 -SP12 Week 3LIS3353 -SP12 Week 3
LIS3353 -SP12 Week 3
 
LIS3353 SP 12 Week 2a
LIS3353 SP 12 Week 2aLIS3353 SP 12 Week 2a
LIS3353 SP 12 Week 2a
 
LIS3353 SP12 Week 2
LIS3353 SP12 Week 2LIS3353 SP12 Week 2
LIS3353 SP12 Week 2
 
Lis3353 sp12 week1
Lis3353 sp12 week1Lis3353 sp12 week1
Lis3353 sp12 week1
 
LIS 3353 - Group 1 - GigWalk
LIS 3353 - Group 1 - GigWalkLIS 3353 - Group 1 - GigWalk
LIS 3353 - Group 1 - GigWalk
 

Recently uploaded

Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxcallscotland1987
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxVishalSingh1417
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxnegromaestrong
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 
Magic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptxMagic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptxdhanalakshmis0310
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...ZurliaSoop
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Association for Project Management
 
Third Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptxThird Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptxAmita Gupta
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docxPoojaSen20
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
 

Recently uploaded (20)

Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptx
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Magic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptxMagic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptx
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
Third Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptxThird Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptx
 
Asian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptxAsian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptx
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 

LIS3353 SP12 Week 8

  • 1. Technologies LIS 3353 – February 20, 2012 – Week 8
  • 2. Agenda  Debrief on HTML from midterm and A4  IT News  IT in action – interdisciplinary!  HTML validation today and Tuesday  Tuesday: Assignment #6 will be distributed & discussed  Thursday: Quiz and group presentations
  • 3. IT News & Stuff  Beating Moore's Law  https://twitter.com/#!/Chiefkariuki  http://www.codeacademy.com LBS!  http://www.airbnb.com  http://www.relayrides.com
  • 4. Attendance Check!  On the blank side of the index card, write the following: – Your name – Your FSU email address  On the LINED side of the index card, answer this question: – How can location-based services impact your life? Have you ever used such services? Reference the sites we just talked about.  5 minutes – go!
  • 5. Beyond HTML  HTML 1.0 and 2.0 – 1989-> mid 90s – Browser wars with different ―standards‖  HTML 3.0 – 1995-> – Still 2 ways of doing things (IE and Netscape)  HTML 4.0 – 1998-> – W3C intervenes to get rid of the discrepancies – Proposed separating HTML into structure (HTML 4.0) and presentation (CSS)
  • 6. Beyond HTML  HTML 4.01 – 1999-> – W3C rules adopted – Current standard – Birth of CSS but everyone not happy  XHTML 1.0 – 2000-> – HTML (popular, browser-friendly) and XML (strictness, extensibility) – 7/26/06 – W3C released 8th draft of XHTML 2.0
  • 7. Beyond HTML  With the different types of code … YOU have to tell the BROWSER what to do OTHERWISE it uses a default code  We do this with DOCTYPES!
  • 8. Beyond HTML (transitional)  Now you have to ―prep‖ the browser  <!DOCTYPE HTML PUBLIC ―-//W3C//DTD HTML 4.01 Transitional//EN‖ ―http://www.w3.org/TR/html4/loose.dtd‖> <HTML> is the first element Standard is Publicly available Using html 4.01 written in English Transitional allows for legacy, Non standard HTML to work File at W3C that identifies Not HTML executable code standard
  • 9. Beyond HTML  Now you have to ―prep‖ the browser  <meta http-equiv=―Content-Type‖ content=―text/html; charset=ISO-8859-1‖> Meta tells browser about Content in page Using an HTML file Using a special character encoding Latin-1 characters – all European languages
  • 10. Beyond HTML  Standards make using browsers easier  So…You told the browser that you are using html 4.01 … But are you???  Check using http://validator.w3.org  If it passes … you are validated (sort of)
  • 11. Beyond HTML (strict)  Now you have to ―prep‖ the browser  <!DOCTYPE HTML PUBLIC ―-//W3C//DTD HTML 4.01//EN‖ ―http://www.w3.org/TR/html4/strict.dtd‖> Transitional is gone! We move to STRICT! Check using http://validator.w3.org
  • 12. Beyond HTML So who cares?  If it works – relax and enjoy!  If not .. Go back and fix the pages  Benefits – Adheres to standards – ADA compliance (alt attributes with images)
  • 13. HTML 4.01  Always start each page with a DOCTYPE  <html> starts and </html> ends page  Everything must go in <head> or <body>  <head> – Always use a <title> – <meta> and <style> optional  <body> – <h?>, <p>, <blockquote> allowed – More rules (see a tutorial – w3c.org)
  • 14. HTML 4.01  4.01 is the widely supported standard  W3C defines ―standards‖  Browsers will work with original HTML but who knows for how long?
  • 15. HTML 5 • HTML5 ≈ HTML 5 + CSS 3 + JavaScript • HTML5 is a suite of tools for: • Markup (HTML 5) • Presentation (CSS 3) • Interaction (DOM, Ajax, APIs) • Brought on by the evolving use of the web
  • 16. Example (old style) <html> <head> <title>Singleton’s Page</title> </head> <body bgcolor="yellow" text="black"> <p> As you can see by my performance, I can play with the big boys inside and fading away. I am <font face="arial">6ft 9inches and weigh 220 lbs</font> and I have good leaping ability. So, here's why you should come seem me: </p> <ul> <li>Stronger Upper Body <li>Accuracy with free throws <li>Ability to DUNK </ul> <p align ="right"> NOLES ROCK! <center><font size="small">This page brought to you by Warchant Promotions</font></center> </body> </html>
  • 17. Validator Results  The following missing or conflicting information caused the validator to perform guesswork prior to validation. If the guess or fallback is incorrect, it may make validation results entirely incoherent. It is highly recommended to check these potential issues, and, if necessary, fix them and re-validate the document.  Unable to Determine Parse Mode!  The validator can process documents either as XML (for document types such as XHTML, SVG, etc.) or SGML (for HTML 4.01 and prior versions). For this document, the information available was not sufficient to determine the parsing mode unambiguously, because: – in Direct Input mode, no MIME Media Type is served to the validator – No known Document Type could be detected – No XML declaration (e.g <?xml version="1.0"?>) could be found at the beginning of the document. – No XML namespace (e.g <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">) could be found at the root of the document.  As a default, the validator is falling back to SGML mode.  No DOCTYPE found! Checking with default HTML 4.01 Transitional Document Type.  No DOCTYPE Declaration could be found or recognized in this document. This generally means that the document is not declaring its Document Type at the top. It can also mean that the DOCTYPE declaration contains a spelling error, or that it is not using the correct syntax.  The document was checked using a default "fallback" Document Type Definition that closely resembles ―HTML 4.01 Transitional‖.  Learn how to add a doctype to your document from our FAQ.  ↑ Top  Validation Output: 1 Error  Line 1, Column 0: no document type declaration; implying "<!DOCTYPE HTML SYSTEM>".<html> ✉  The checked page did not contain a document type ("DOCTYPE") declaration. The Validator has tried to validate with a fallback DTD, but this is quite likely to be incorrect and will generate a large number of incorrect error messages. It is highly recommended that you insert the proper DOCTYPE declaration in your document -- instructions for doing this are given above -- and it is necessary to have this declaration before the page can be declared to be valid.
  • 18. Second try (loose) <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN― "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Singleton’s Page</title> </head> <body bgcolor="yellow" text="black"> <p> As you can see by my performance, I can play with the big boys inside and fading away. I am <font face="arial">6ft 9inches and weigh 220 lbs</font> and I have good leaping ability. So, here's why you should come seem me: </p> <ul> <li>Stronger Upper Body <li>Accuracy with free throws <li>Ability to DUNK </ul> <p align ="right"> NOLES ROCK! <center><font size="small">This page brought to you by Warchant Promotions</font></center> </body> </html>
  • 20. Week 8 Validator Results (strict) Validation Output: 8 Errors Line 7, Column 14: there is no attribute "BGCOLOR".<body bgcolor="yellow" text="black"> Line 7, Column 28: there is no attribute "TEXT".<body bgcolor="yellow" text="black"> ✉ Line 9, Column 105: there is no attribute "FACE".…e and fading away. I am <font face="arial">7ft 1inches and weigh 241 lbs</f ✉ Line 9, Column 112: element "FONT" undefined.…ading away. I am <font face="arial">7ft 1inches and weigh 241 lbs</font> an ✉ Line 16, Column 10: there is no attribute "ALIGN".<p align ="right"> ✉ Line 18, Column 7: element "CENTER" undefined.<center><font size="small">This page brought to you by Warchant Promotions</font ✉ Line 18, Column 19: there is no attribute "SIZE".<center><font size="small">This page brought to you by Warchant Promotions</font ✉ Line 18, Column 26: element "FONT" undefined.<center><font size="small">This page brought to you by Warchant Promotions</font ✉ SO NOW YOU GO FIX THESE!
  • 21. XML (eXtensible Markup Language)  A programming language/specification developed by the W3C - pared-down version of SGML (standard general markup language - IBM markup initiative)  It enables Web authors and designers to create their own customized tags to provide functionality not available with HTML - XML is great for information exchange  Widely used system for defining data formats, provides a very rich system to define complex documents and data structures such as invoices, molecular data, news feeds, glossaries, inventory descriptions, real estate properties, etc.
  • 22. XML (eXtensible Markup Language)  As long as a programmer has the XML definition for a collection of data (often called a "schema") then they can create a program to reliably process any data formatted according to those rules  ―The introduction of XML is in many ways like the creation of writing in the evolution of language. People had spoken language for a long period before they got to the point of inventing writing. But as soon as they did, they were able to make huge steps forward‖ – David Turner, MICROSOFT
  • 23. XML (eXtensible Markup Language)  XML means ―Extensible Markup Language‖ - not fixed format like HTML  XML is a meta-language - a language for describing other languages  Enables you to define your own customized markup languages for different classes of documents  IBM, Microsoft, Oracle and Sun all agree: XML is the key to e-business  XML enables business application sharing, direct transactions and other business applications  Blending EDI (electronic data exchange) with HTML for business
  • 24. XML (eXtensible Markup Language) <?xml version="1.0" encoding="ISO-8859-1"?> <note> <to>Tom</to> <from>Janice</from> <heading>Reminder</heading> <body>Don't forget the money!</body> </note>
  • 25. XML (eXtensible Markup Language)  Element – delimited by angle brackets – Identify the nature of the content they surround – General format: <element> … </element> – Empty element: <empty-Element/>  Attribute – Name-value pairs that occur inside start-tags after element name, like: • <element attribute="value">
  • 26. XML (eXtensible Markup Language) <h1> Bibliography </h1> <p> <i> Foundations of DBs</i>, Abiteboul, Hull, Vianu <br> Addison-Wesley, 1995 <p> <i> Logics for DBs and ISs </i>, Chomicki, Saake, eds. HTML <br> Kluwer, 1998 <bibliography> <book> <title> Foundations of DBs </title> <author> Abiteboul </author> <author> Hull </author> <author> Vianu </author> <publisher> Addison-Wesley </publisher> .... XML </book> <book> ... <editor> Chomicki </editor>... </book> ... </bibliography>
  • 27. XML (eXtensible Markup Language) http://xml.coverpages.o rg/xmlApplications.ht ml
  • 28. XML (eXtensible Markup Language)  XML is a language  It has types, structure, like any other programming language  To start the PAGE! – Declaration • Includes – A declaration: version, encoding, standalone – An optional DTD (Document Type Definition ) • Example – <?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?>  NEXT – XHTML!
  • 29. Meta Data Example  http://www.richardjurban.net/dash board/
  • 30. Meta Data Example  XHTML – is aimed to replace HTML – is almost identical to HTML 4.01 – is a stricter (hence the validator) and cleaner version of HTML  XML vs XHTML – XML is a markup language designed for describing data – XHTML is HTML redefined as an XML application – XHTML is a ―bridge‖ between HTML and XML
  • 31. XHTML (eXtensible Hypertext Markup Language)  HTML started out as a way of way of describing the structure of documents, with tags to format  Users demanded control over the appearance of documents  HTML acquired tags to control fonts, alignment, etc.  The result is a markup language that does both, but is very messy
  • 32. XHTML (eXtensible Hypertext Markup Language)  XHTML elements must be properly nested <b><i>bold and italic</b></i> is wrong  XHTML documents must be well-formed <html> <head> ... </head> <body> ... </body> </html>  Tag names must be in lowercase  All XHTML elements must be closed – <br />, <hr />, <img src="smile.gif" /> – Note: Some browsers require a space before the /  Attribute names must also be in lower case – Example: <table width="100%">  Attribute values must be quoted – Example: <table width="100%">
  • 33. DTD (Document Type Definitions)  Describes the syntax to use for the current document  There are three different DTDs for XHTML— you can pick the one you want – These DTDs are public and on the web – You must start your XHTML document with a reference to one of these DTDs  Every XHTML document must begin with one of the DOCTYPE declarations (DTDs)
  • 34. DTD (Document Type Definitions)  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1- transitional.dtd">  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1- frameset.dtd">  Strict - Use for really clean markup, with no display information (no font, color, or size information) or use with CSS (Cascading Style Sheets) if you want to define how the document should look  Transitional - Use with standard HTML and/or with CSS; Allows deprecated HTML elements  Frameset - Use if your document uses HTML frames
  • 35. DTD (Document Type Definitions) <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN― ―http://www.w3.org/TR/xhtml1/DTD/xhtml 1-strict.dtd"> <html> <head> <title>A simple document</title> </head> <body> <p>A simple paragraph.</p> </body> </html>