SlideShare a Scribd company logo
1 of 19
Download to read offline
XHTML	
  1.0	
  	
  
Extensible	
  HyperText	
  Markup	
  Language	
  

               Jussi	
  Pohjolainen	
  
   Tampere	
  University	
  of	
  Applied	
  Sciences	
  
What	
  is	
  XHTML?	
  
•  XHTML™	
  1.0	
  The	
  Extensible	
  HyperText	
  Markup	
  
   Language	
  (Second	
  EdiKon)	
  
   –  hMp://www.w3.org/TR/xhtml1/	
  
•  XHTML	
  is	
  a	
  family	
  of	
  current	
  and	
  future	
  
   document	
  types	
  and	
  modules	
  that	
  reproduce,	
  
   subset,	
  and	
  extend	
  HTML	
  4	
  	
  
•  XHTML	
  family	
  document	
  types	
  are	
  XML	
  based	
  
Rules	
  
•  XHTML	
  document	
  must	
  follow	
  the	
  XML	
  –	
  rules	
  
   (wellformed)	
  
•  It	
  must	
  be	
  valid	
  against	
  one	
  of	
  three	
  DTDs	
  
     –  XHTML	
  Strict	
  
          •  Use	
  the	
  strict	
  DOCTYPE	
  when	
  you	
  want	
  really	
  clean	
  markup,	
  free	
  of	
  
             presentaKonal	
  cluMer.	
  Use	
  it	
  together	
  with	
  CSS.	
  
     –  XHTML	
  TransiKonal	
  
          •  Use	
  the	
  transiKonal	
  DOCTYPE	
  when	
  you	
  want	
  to	
  sKll	
  use	
  HTML's	
  
             presentaKonal	
  features.	
  
     –  XHTML	
  Frameset	
  
          •  Use	
  the	
  frameset	
  DOCTYPE	
  when	
  you	
  want	
  to	
  use	
  HTML	
  frames.	
  	
  
•  Root	
  element	
  must	
  be	
  html
     –  And	
  it	
  must	
  contain	
  xmlns	
  namespace	
  h7p://www.w3.org/
        1999/xhtml	
  
XHTML	
  Example	
  
<?xml version="1.0"?>!
<!DOCTYPE html !
     PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"!
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">!
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
  lang="en">!
  <head>!
    <title>Minimal XHTML 1.0 Document</title>!
  </head>!
  <body>!
    <p>This is a minimal <a href="http://www.w3.org/TR/
  xhtml1/">XHTML 1.0</a> !
    document.</p>!
  </body>!
</html>!
The	
  DTDs	
  
<!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">
Mandatory	
  XHTML	
  Elements	
  
<?xml version="1.0"?>!
<!DOCTYPE html !
     PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"!
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-
  strict.dtd">!
<html xmlns="http://www.w3.org/1999/xhtml">!
  <head>!
    <title>Minimal XHTML 1.0 Document</title>!
  </head>!
  <body>!

</body>!
</html>!
Syntax:	
  Elements	
  
•  XHTML	
  elements	
  must	
  be	
  properly	
  nested	
  
   –  <b><i>hello</i></b>	
  
•  XHTML	
  elements	
  must	
  always	
  be	
  closed	
  
   –  <br/>	
  
•  XHTML	
  elements	
  must	
  be	
  in	
  lowercase	
  
•  XHTML	
  documents	
  must	
  have	
  one	
  root	
  
   element	
  
   –  <html>	
  
Syntax:	
  AMributes	
  
•  AMribute	
  names	
  must	
  be	
  in	
  lower	
  case	
  
    –  <img	
  src="picture.jpg"/>	
  
•  AMribute	
  values	
  must	
  be	
  quoted	
  
    –  <img	
  src="picture.jpg"/>	
  
•  XHTML	
  elements	
  must	
  be	
  in	
  lowercase	
  
•  XHTML	
  documents	
  must	
  have	
  one	
  root	
  
   element	
  
    –  <html>	
  
head -­‐	
  element	
  
•  One	
  mandatory	
  –	
  element:	
  Ktle	
  
    –  Very	
  important:	
  search	
  engines,	
  bookmarking	
  
