Introduction to XHTML.

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    Favorites, Groups & Events

    Introduction to XHTML. - Presentation Transcript

    1. Internet Programming An introduction to XHTML.
    2. XHTML
    3. XHTML is simple.
    4. XHTML is simple. it is the skeleton of a web page
    5. XHTML is simple. it is the skeleton of a web page NOT what makes them look pretty
    6. <!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> It starts with a header </title> </head>
    7. <!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> </head> It starts with a header </title> A <body> </body> </html>
    8. <!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> </head> It starts with a header </title> A <body> <h1>and Elements in-between.</h1> </body> </html>
    9. Header Body Elements Doctype - Conforms to Web Standards - Three basic types - Strict - Transitional - Quirks - The doctype let’s the browser know how it should evaluate the XHTML
    10. Header Body Elements Title Tag - A six to eight word description - Displayed at the top of most browsers - Important in Search Engine Optimization
    11. Header Body Elements Title Tag - A six to eight word description - Displayed at the top of most browsers - Important in Search Engine Optimization Meta Tags - A standardized tag to describe your web page - Description - Keywords - Minor Search Engine Optimization Importance
    12. Header Body Elements Code Inclusion - Javascript Imports - CSS Imports ex. <script type=”text/javascript” src=”file.js”></script>
    13. Header Body Elements
    14. Header Body Elements - Elements inside the body will be displayed on the web page
    15. Header Body Elements - Elements inside the body will be displayed on the web page - The body contains the structure of the web page
    16. Header Body Elements - Elements inside the body will be displayed on the web page - The body contains the structure of the web page - The body’s structure will be styled with CSS to give the page a look and feel
    17. Header Body Elements - Elements are XHTML data types used to structure a web page
    18. Header Body Elements - Elements are XHTML data types used to structure a web page - Elements have a beginning tag, ending tag and content in between.
    19. Header Body Elements - Elements are XHTML data types used to structure a web page - Elements have a beginning tag, ending tag and content in between. ex. <body></body>, <p>Hello</p>
    20. Header Body Elements - Elements are XHTML data types used to structure a web page - Elements have a beginning tag, ending tag and content in between. ex. <body></body>, <p>Hello</p> - An element may also have attributes to further describe itself
    21. Header Body Elements - Elements are XHTML data types used to structure a web page - Elements have a beginning tag, ending tag and content in between. ex. <body></body>, <p>Hello</p> - An element may also have attributes to further describe itself ex. <img src=”picture.png” />
    22. Header Body Elements - Elements are XHTML data types used to structure a web page - Elements have a beginning tag, ending tag and content in between. ex. <body></body>, <p>Hello</p> - An element may also have attributes to further describe itself ex. <img src=”picture.png” /> - Sometimes the ending tag is inferred
    23. Header Body Elements - Elements are XHTML data types used to structure a web page - Elements have a beginning tag, ending tag and content in between. ex. <body></body>, <p>Hello</p> - An element may also have attributes to further describe itself ex. <img src=”picture.png” /> - Sometimes the ending tag is inferred ex. <input type=”text” />
    24. Common XHTML Elements
    25. Common XHTML Elements <h1>Heading One</h1> <h2>Heading Two</h2> <h3>Heading Three</h3> <h4>Heading Four</h4> <h5>Heading Five</h5> <h6>Heading Six</h6> <h7>Heading Seven</h7>
    26. Common XHTML Elements
    27. Common XHTML Elements <p>The paragraph element is used for long blocks of text.</p>
    28. Common XHTML Elements <p>The paragraph element is used for long blocks of text.</p> <ul> <li>Lists are used</li> <li>to</li> <li>list out data.</li> </ul>
    29. Common XHTML Elements <p>The paragraph element is used for long blocks of text.</p> <ul> <li>Lists are used</li> <li>to</li> <li>list out data.</li> </ul>
    30. Common XHTML Elements <p>The paragraph element is used for long blocks of text.</p> <ul> <li>Lists are used</li> • Lists are used <li>to</li> • to <li>list out data.</li> • list out data. </ul>
    31. Common XHTML Elements
    32. Common XHTML Elements <a href=”http://google.com” title=”Google”>Link to Google</a>
    33. Common XHTML Elements <a href=”http://google.com” title=”Google”>Link to Google</a> Link to Google
    34. Common XHTML Elements <a href=”http://google.com” title=”Google”>Link to Google</a> Link to Google
    35. Common XHTML Elements <a href=”http://google.com” title=”Google”>Link to Google</a> Link to Google <img src=”rss.png” />
    36. Common XHTML Elements
    37. Common XHTML Elements Tables are used for tabular data. Only.
    38. Common XHTML Elements Tables are used for tabular data. Only. <table> <tr> <td align=”left”>Cell 1</td> <td align=”right”>Cell 2</td> </tr> <tr> <td valign=”middle”>Cell 3</td> <td valign=”bottom”>Cell 4</td> </tr> </table>
    39. Common XHTML Elements Tables are used for tabular data. Only. <table> <tr> <td align=”left”>Cell 1</td> Cell 1 Cell 2 <td align=”right”>Cell 2</td> </tr> <tr> <td valign=”middle”>Cell 3</td> Cell 3 <td valign=”bottom”>Cell 4</td> Cell 4 </tr> </table>
    40. Common XHTML Elements
    41. Common XHTML Elements Forms are used for a variety of reason, but primarily to gather data from a web visitor.
    42. Common XHTML Elements Forms are used for a variety of reason, but primarily to gather data from a web visitor. <form action=”search.php” method=”post”> Name: <input type=”text” name=”email” /> Checkbox: <input type=”checkbox” name=”box” /> State: <select name=”state”> <option value=”TX”>Texas</option> <option value=”CA”>California</option> <option value=”LA”>Louisiana</option> </select> <input type=”submit” value=”Go!” /> </form>
    43. Common XHTML Elements Forms are used for a variety of reason, but primarily to gather data from a web visitor. <form action=”search.php” method=”post”> Name: <input type=”text” name=”email” /> Checkbox: <input type=”checkbox” name=”box” /> State: <select name=”state”> <option value=”TX”>Texas</option> <option value=”CA”>California</option> <option value=”LA”>Louisiana</option> </select> <input type=”submit” value=”Go!” /> </form>
    44. Common XHTML Elements
    45. Common XHTML Elements The elements listed are only a small subset of the available XHTML elements. An exhaustive list of elements can be found on the W3C website listed below. http://www.w3.org/TR/REC-html40/index/ elements.html
    46. For questions, comments or feedback, feel free to contact me. Chad Hutchins hutchins.chad@gmail.com twitter.com/chadhutchins

    + Chad HutchinsChad Hutchins, 3 months ago

    custom

    196 views, 0 favs, 0 embeds more stats

    This presentation was created for the Internet Prog more

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 196
      • 196 on SlideShare
      • 0 from embeds
    • Comments 0
    • Favorites 0
    • Downloads 9
    Most viewed embeds

    more

    All embeds

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories