SlideShare a Scribd company logo
1 of 30
Download to read offline
XHTML
                    Foundation of Web Application Development - Part 1




                                                      Vashira Ravipanich
                                                       www.vashira.com


Tuesday, February 3, 2009                                                  1
Road Map
                    • Build it! : XHTML
                    • Paint it! : CSS
                    • Make it fly! : JavaScript
                    • Hook with data! : Server Side Scripts



Tuesday, February 3, 2009                                     2
Road Map
                    • Build it! : XHTML           We are here
                    • Paint it! : CSS
                    • Make it fly! : JavaScript
                    • Hook with data! : Server-Side Scripts



Tuesday, February 3, 2009                                       3
Let’s build the web
                    • Build web pages is not a difficult thing
                    • Just HTML and some styles
                    • Plenty of tools around
                     • Dreamweaver
                     • Even Visual Studio
                    • The problem is...

Tuesday, February 3, 2009                                       4
Let’s build the web
                    •       You can’t master what you don’t really know
                    •       Most WYSIWYG editors produce JUNK tags in
                            your works
                    •       Even worst
                            •   They usually insert massive in-line styles
                            •   They mess up with structure layout
                            •   They help, but not teach
                    •       Back to basic - be Zen!


Tuesday, February 3, 2009                                                    5
Let’s build the web


                        Any Text editor would be more
                        than enough!



Tuesday, February 3, 2009                               6
Web Taxonomy
                    •       Hyperlinks                where is it?


                    • URL = Uniform Resource Locator
                    • HTTP = HyperText Transfer Protocol How to get it?
                    • Browser = HTML reader/interpreter
                                                           Display it




Tuesday, February 3, 2009                                                 7
HTML
                    • What is HTML?
                    • Stands for HyperText Markup Language
                    • If you ever write a blog post, you probably
                            familiar with HTML already
                    • Current stable version is HTML 4


Tuesday, February 3, 2009                                           8
HTML markup
                    • Elements
                    • Attributes
                    •       <element-name attribute=”value”>content</element-name>

                    • Tags - <p>, <ul>, <li>, <b>, <i>, <input>
                    • and a lot more...


Tuesday, February 3, 2009                                                            9
Sample
                            <html>
                               <head>
                                  <title>Hello HTML</title>
                               </head>
                               <body>
                                  <p>Hello World!!</p>
                               </body>
                            </html>



Tuesday, February 3, 2009                                     10
Block or Inline?
                    • All elements belongs to either Block or
                            Inline
                    • Block - p, div, table
                    • Inline - span, b/strong, i/em, u, img, a
                    • Block CANNOT be inside Inline
                    • <em><p>content</p></em>

Tuesday, February 3, 2009                                        11
Common Attributes
                    • Core Attributes
                    • i18n Attributes
                    • Event Attributes
                                            Internationalization



                                         Count characters
                                         between i and n




Tuesday, February 3, 2009                                          12
Core Attributes
                    • id - unique identifier Used by screen reader
                    • class - assign type
                    • title - add more information, show tooltip
                    • style - inject inline style



Tuesday, February 3, 2009                                           13
i18n Attributes
                    • dir - content direction ltr, trl
                    • xml:lang - en, de

                                        Just forget it!




Tuesday, February 3, 2009                                 14
Event Attributes
                    • onclick
                    • ondbclick
                    • onmouseoever
                    • onmouseout
                    • onkeypress
                    • etc...

Tuesday, February 3, 2009                      15
Text Elements
                    • paragraph - p
                    • line break - br
                    • emphasis - i/em
                    • head - h
                    • Two br IS NOT p
                    • Avoid i and b - using em and strong

Tuesday, February 3, 2009                                   16
Semantic HTML
                                    Please...
                    •       Two br IS NOT p
                            •   Look like start a new paragraph
                            •   What about the meaning?
                    •       Avoid i and b - using em and strong
                            •   Look similar
                            •   What about the meaning?
                    •       The problem is accessibility


Tuesday, February 3, 2009                                         17
XHTML
                    • eXtensible HTML
                    • Combination of XML and HTML
                    • Tags from HTML
                    • Rule from XML



Tuesday, February 3, 2009                           18
Why XHTML?
                    • We are living in 2009
                    • Industry standards
                    • Cross browsers support
                    • Validated