•  Meta-­‐informaKon 	
  	
  
    –  hMp://www.w3schools.com/tags/tag_meta.asp	
  
•  Linking	
  to	
  other	
  files	
  (CSS)	
  
head	
  –	
  element,	
  example	
  
<?xml version="1.0"?>!
<!DOCTYPE html !
     PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"!
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">!
<html xmlns="http://www.w3.org/1999/xhtml">!
  <head>!
    <title>Minimal XHTML 1.0 Document</title>!
    <meta name="description" content="Simple XHTML example" />!
    <meta name="keywords" content="XHTML" />!
    <meta name="author" content="Jussi Pohjolainen" />!
  </head>!
  <body>!

  </body>!
</html>!
Element	
      DescripHon	
  
<p>            Defines	
  paragraph	
  
<br/>          Defines	
  a	
  single	
  line	
  break	
  
<blockquote>   Defines	
  a	
  long	
  quotaKon	
  
<pre>          Defines	
  preformaMed	
  text	
  
<em>           Defines	
  emphasized	
  text	
  	
  
<strong>       Defines	
  strong	
  text	
  
<code>         Defines	
  computer	
  code	
  text	
  
<tt>           Defines	
  teletype	
  text	
  
<i>            Defines	
  italic	
  text	
  
<b>            Defines	
  bold	
  text	
  
<big>          Defines	
  big	
  text	
  
<small>        Defines	
  small	
  text	
  
<sub>          Defines	
  subscripted	
  text	
  
<sup>          Defines	
  superscripted	
  text	
  
Links	
  
•  Linking	
  outside	
  (absolute	
  path)	
  
     –  <a href="http://www.tamk.fi">TAMK</a>
•  Link	
  inside	
  the	
  site	
  (relaKve	
  path)	
  
     –  <a href="dog.html">Info about my dog</a>
•  The	
  use	
  of	
  Ktle	
  
     –  <a href="http://www.tamk.fi" title="TAMK
        University of Applied Sciences">TAMK</a>
•  How	
  to	
  use?	
  See	
  
     –  hMp://www.cs.tut.fi/~jkorpela/webjulk/1.5.html	
  
Images	
  
•  Linking	
  to	
  a	
  image	
  
    –  <a href="face.jpg">My Face</a>
•  Adding	
  an	
  image	
  to	
  the	
  page	
  
    –  <img src="face.jpg" alt="Picture of me" />
•  Image	
  as	
  a	
  link	
  
    <a href="http://www.tamk.fi">
       <img src="tamk.jpg" alt="TAMK Logo" />
    </a>
•  Use	
  PNGs,	
  JPEGs	
  or	
  GIFs	
  
Lists	
  
•  <ul>	
  –	
  Unordered	
  list	
  
•  <ol>	
  –	
  Ordered	
  list	
  
•  <dl>	
  –	
  DefiniKon	
  list	
  
    –  <dt>	
  –	
  Ktle	
  
    –  <dd> -­‐	
  descripKon	
  
List	
  Examples	
  
<ul>                         <dl>
   <li>Some text</li>        <dt>term</dt>
   <li>Some text</li>
                             <dd>definition</dd>
</ul>
                             <dt>term</dt>
<ol>                         <dd>definition</dd>
   <li>Some text</li>        </dl>
   <li>Some text</li>
</ol>
In	
  Browser	
  
Tables	
  
•  Table	
  element	
  is	
  used	
  to	
  define	
  a	
  table	
  
    <table>
      <tr>
        <th>Month</th>
        <th>Savings</th>
      </tr>
      <tr>
        <td>January</td>
        <td>$100</td>
      </tr>
    </table>
Table	
  with	
  Heading	
  
<table>
  <tr>
    <th>Name</th>
    <th>Telephone</th>
    <th>Mobile Phone</th>
  </tr>
  <tr>
    <td>Bill Gates</td>
    <td>555 77 854</td>
    <td>555 77 855</td>
  </tr>
</table>
Combining	
  Columns	
  and	
  Rows	
  
<table>
   <tr>
     <td colspan="3">WWW-sivun osat</td>
   </tr>
   <tr>
     <td>Rakenne</td>
     <td colspan="2">Asiakaslaitteesta riippuva ulkoasu ja vuorovaikutus</td>
   </tr>
   <tr>
     <td>XHTML</td>
     <td>CSS</td>
     <td>JavaScript</td>
   </tr>
</table>

More Related Content

What's hot (20)

Design Tools Html Xhtml
Design Tools Html XhtmlDesign Tools Html Xhtml
Design Tools Html Xhtml
 
Dhtml
DhtmlDhtml
Dhtml
 
Xhtml
XhtmlXhtml
Xhtml
 
uptu web technology unit 2 html
uptu web technology unit 2 htmluptu web technology unit 2 html
uptu web technology unit 2 html
 
Css presentation lecture 1
Css presentation lecture 1Css presentation lecture 1
Css presentation lecture 1
 
Lecture 4 - Adding XTHML for the Web
Lecture  4 - Adding XTHML for the WebLecture  4 - Adding XTHML for the Web
Lecture 4 - Adding XTHML for the Web
 
Xhtml
XhtmlXhtml
Xhtml
 
Hyper Text Mark-up Language
Hyper Text Mark-up Language Hyper Text Mark-up Language
Hyper Text Mark-up Language
 
Html 5
Html 5Html 5
Html 5
 
Unit ii java script and xhtml documents and dynamic documents with javascript
Unit ii java script and xhtml documents and dynamic documents with javascriptUnit ii java script and xhtml documents and dynamic documents with javascript
Unit ii java script and xhtml documents and dynamic documents with javascript
 
HTML (Hyper Text Markup Language)
HTML (Hyper Text Markup Language)HTML (Hyper Text Markup Language)
HTML (Hyper Text Markup Language)
 
Html
HtmlHtml
Html
 
Introduction to XML
Introduction to XMLIntroduction to XML
Introduction to XML
 
Intr To Html & Xhtml
Intr To Html & XhtmlIntr To Html & Xhtml
Intr To Html & Xhtml
 
1. HTML
1. HTML1. HTML
1. HTML
 
Hushang Gaikwad
Hushang GaikwadHushang Gaikwad
Hushang Gaikwad
 
[Basic HTML/CSS] 1. html - basic tags
[Basic HTML/CSS] 1. html - basic tags[Basic HTML/CSS] 1. html - basic tags
[Basic HTML/CSS] 1. html - basic tags
 
Html
HtmlHtml
Html
 
HTML- Hyper Text Markup Language
HTML- Hyper Text Markup LanguageHTML- Hyper Text Markup Language
HTML- Hyper Text Markup Language
 
Introduction to XML, XHTML and CSS
Introduction to XML, XHTML and CSSIntroduction to XML, XHTML and CSS
Introduction to XML, XHTML and CSS
 

Viewers also liked (6)

Dynamic HTML
Dynamic HTMLDynamic HTML
Dynamic HTML
 
Dhtml
DhtmlDhtml
Dhtml
 
JSON: The Basics
JSON: The BasicsJSON: The Basics
JSON: The Basics
 
Json
JsonJson
Json
 
Js ppt
Js pptJs ppt
Js ppt
 
Java script ppt
Java script pptJava script ppt
Java script ppt
 

Similar to XHTML (20)

HTML/CSS Lecture 1
HTML/CSS Lecture 1HTML/CSS Lecture 1
HTML/CSS Lecture 1
 
Intro to HTML5
Intro to HTML5Intro to HTML5
Intro to HTML5
 
23xml
23xml23xml
23xml
 
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
 
Xml
XmlXml
Xml
 
Xml
XmlXml
Xml
 
HTML
HTMLHTML
HTML
 
Html
HtmlHtml
Html
 
Learning HTML
Learning HTMLLearning HTML
Learning HTML
 
Html and Xhtml
Html and XhtmlHtml and Xhtml
Html and Xhtml
 
Intro to Web Standards
Intro to Web StandardsIntro to Web Standards
Intro to Web Standards
 
Html 5
Html 5Html 5
Html 5
 
Introduction to xml
Introduction to xmlIntroduction to xml
Introduction to xml
 
CHAPTER 1
CHAPTER 1CHAPTER 1
CHAPTER 1
 