Tuesday, February 3, 2009                      19
XHTML structure
                    • One root element per document
                    • Properly nested elements
                    • Close elements
                    • Lowercase elements



Tuesday, February 3, 2009                             20
Properly nested
                               elements
                 Bad                                        Good



                     <p>                   <p>
                     this<strong>is<em>    this<strong>is<strong>
                     </strong>wrong</em>   <em>right</em>
                     </p>                  </p>




Tuesday, February 3, 2009                                           21
Closed elements
                 Bad                                         Good



                     <p>paragraph1          <p>paragraph1</p>
                     <p>paragraph2          <p>paragraph2</p>
                     <br>                   <br />
                     <hr>                   <hr />
                     <img src=”icon.png”>   <img scr=”icon.png” />




Tuesday, February 3, 2009                                            22
Lowercase elements
                 Bad                                            Good



                     <P>                       <p>
                       paragraph3                paragraph3
                       <Img Src=”icon.png”/>     <img src=”icon.png”/>
                     </p>                      </p>




Tuesday, February 3, 2009                                                23
More Syntax
                 Bad                                           Good
                     <table WIDTH=100%>
                                           <table width=”100%”>
                        <tr>
                                              <tr>
                           <td>col1</td>
                                                 <td>col1</td>
                        </tr>
                                              </tr>
                     </table>
                                           </table>
                     <input checked>
                                           <input checked=”checked”>
                     <option selected>
                                           <option selected=”selected”>
                     </option>
                                           </option>



Tuesday, February 3, 2009                                                 24
Sample
                   <!DOCTYPE - html PUBLIC quot;-//W3C//DTD XHTML 1.0 Transitional//ENquot;
                   quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtdquot;>
                   <html>
                      <head>                                            What does it means?
                         <title>Hello HTML</title>
                      </head>
                      <body>
                         <p>Hello World!!</p>
                      </body>
                   </html>


Tuesday, February 3, 2009                                                                     25
Document Type
                                 Declaration
                    • Drive how browser render this document
                    • Beware - if not declare your document may
                            run in Quirks mode
                                                 and your life will be in
                    • XHTML 1.0 Transitional           trouble!




Tuesday, February 3, 2009                                                   26
Need to know more?
                    • There are plenty of (X)HTML tutorials
                            over the internet. Go and read some!
                    • Just Googling “XHTML”
                    • For me, wikipedia is a good place to get
                            started
                    • W3Schools is a good reference when you
                            forget some tags
                                               as I always do :)

Tuesday, February 3, 2009                                          27
Need to know more?
                        Read these useful books




Tuesday, February 3, 2009                         28
Foundation of Web Application
                                Development Series

                    • Part 1 - XHTML
                    • Part 2 - CSS               Others are
                                                coming soon!
                    • Part 3 - JavaScript
                    • Part 4 - Server-Side Scripts



Tuesday, February 3, 2009                                      29
more presentations available in

                 http://www.vashira.com



Tuesday, February 3, 2009                                     30

More Related Content

What's hot

Web Design for Literary Theorists I: Introduction to HTML
Web Design for Literary Theorists I: Introduction to HTMLWeb Design for Literary Theorists I: Introduction to HTML
Web Design for Literary Theorists I: Introduction to HTMLPatrick Mooney
 
Designers & Developers
Designers & DevelopersDesigners & Developers
Designers & DevelopersAndré Luís
 
WordPress & Expired Domains: How To Do It Right!
WordPress & Expired Domains: How To Do It Right!WordPress & Expired Domains: How To Do It Right!
WordPress & Expired Domains: How To Do It Right!iGB Affiliate
 
Blogworkshop Part 1
Blogworkshop Part 1Blogworkshop Part 1
Blogworkshop Part 1planetsab
 
Joi ETech 2009 - Creative Commons
Joi ETech 2009 - Creative CommonsJoi ETech 2009 - Creative Commons
Joi ETech 2009 - Creative CommonsJoi Ito
 
Lecture 1 - Comm Lab: Web @ ITP
Lecture 1 - Comm Lab: Web @ ITPLecture 1 - Comm Lab: Web @ ITP
Lecture 1 - Comm Lab: Web @ ITPyucefmerhi
 

What's hot (9)