Intr to-html-xhtml-1233508169541646-3
Intr to-html-xhtml-1233508169541646-3Intr to-html-xhtml-1233508169541646-3
Intr to-html-xhtml-1233508169541646-3
 
Base HTML & CSS
Base HTML & CSSBase HTML & CSS
Base HTML & CSS
 
FFW Gabrovo PMG - HTML
FFW Gabrovo PMG - HTMLFFW Gabrovo PMG - HTML
FFW Gabrovo PMG - HTML
 
HTML (Hyper Text Markup Language)
HTML (Hyper Text Markup Language)HTML (Hyper Text Markup Language)
HTML (Hyper Text Markup Language)
 
Dhtml chapter2
Dhtml chapter2Dhtml chapter2
Dhtml chapter2
 
Html - By Auroskkil
Html - By AuroskkilHtml - By Auroskkil
Html - By Auroskkil
 

More from Jussi Pohjolainen

libGDX: Screens, Fonts and Preferences
libGDX: Screens, Fonts and PreferenceslibGDX: Screens, Fonts and Preferences
libGDX: Screens, Fonts and PreferencesJussi Pohjolainen
 
libGDX: User Input and Frame by Frame Animation
libGDX: User Input and Frame by Frame AnimationlibGDX: User Input and Frame by Frame Animation
libGDX: User Input and Frame by Frame AnimationJussi Pohjolainen
 
Intro to Building Android Games using libGDX
Intro to Building Android Games using libGDXIntro to Building Android Games using libGDX
Intro to Building Android Games using libGDXJussi Pohjolainen
 
Advanced JavaScript Development
Advanced JavaScript DevelopmentAdvanced JavaScript Development
Advanced JavaScript DevelopmentJussi Pohjolainen
 
libGDX: Simple Frame Animation
libGDX: Simple Frame AnimationlibGDX: Simple Frame Animation
libGDX: Simple Frame AnimationJussi Pohjolainen
 
libGDX: Simple Frame Animation
libGDX: Simple Frame AnimationlibGDX: Simple Frame Animation
libGDX: Simple Frame AnimationJussi Pohjolainen
 
Implementing a Simple Game using libGDX
Implementing a Simple Game using libGDXImplementing a Simple Game using libGDX
Implementing a Simple Game using libGDXJussi Pohjolainen
 
Building Android games using LibGDX
Building Android games using LibGDXBuilding Android games using LibGDX
Building Android games using LibGDXJussi Pohjolainen
 
Creating Asha Games: Game Pausing, Orientation, Sensors and Gestures
Creating Asha Games: Game Pausing, Orientation, Sensors and GesturesCreating Asha Games: Game Pausing, Orientation, Sensors and Gestures
Creating Asha Games: Game Pausing, Orientation, Sensors and GesturesJussi Pohjolainen
 
Creating Games for Asha - platform
Creating Games for Asha - platformCreating Games for Asha - platform
Creating Games for Asha - platformJussi Pohjolainen
 

More from Jussi Pohjolainen (20)

Moved to Speakerdeck
Moved to SpeakerdeckMoved to Speakerdeck
Moved to Speakerdeck
 
Java Web Services
Java Web ServicesJava Web Services
Java Web Services
 
Box2D and libGDX
Box2D and libGDXBox2D and libGDX
Box2D and libGDX
 
libGDX: Screens, Fonts and Preferences
libGDX: Screens, Fonts and PreferenceslibGDX: Screens, Fonts and Preferences
libGDX: Screens, Fonts and Preferences
 
libGDX: Tiled Maps
libGDX: Tiled MapslibGDX: Tiled Maps
libGDX: Tiled Maps
 
libGDX: User Input and Frame by Frame Animation
libGDX: User Input and Frame by Frame AnimationlibGDX: User Input and Frame by Frame Animation
libGDX: User Input and Frame by Frame Animation
 
Intro to Building Android Games using libGDX
Intro to Building Android Games using libGDXIntro to Building Android Games using libGDX
Intro to Building Android Games using libGDX
 
Advanced JavaScript Development
Advanced JavaScript DevelopmentAdvanced JavaScript Development
Advanced JavaScript Development
 