Web Design for Literary Theorists I: Introduction to HTML
Web Design for Literary Theorists I: Introduction to HTMLWeb Design for Literary Theorists I: Introduction to HTML
Web Design for Literary Theorists I: Introduction to HTML
 
Lecture2 CSS 2
Lecture2  CSS 2Lecture2  CSS 2
Lecture2 CSS 2
 
Designers & Developers
Designers & DevelopersDesigners & Developers
Designers & Developers
 
WordPress & Expired Domains: How To Do It Right!
WordPress & Expired Domains: How To Do It Right!WordPress & Expired Domains: How To Do It Right!
WordPress & Expired Domains: How To Do It Right!
 
Blogworkshop Part 1
Blogworkshop Part 1Blogworkshop Part 1
Blogworkshop Part 1
 
Lecture 6 Data Driven Design
Lecture 6  Data Driven DesignLecture 6  Data Driven Design
Lecture 6 Data Driven Design
 
Joi ETech 2009 - Creative Commons
Joi ETech 2009 - Creative CommonsJoi ETech 2009 - Creative Commons
Joi ETech 2009 - Creative Commons
 
Lecture 1 - Comm Lab: Web @ ITP
Lecture 1 - Comm Lab: Web @ ITPLecture 1 - Comm Lab: Web @ ITP
Lecture 1 - Comm Lab: Web @ ITP
 
Object Oriented CSS
Object Oriented CSSObject Oriented CSS
Object Oriented CSS
 

Viewers also liked

Android application developement seminar
Android application developement seminarAndroid application developement seminar
Android application developement seminarNiraj Narkhede
 
Android System Developement
Android System DevelopementAndroid System Developement
Android System DevelopementSiji Sunny
 
Android App Development Intro at ESC SV 2012
Android App Development Intro at ESC SV 2012Android App Development Intro at ESC SV 2012
Android App Development Intro at ESC SV 2012Opersys inc.
 
Android application developement
Android application developementAndroid application developement
Android application developementSANJAY0830
 
Introduction to Android App Development
Introduction to Android App DevelopmentIntroduction to Android App Development
Introduction to Android App DevelopmentAndri Yadi
 
Getting Started with HTML5 in Tech Com (STC 2012)
Getting Started with HTML5 in Tech Com (STC 2012)Getting Started with HTML5 in Tech Com (STC 2012)
Getting Started with HTML5 in Tech Com (STC 2012)Peter Lubbers
 

Viewers also liked (6)

Android application developement seminar
Android application developement seminarAndroid application developement seminar
Android application developement seminar
 
Android System Developement
Android System DevelopementAndroid System Developement
Android System Developement
 
Android App Development Intro at ESC SV 2012
Android App Development Intro at ESC SV 2012Android App Development Intro at ESC SV 2012
Android App Development Intro at ESC SV 2012
 
Android application developement
Android application developementAndroid application developement
Android application developement
 
Introduction to Android App Development
Introduction to Android App DevelopmentIntroduction to Android App Development
Introduction to Android App Development
 
Getting Started with HTML5 in Tech Com (STC 2012)
Getting Started with HTML5 in Tech Com (STC 2012)Getting Started with HTML5 in Tech Com (STC 2012)
Getting Started with HTML5 in Tech Com (STC 2012)
 

Similar to Foundation of Web Application Developmnet - XHTML

Rails Internationalization
Rails InternationalizationRails Internationalization
Rails InternationalizationMike Champion
 
Portlets
PortletsPortlets
Portletsssetem
 
Web Standards and Accessibility
Web Standards and AccessibilityWeb Standards and Accessibility
Web Standards and AccessibilityNick DeNardis
 
Joomla Template Development
Joomla Template DevelopmentJoomla Template Development
Joomla Template DevelopmentLinda Coonen
 
No Really, It's All About You
No Really, It's All About YouNo Really, It's All About You
No Really, It's All About YouChris Cornutt
 
Pylons - An Overview: Rapid MVC Web Development with WSGI
Pylons - An Overview: Rapid MVC Web Development with WSGIPylons - An Overview: Rapid MVC Web Development with WSGI
Pylons - An Overview: Rapid MVC Web Development with WSGIChes Martin
 