Introduction to JavaScript
Introduction to JavaScriptIntroduction to JavaScript
Introduction to JavaScript
 
Introduction to AngularJS
Introduction to AngularJSIntroduction to AngularJS
Introduction to AngularJS
 
libGDX: Scene2D
libGDX: Scene2DlibGDX: Scene2D
libGDX: Scene2D
 
libGDX: Simple Frame Animation
libGDX: Simple Frame AnimationlibGDX: Simple Frame Animation
libGDX: Simple Frame Animation
 
libGDX: Simple Frame Animation
libGDX: Simple Frame AnimationlibGDX: Simple Frame Animation
libGDX: Simple Frame Animation
 
libGDX: User Input
libGDX: User InputlibGDX: User Input
libGDX: User Input
 
Implementing a Simple Game using libGDX
Implementing a Simple Game using libGDXImplementing a Simple Game using libGDX
Implementing a Simple Game using libGDX
 
Building Android games using LibGDX
Building Android games using LibGDXBuilding Android games using LibGDX
Building Android games using LibGDX
 
Android Threading
Android ThreadingAndroid Threading
Android Threading
 
Creating Asha Games: Game Pausing, Orientation, Sensors and Gestures
Creating Asha Games: Game Pausing, Orientation, Sensors and GesturesCreating Asha Games: Game Pausing, Orientation, Sensors and Gestures
Creating Asha Games: Game Pausing, Orientation, Sensors and Gestures
 
Creating Games for Asha - platform
Creating Games for Asha - platformCreating Games for Asha - platform
Creating Games for Asha - platform
 
Intro to Asha UI
Intro to Asha UIIntro to Asha UI
Intro to Asha UI
 

Recently uploaded

unit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxunit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxBkGupta21
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfMounikaPolabathina
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfPrecisely
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxLoriGlavin3
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxLoriGlavin3
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 

Recently uploaded (20)

unit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxunit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptx
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdf
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 