Bac'n: From Idea to Startup in 21 days
Bac'n: From Idea to Startup in 21 daysBac'n: From Idea to Startup in 21 days
Bac'n: From Idea to Startup in 21 daysScott Kveton
 
3 Landing Page Myths Debunked
3 Landing Page Myths Debunked3 Landing Page Myths Debunked
3 Landing Page Myths DebunkedScott Brinker
 
SMX Advanced: Landing Page Myths
SMX Advanced: Landing Page MythsSMX Advanced: Landing Page Myths
SMX Advanced: Landing Page Mythsion interactive
 
Merb The Super Bike Of Frameworks
Merb The Super Bike Of FrameworksMerb The Super Bike Of Frameworks
Merb The Super Bike Of FrameworksRowan Hick
 
090309 Rgam Presentatie Evernote And Tarpipe Final
090309   Rgam   Presentatie Evernote And Tarpipe Final090309   Rgam   Presentatie Evernote And Tarpipe Final
090309 Rgam Presentatie Evernote And Tarpipe Finalgebbetje
 
Drupal Themes: Past, present and future
Drupal Themes: Past, present and futureDrupal Themes: Past, present and future
Drupal Themes: Past, present and futureNicolas Borda
 
Web Accessibility Gone Wild
Web Accessibility Gone WildWeb Accessibility Gone Wild
Web Accessibility Gone WildJared Smith
 
Email Design Best Practices
Email Design Best PracticesEmail Design Best Practices
Email Design Best Practicescwilcox
 
457 WWDC08 Student Welcome
457 WWDC08 Student Welcome457 WWDC08 Student Welcome
457 WWDC08 Student Welcomerentzsch
 
Improving Drupal's Page Loading Performance
Improving Drupal's Page Loading PerformanceImproving Drupal's Page Loading Performance
Improving Drupal's Page Loading PerformanceWim Leers
 
When To Use Ruby On Rails
When To Use Ruby On RailsWhen To Use Ruby On Rails
When To Use Ruby On Railsdosire
 

Similar to Foundation of Web Application Developmnet - XHTML (20)

Rails Internationalization
Rails InternationalizationRails Internationalization
Rails Internationalization
 
Portlets
PortletsPortlets
Portlets
 
Web Standards and Accessibility
Web Standards and AccessibilityWeb Standards and Accessibility
Web Standards and Accessibility
 
Joomla Template Development
Joomla Template DevelopmentJoomla Template Development
Joomla Template Development
 
No Really, It's All About You
No Really, It's All About YouNo Really, It's All About You
No Really, It's All About You
 
Young Activists
Young ActivistsYoung Activists
Young Activists
 
Depot Best Practices
Depot Best PracticesDepot Best Practices
Depot Best Practices
 
Pylons - An Overview: Rapid MVC Web Development with WSGI
Pylons - An Overview: Rapid MVC Web Development with WSGIPylons - An Overview: Rapid MVC Web Development with WSGI
Pylons - An Overview: Rapid MVC Web Development with WSGI
 
Bac'n: From Idea to Startup in 21 days
Bac'n: From Idea to Startup in 21 daysBac'n: From Idea to Startup in 21 days
Bac'n: From Idea to Startup in 21 days
 
3 Landing Page Myths Debunked
3 Landing Page Myths Debunked3 Landing Page Myths Debunked
3 Landing Page Myths Debunked
 
SMX Advanced: Landing Page Myths
SMX Advanced: Landing Page MythsSMX Advanced: Landing Page Myths
SMX Advanced: Landing Page Myths
 
Merb The Super Bike Of Frameworks
Merb The Super Bike Of FrameworksMerb The Super Bike Of Frameworks
Merb The Super Bike Of Frameworks
 
090309 Rgam Presentatie Evernote And Tarpipe Final
090309   Rgam   Presentatie Evernote And Tarpipe Final090309   Rgam   Presentatie Evernote And Tarpipe Final
090309 Rgam Presentatie Evernote And Tarpipe Final
 
Drupal Themes: Past, present and future
Drupal Themes: Past, present and futureDrupal Themes: Past, present and future
Drupal Themes: Past, present and future
 
Web Accessibility Gone Wild
Web Accessibility Gone WildWeb Accessibility Gone Wild
Web Accessibility Gone Wild
 
Email Design Best Practices
Email Design Best PracticesEmail Design Best Practices
Email Design Best Practices
 
457 WWDC08 Student Welcome
457 WWDC08 Student Welcome457 WWDC08 Student Welcome
457 WWDC08 Student Welcome
 
Improving Drupal's Page Loading Performance
Improving Drupal's Page Loading PerformanceImproving Drupal's Page Loading Performance
Improving Drupal's Page Loading Performance
 
When To Use Ruby On Rails
When To Use Ruby On RailsWhen To Use Ruby On Rails
When To Use Ruby On Rails
 
Looking into HTML5
Looking into HTML5Looking into HTML5
Looking into HTML5
 

More from Vashira Ravipanich

Future of IT Market in Thailand
Future of IT Market in ThailandFuture of IT Market in Thailand
Future of IT Market in ThailandVashira Ravipanich
 
Video Browsing By Direct Manipulation - Draft 1
Video Browsing By Direct Manipulation - Draft 1Video Browsing By Direct Manipulation - Draft 1
Video Browsing By Direct Manipulation - Draft 1Vashira Ravipanich
 
Information Virtualization with Microformats - draft
Information Virtualization with Microformats - draftInformation Virtualization with Microformats - draft
Information Virtualization with Microformats - draftVashira Ravipanich
 
Agile Software Development with XP
Agile Software Development with XPAgile Software Development with XP
Agile Software Development with XPVashira Ravipanich
 

More from Vashira Ravipanich (6)

Lean Software Development
Lean Software DevelopmentLean Software Development
Lean Software Development
 
Future of IT Market in Thailand
Future of IT Market in ThailandFuture of IT Market in Thailand
Future of IT Market in Thailand
 
Ubiquitous Computing
Ubiquitous ComputingUbiquitous Computing
Ubiquitous Computing
 
Video Browsing By Direct Manipulation - Draft 1
Video Browsing By Direct Manipulation - Draft 1Video Browsing By Direct Manipulation - Draft 1
Video Browsing By Direct Manipulation - Draft 1
 
Information Virtualization with Microformats - draft
Information Virtualization with Microformats - draftInformation Virtualization with Microformats - draft
Information Virtualization with Microformats - draft
 
Agile Software Development with XP
Agile Software Development with XPAgile Software Development with XP
Agile Software Development with XP
 

Recently uploaded

Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Neo4j
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Science&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfScience&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfjimielynbastida
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
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
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptxLBM Solutions
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024BookNet Canada
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
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
 

Recently uploaded (20)

Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort ServiceHot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
Science&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfScience&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdf
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
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!
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptx
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
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
 