XHTML

  • 1. XHTML  1.0     Extensible  HyperText  Markup  Language   Jussi  Pohjolainen   Tampere  University  of  Applied  Sciences  
  • 2. What  is  XHTML?   •  XHTML™  1.0  The  Extensible  HyperText  Markup   Language  (Second  EdiKon)   –  hMp://www.w3.org/TR/xhtml1/   •  XHTML  is  a  family  of  current  and  future   document  types  and  modules  that  reproduce,   subset,  and  extend  HTML  4     •  XHTML  family  document  types  are  XML  based  
  • 3. Rules   •  XHTML  document  must  follow  the  XML  –  rules   (wellformed)   •  It  must  be  valid  against  one  of  three  DTDs   –  XHTML  Strict   •  Use  the  strict  DOCTYPE  when  you  want  really  clean  markup,  free  of   presentaKonal  cluMer.  Use  it  together  with  CSS.   –  XHTML  TransiKonal   •  Use  the  transiKonal  DOCTYPE  when  you  want  to  sKll  use  HTML's   presentaKonal  features.   –  XHTML  Frameset   •  Use  the  frameset  DOCTYPE  when  you  want  to  use  HTML  frames.     •  Root  element  must  be  html –  And  it  must  contain  xmlns  namespace  h7p://www.w3.org/ 1999/xhtml  
  • 4. XHTML  Example   <?xml version="1.0"?>! <!DOCTYPE html ! PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"! "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">! <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">! <head>! <title>Minimal XHTML 1.0 Document</title>! </head>! <body>! <p>This is a minimal <a href="http://www.w3.org/TR/ xhtml1/">XHTML 1.0</a> ! document.</p>! </body>! </html>!
  • 5. The  DTDs   <!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">
  • 6. Mandatory  XHTML  Elements   <?xml version="1.0"?>! <!DOCTYPE html ! PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"! "http://www.w3.org/TR/xhtml1/DTD/xhtml1- strict.dtd">! <html xmlns="http://www.w3.org/1999/xhtml">! <head>! <title>Minimal XHTML 1.0 Document</title>! </head>! <body>! </body>! </html>!
  • 7. Syntax:  Elements   •  XHTML  elements  must  be  properly  nested   –  <b><i>hello</i></b>   •  XHTML  elements  must  always  be  closed   –  <br/>   •  XHTML  elements  must  be  in  lowercase   •  XHTML  documents  must  have  one  root   element   –  <html>  
  • 8. Syntax:  AMributes   •  AMribute  names  must  be  in  lower  case   –  <img  src="picture.jpg"/>   •  AMribute  values  must  be  quoted   –  <img  src="picture.jpg"/>   •  XHTML  elements  must  be  in  lowercase   •  XHTML  documents  must  have  one  root   element   –  <html>  
  • 9. head -­‐  element   •  One  mandatory  –  element:  Ktle   –  Very  important:  search  engines,  bookmarking   •  Meta-­‐informaKon     –  hMp://www.w3schools.com/tags/tag_meta.asp   •  Linking  to  other  files  (CSS)  
  • 10. head  –  element,  example   <?xml version="1.0"?>! <!DOCTYPE html ! PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"! "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">! <html xmlns="http://www.w3.org/1999/xhtml">! <head>! <title>Minimal XHTML 1.0 Document</title>! <meta name="description" content="Simple XHTML example" />! <meta name="keywords" content="XHTML" />! <meta name="author" content="Jussi Pohjolainen" />! </head>! <body>! </body>! </html>!
  • 11. Element   DescripHon   <p> Defines  paragraph   <br/> Defines  a  single  line  break   <blockquote> Defines  a  long  quotaKon   <pre> Defines  preformaMed  text   <em> Defines  emphasized  text     <strong> Defines  strong  text   <code> Defines  computer  code  text   <tt> Defines  teletype  text   <i> Defines  italic  text   <b> Defines  bold  text   <big> Defines  big  text   <small> Defines  small  text   <sub> Defines  subscripted  text   <sup> Defines  superscripted  text  
  • 12. Links   •  Linking  outside  (absolute  path)   –  <a href="http://www.tamk.fi">TAMK</a> •  Link  inside  the  site  (relaKve  path)   –  <a href="dog.html">Info about my dog</a> •  The  use  of  Ktle   –  <a href="http://www.tamk.fi" title="TAMK University of Applied Sciences">TAMK</a> •  How  to  use?  See   –  hMp://www.cs.tut.fi/~jkorpela/webjulk/1.5.html  
  • 13. Images   •  Linking  to  a  image   –  <a href="face.jpg">My Face</a> •  Adding  an  image  to  the  page   –  <img src="face.jpg" alt="Picture of me" /> •  Image  as  a  link   <a href="http://www.tamk.fi"> <img src="tamk.jpg" alt="TAMK Logo" /> </a> •  Use  PNGs,  JPEGs  or  GIFs  
  • 14. Lists   •  <ul>  –  Unordered  list   •  <ol>  –  Ordered  list   •  <dl>  –  DefiniKon  list   –  <dt>  –  Ktle   –  <dd> -­‐  descripKon  
  • 15. List  Examples   <ul> <dl> <li>Some text</li> <dt>term</dt> <li>Some text</li> <dd>definition</dd> </ul> <dt>term</dt> <ol> <dd>definition</dd> <li>Some text</li> </dl> <li>Some text</li> </ol>
  • 17. Tables   •  Table  element  is  used  to  define  a  table   <table>   <tr>     <th>Month</th>     <th>Savings</th>   </tr>   <tr>     <td>January</td>     <td>$100</td>   </tr> </table>
  • 18. Table  with  Heading   <table> <tr> <th>Name</th> <th>Telephone</th> <th>Mobile Phone</th> </tr> <tr> <td>Bill Gates</td> <td>555 77 854</td> <td>555 77 855</td> </tr> </table>
  • 19. Combining  Columns  and  Rows   <table> <tr> <td colspan="3">WWW-sivun osat</td> </tr> <tr> <td>Rakenne</td> <td colspan="2">Asiakaslaitteesta riippuva ulkoasu ja vuorovaikutus</td> </tr> <tr> <td>XHTML</td> <td>CSS</td> <td>JavaScript</td> </tr> </table>

Editor's Notes

  1. http://css.maxdesign.com.au/listamatic/