Foundation of Web Application Developmnet - XHTML

  • 1. XHTML Foundation of Web Application Development - Part 1 Vashira Ravipanich www.vashira.com Tuesday, February 3, 2009 1
  • 2. Road Map • Build it! : XHTML • Paint it! : CSS • Make it fly! : JavaScript • Hook with data! : Server Side Scripts Tuesday, February 3, 2009 2
  • 3. Road Map • Build it! : XHTML We are here • Paint it! : CSS • Make it fly! : JavaScript • Hook with data! : Server-Side Scripts Tuesday, February 3, 2009 3
  • 4. Let’s build the web • Build web pages is not a difficult thing • Just HTML and some styles • Plenty of tools around • Dreamweaver • Even Visual Studio • The problem is... Tuesday, February 3, 2009 4
  • 5. Let’s build the web • You can’t master what you don’t really know • Most WYSIWYG editors produce JUNK tags in your works • Even worst • They usually insert massive in-line styles • They mess up with structure layout • They help, but not teach • Back to basic - be Zen! Tuesday, February 3, 2009 5
  • 6. Let’s build the web Any Text editor would be more than enough! Tuesday, February 3, 2009 6
  • 7. Web Taxonomy • Hyperlinks where is it? • URL = Uniform Resource Locator • HTTP = HyperText Transfer Protocol How to get it? • Browser = HTML reader/interpreter Display it Tuesday, February 3, 2009 7
  • 8. HTML • What is HTML? • Stands for HyperText Markup Language • If you ever write a blog post, you probably familiar with HTML already • Current stable version is HTML 4 Tuesday, February 3, 2009 8
  • 9. HTML markup • Elements • Attributes • <element-name attribute=”value”>content</element-name> • Tags - <p>, <ul>, <li>, <b>, <i>, <input> • and a lot more... Tuesday, February 3, 2009 9
  • 10. Sample <html> <head> <title>Hello HTML</title> </head> <body> <p>Hello World!!</p> </body> </html> Tuesday, February 3, 2009 10
  • 11. Block or Inline? • All elements belongs to either Block or Inline • Block - p, div, table • Inline - span, b/strong, i/em, u, img, a • Block CANNOT be inside Inline • <em><p>content</p></em> Tuesday, February 3, 2009 11
  • 12. Common Attributes • Core Attributes • i18n Attributes • Event Attributes Internationalization Count characters between i and n Tuesday, February 3, 2009 12
  • 13. Core Attributes • id - unique identifier Used by screen reader • class - assign type • title - add more information, show tooltip • style - inject inline style Tuesday, February 3, 2009 13
  • 14. i18n Attributes • dir - content direction ltr, trl • xml:lang - en, de Just forget it! Tuesday, February 3, 2009 14
  • 15. Event Attributes • onclick • ondbclick • onmouseoever • onmouseout • onkeypress • etc... Tuesday, February 3, 2009 15
  • 16. Text Elements • paragraph - p • line break - br • emphasis - i/em • head - h • Two br IS NOT p • Avoid i and b - using em and strong Tuesday, February 3, 2009 16
  • 17. Semantic HTML Please... • Two br IS NOT p • Look like start a new paragraph • What about the meaning? • Avoid i and b - using em and strong • Look similar • What about the meaning? • The problem is accessibility Tuesday, February 3, 2009 17
  • 18. XHTML • eXtensible HTML • Combination of XML and HTML • Tags from HTML • Rule from XML Tuesday, February 3, 2009 18
  • 19. Why XHTML? • We are living in 2009 • Industry standards • Cross browsers support • Validated Tuesday, February 3, 2009 19
  • 20. XHTML structure • One root element per document • Properly nested elements • Close elements • Lowercase elements Tuesday, February 3, 2009 20
  • 21. Properly nested elements Bad Good <p> <p> this<strong>is<em> this<strong>is<strong> </strong>wrong</em> <em>right</em> </p> </p> Tuesday, February 3, 2009 21
  • 22. Closed elements Bad Good <p>paragraph1 <p>paragraph1</p> <p>paragraph2 <p>paragraph2</p> <br> <br /> <hr> <hr /> <img src=”icon.png”> <img scr=”icon.png” /> Tuesday, February 3, 2009 22
  • 23. Lowercase elements Bad Good <P> <p> paragraph3 paragraph3 <Img Src=”icon.png”/> <img src=”icon.png”/> </p> </p> Tuesday, February 3, 2009 23
  • 24. More Syntax Bad Good <table WIDTH=100%> <table width=”100%”> <tr> <tr> <td>col1</td> <td>col1</td> </tr> </tr> </table> </table> <input checked> <input checked=”checked”> <option selected> <option selected=”selected”> </option> </option> Tuesday, February 3, 2009 24
  • 25. Sample <!DOCTYPE - html PUBLIC quot;-//W3C//DTD XHTML 1.0 Transitional//ENquot; quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtdquot;> <html> <head> What does it means? <title>Hello HTML</title> </head> <body> <p>Hello World!!</p> </body> </html> Tuesday, February 3, 2009 25
  • 26. Document Type Declaration • Drive how browser render this document • Beware - if not declare your document may run in Quirks mode and your life will be in • XHTML 1.0 Transitional trouble! Tuesday, February 3, 2009 26
  • 27. Need to know more? • There are plenty of (X)HTML tutorials over the internet. Go and read some! • Just Googling “XHTML” • For me, wikipedia is a good place to get started • W3Schools is a good reference when you forget some tags as I always do :) Tuesday, February 3, 2009 27
  • 28. Need to know more? Read these useful books Tuesday, February 3, 2009 28
  • 29. Foundation of Web Application Development Series • Part 1 - XHTML • Part 2 - CSS Others are coming soon! • Part 3 - JavaScript • Part 4 - Server-Side Scripts Tuesday, February 3, 2009 29
  • 30. more presentations available in http://www.vashira.com Tuesday, February 3, 2009 30