User Tools

Site Tools


eg-259:xhtml

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
eg-259:xhtml [2012/01/20 13:50] – [Hypertext Links] eechriseg-259:xhtml [2012/02/01 20:18] (current) – [Reasons to use XHTML, rather than HTML] eechris
Line 18: Line 18:
 ===== Origins and Evolution of HTML ===== ===== Origins and Evolution of HTML =====
  
-  * HTML was defined with SGML +  * There is a comprehensive History of the evolution of HTML in this Wikipedia article[[wp>HTML#History|HTML -- History]]
-  * Original intent of HTML: General layout of documents that could be displayed by a wide variety of computers +  Mark Pilgrim gives a very readable account of the road to HTML5 in [[http://diveintohtml5.info/past.html|Dive Into HTML5 -- How Did We Get Here?]]
-  * Recent versions: +
-    * HTML 4.0 -- 1997 +
-    * HTML 4.01 -- 1999  +
-    * XHTML 1.0 -- 2000 +
-    * XHTML 1.1 -- 2001 +
-    * [[eg-259:html5|XHTML 2.0 and HTML 5]] -- under development (in 2008) +
-    * Development of XHTML 2 ceased in 2010. HTML5 became mainstream in 2011.+
  
----- +===== Reasons to use the XHTML syntax rather than HTML =====
- +
-//**More about the versions**// +
- +
-  * HTML 4.0 -- 1997 +
-         * Introduced many new features and deprecated +
-         many older features +
-    * HTML 4.01 -- 1999  +
-         * A cleanup of 4.0 +
-    * XHTML 1.0 -- 2000 +
-         * Just 4.01 defined using XML, instead of SGML +
-    * XHTML 1.1 -- 2001 +
-         * Modularized 1.0, and drops frames +
-         * We'll stick to 1.1 and avoid frames +
-    * XHTML 2 and HTML 5 -- under development as of 2008, some browser support planned for Firefox 3.1  +
- +
- +
-===== Reasons to use XHTMLrather than HTML =====+
   * HTML has lax syntax rules, leading to sloppy and sometimes ambiguous documents   * HTML has lax syntax rules, leading to sloppy and sometimes ambiguous documents
   * HTML processors do not even enforce the few syntax rule that do exist in HTML   * HTML processors do not even enforce the few syntax rule that do exist in HTML
Line 258: Line 234:
 --> -->
 <html lang="en"> <html lang="en">
-    <head> +  <head> 
-        <meta charset="utf-8"> +    <meta charset="utf-8"> 
-        <title> Blockquotes </title> +    <title> Blockquotes </title> 
-    </head> +  </head> 
-    <body> +  <body> 
-        <p> +    <p> 
-            Abraham Lincoln is generally regarded as one of the greatest +      Abraham Lincoln is generally regarded as one of the greatest 
-            presidents of the U.S. His most famous speech was delivered +      presidents of the U.S. His most famous speech was delivered 
-            in Gettysburg, Pennsylvania, during the Civil War. This +      in Gettysburg, Pennsylvania, during the Civil War. This 
-            speech began with +      speech began with 
-        </p> +    </p> 
-        <blockquote> +    <blockquote> 
-            <p> +      <p> 
-                "Fourscore and seven years ago our fathers brought forth on +        "Fourscore and seven years ago our fathers brought forth on 
-                this continent, a new nation, conceived in Liberty, and +        this continent, a new nation, conceived in Liberty, and 
-                dedicated to the proposition that all men are created equal. +        dedicated to the proposition that all men are created equal. 
-            </p> +      </p> 
-            <p> +      <p> 
-                Now we are engaged in a great civil war, testing whether +        Now we are engaged in a great civil war, testing whether 
-                that nation or any nation so conceived and so dedicated, +        that nation or any nation so conceived and so dedicated, 
-                can long endure." +        can long endure." 
-            </p> +      </p> 
-        </blockquote> +    </blockquote> 
-        <p> +    <p> 
-            Whatever one's opinion of Lincoln, no one can deny the +      Whatever one's opinion of Lincoln, no one can deny the 
-            enormous and lasting effect he had on the U.S. +      enormous and lasting effect he had on the U.S. 
-        </p> +    </p> 
-    </body>+  </body>
 </html> </html>
 </code> </code>
Line 608: Line 584:
  
 ---- ----
-<code html+<code html|An example to illustrate an unordered list
-<?xml version = "1.0" encoding = "utf-8"?+<!DOCTYPE html>
-<!DOCTYPE html PUBLIC "-//w3c//DTD XHTML 1.1//EN" +
-  "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">+
  
 <!-- unordered.html <!-- unordered.html
      An example to illustrate an unordered list      An example to illustrate an unordered list
      -->      -->
-<html xmlns = "http://www.w3.org/1999/xhtml" xml:lang="en"> +<html lang="en"> 
-  <head> <title> Unordered list </title>+  <head>  
 +      <meta charset="utf-8" /> 
 +      <title> Unordered list </title>
   </head>   </head>
   <body>   <body>
Line 638: Line 614:
  
 ---- ----
-<code html+<code html|An example to illustrate an ordered list
-<?xml version = "1.0" encoding = "utf-8"?+<!DOCTYPE html>
-<!DOCTYPE html PUBLIC "-//w3c//DTD XHTML 1.1//EN" +
-  "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">+
  
 <!-- ordered.html <!-- ordered.html
      An example to illustrate an ordered list      An example to illustrate an ordered list
      -->      -->
-<html xmlns = "http://www.w3.org/1999/xhtml" xml:lang="en"> +<html lang="en"> 
-  <head> <title> Ordered list </title>+  <head>  
 +      <meta charset="ut-8f" /> 
 +      <title> Ordered list </title>
   </head>   </head>
   <body>   <body>
Line 671: Line 647:
 ---- ----
  
-<code html+<code html|An example to illustrate nested lists
-<?xml version = "1.0" encoding = "utf-8"?+<!DOCTYPE html>
-<!DOCTYPE html PUBLIC "-//w3c//DTD XHTML 1.1//EN" +
-   "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +
 <!-- nested_lists.html <!-- nested_lists.html
-     An example to illustrate nested lists +An example to illustrate nested lists 
-  --> +--> 
-<html xmlns = "http://www.w3.org/1999/xhtml" xml:lang="en"> +<html lang="en"> 
-  <head> <title> Nested lists </title>+  <head> 
 +    <meta charset="utf-8" /> 
 +    <title> Nested lists </title>
   </head>   </head>
   <body>   <body>
     <h3> Aircraft Types </h3>     <h3> Aircraft Types </h3>
     <ol>     <ol>
-      <li> General Aviation (piston-driven engines) +      <li> 
 +        General Aviation (piston-driven engines)
         <ol>         <ol>
-          <li> Single-Engine Aircraft +          <li> 
 +            Single-Engine Aircraft
             <ol>             <ol>
-              <li> Tail wheel </li> +              <li> 
-              <li> Tricycle </li> +                Tail wheel 
-            </ol> <br />+              </li> 
 +              <li> 
 +                Tricycle 
 +              </li> 
 +            </ol> 
 +            <br />
           </li>           </li>
-          <li> Dual-Engine Aircraft+          <li> 
 +            Dual-Engine Aircraft
             <ol>             <ol>
-              <li> Wing-mounted engines </li> +              <li> 
-              <li> Push-pull fuselage-mounted engines </li>+                Wing-mounted engines 
 +              </li> 
 +              <li> 
 +                Push-pull fuselage-mounted engines 
 +              </li>
             </ol>             </ol>
           </li>           </li>
- </ol> <br />+        </ol> 
 +        <br />
       </li>       </li>
-      <li> Commercial Aviation (jet engines) +      <li> 
- <ol> +        Commercial Aviation (jet engines) 
-   <li> Dual-Engine +        <ol> 
-     <ol> +          <li> 
-       <li> Wing-mounted engines </li> +            Dual-Engine 
-       <li> Fuselage-mounted engines </li> +            <ol> 
-     </ol> <br /> +              <li> 
-   </li> +                Wing-mounted engines 
-   <li> Tri-Engine +              </li> 
-     <ol> +              <li> 
-       <li> Third engine in vertical stabilizer </li> +                Fuselage-mounted engines 
-       <li> Third engine in fuselage </li> +              </li> 
-     </ol> +            </ol> 
-   </li> +            <br /> 
- </ol>+          </li> 
 +          <li> 
 +            Tri-Engine 
 +            <ol> 
 +              <li> 
 +                Third engine in vertical stabilizer 
 +              </li> 
 +              <li> 
 +                Third engine in fuselage 
 +              </li> 
 +            </ol> 
 +          </li> 
 +        </ol>
       </li>       </li>
     </ol>     </ol>
Line 734: Line 734:
  
 ---- ----
-<code html+<code html|An example to illustrate definition lists
-<?xml version = "1.0" encoding = "utf-8"?+<!DOCTYPE html> 
-<!DOCTYPE html PUBLIC "-//w3c//DTD XHTML 1.1//EN" +
-  "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +
 <!-- definition.html <!-- definition.html
-     An example to illustrate definition lists +An example to illustrate definition lists 
-     --> +--> 
-<html xmnls="http://www.w3.org/1999/xhtml" xml:lang="en"> +<html lang="en"> 
-  <head> <title> Definition lists </title>+  <head> 
 +    <meta charset="utf-8" /> 
 +    <title> Definition lists </title>
   </head>   </head>
   <body>   <body>
     <h3> Single-Engine Cessna Airplanes </h3>     <h3> Single-Engine Cessna Airplanes </h3>
     <dl>     <dl>
-      <dt> 152 </dt> +      <dt> 
-      <dd> Two-place trainer </dd> +        152 
-      <dt> 172 </dt> +      </dt> 
-      <dd> Smaller four-place airplane </dd> +      <dd> 
-      <dt> 182 </dt> +        Two-place trainer 
-      <dd> Larger four-place airplane </dd> +      </dd> 
-      <dt> 210 </dt> +      <dt> 
-      <dd> Six-place airplane - high performance </dd>+        172 
 +      </dt> 
 +      <dd> 
 +        Smaller four-place airplane 
 +      </dd> 
 +      <dt> 
 +        182 
 +      </dt> 
 +      <dd> 
 +        Larger four-place airplane 
 +      </dd> 
 +      <dt> 
 +        210 
 +      </dt> 
 +      <dd> 
 +        Six-place airplane - high performance 
 +      </dd>
     </dl>     </dl>
   </body>   </body>
Line 799: Line 814:
  
 ---- ----
-<code html+<code html|An example of a simple table
-<?xml version = "1.0" encoding = "utf-8"?+<!DOCTYPE html>
-<!DOCTYPE html PUBLIC "-//w3c//DTD XHTML 1.1//EN" +
-   "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +
 <!-- table.html <!-- table.html
-     An example of a simple table +An example of a simple table 
-  --> +--> 
-<html xmlns = "http://www.w3.org/1999/xhtml" xml:lang="en"> +<html lang="en"> 
-  <head> <title> A simple table </title>+  <head> 
 +    <meta charset="utf-8" /> 
 +    <title> A simple table </title>
   </head>   </head>
   <body>   <body>
-    <table border = "border"> +    <table border="border"> 
-      <caption> Fruit Juice Drinks </caption>+      <caption> 
 +        Fruit Juice Drinks 
 +      </caption>
       <tr>       <tr>
-        <th> </th>+        <th></th>
         <th> Apple </th>         <th> Apple </th>
         <th> Orange </th>         <th> Orange </th>
Line 820: Line 836:
       </tr>       </tr>
       <tr>       <tr>
- <th> Breakfast </th> +        <th> Breakfast </th> 
- <td> 0 </td> +        <td> 0 </td> 
- <td> 1 </td> +        <td> 1 </td> 
- <td> 0 </td>+        <td> 0 </td>
       </tr>       </tr>
       <tr>       <tr>
- <th> Lunch </th> +        <th> Lunch </th> 
- <td> 1 </td> +        <td> 1 </td> 
- <td> 0 </td> +        <td> 0 </td> 
- <td> 0 </td>+        <td> 0 </td>
       </tr>       </tr>
       <tr>       <tr>
- <th> Dinner </th> +        <th> Dinner </th> 
- <td> 0 </td> +        <td> 0 </td> 
- <td> 0 </td> +        <td> 0 </td> 
- <td> 1 </td>+        <td> 1 </td>
       </tr>       </tr>
     </table>     </table>
Line 914: Line 930:
   * Download the colspan/rowspan example: [[/eg-259/examples/lecture2/cell_span.html|cell_span.html]]. Here is the complete source code:   * Download the colspan/rowspan example: [[/eg-259/examples/lecture2/cell_span.html|cell_span.html]]. Here is the complete source code:
 <code html> <code html>
-<?xml version = "1.0" encoding = "utf-8"?> +<!DOCTYPE html|An example to illustrate rowspan and colspan>
-<!DOCTYPE html PUBLIC "-//w3c//DTD XHTML 1.1//EN" +
-  "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +
 <!-- cell_span.html <!-- cell_span.html
-     An example to illustrate rowspan and colspan +An example to illustrate rowspan and colspan 
-     --> +--> 
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> +<html lang="en"> 
-  <head> <title> Rowspan and colspan </title>+  <head> 
 +    <meta charset="utf-8" /> 
 +    <title> Rowspan and colspan </title>
   </head>   </head>
   <body>   <body>
-<table border = "border"> +    <table border = "border"> 
-      <caption> Fruit Juice Drinks and Meals </caption>+      <caption> 
 +        Fruit Juice Drinks and Meals 
 +      </caption>
       <tr>       <tr>
         <td rowspan = "2"> &nbsp; </td>         <td rowspan = "2"> &nbsp; </td>
Line 958: Line 975:
 </html> </html>
 </code> </code>
- 
- 
-//**Tables – alignment**// 
- 
-  * The align attribute controls the horizontal placement of the contents in a table cell 
-    * ''align'' is an attribute of ''<tr>'', ''<th>'', and ''<td>'' elements 
-    * Values are ''left'', ''right'', and ''center'' (default) 
-      * note the American English spelling of ''center''. 
-  * The ''valign'' attribute controls the vertical placement of the contents of a table cell 
-    * ''valign'' is an attribute of ''<th>'' and ''<td>'' elements 
-    * Values are ''top'', ''bottom'', and ''center'' (default) 
-  * Example of cell alignment: [[/eg-259/examples/lecture2/cell_align.html|cell_align.html]] 
-<code html> 
-<?xml version = "1.0" encoding = "utf-8"?> 
-<!DOCTYPE html PUBLIC "-//w3c//DTD XHTML 1.1//EN" 
-  "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> 
- 
-<!-- cell_align.html 
-     An example to illustrate align and valign 
-     --> 
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> 
-  <head> <title> Alignment in cells </title> 
-  </head> 
-  <body> 
-<table border = "border"> 
-      <caption> The align and valign attributes </caption> 
-      <tr align = "center"> 
-     <th> </th> 
- <th> Column Label </th> 
- <th> Another One </th> 
- <th> Still Another One </th> 
-      </tr> 
-      <tr> 
-        <th> align </th> 
-        <td align = "left"> Left </th> 
-        <td align = "center"> Center </th> 
-        <td align = "right"> Right </th> 
-      </tr> 
-      <tr> 
-        <th> <br /> valign <br /> <br /> </th> 
-        <td> Default  </th> 
-        <td valign = "top"> Top </th> 
-        <td align = "bottom"> Bottom </th> 
-      </tr> 
-    </table> 
-  </body> 
-</html> 
-</code> 
- 
-//**Tables -- cell spacing**// 
- 
-  * The ''cellspacing'' attribute of ''<table>'' is used to specify the distance between cells in a table 
-  * The ''cellpadding'' attribute of ''<table>'' is used to specify the spacing between the content of a cell and the inner walls of the cell 
-  * Example: [[/eg-259/examples/lecture2/space_pad.html|space_pad.html]] 
-<code html> 
-<?xml version = "1.0" encoding = "utf-8"?> 
-<!DOCTYPE html PUBLIC "-//w3c//DTD XHTML 1.1//EN" 
-  "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> 
- 
-<!-- space_pad.html 
-     An example that illustrates the cellspacing and 
-     cellpadding table attributes 
-     --> 
-<html xmlns = "http://www.w3.org/1999/xhtml" xml:lang="en"> 
-  <head> <title> Cell spacing and cell padding </title> 
-  </head> 
-  <body> 
-    <b>Table 1 (space = 10, pad = 30) </b><br /><br /> 
-    <table border = "5"  cellspacing = "10"  cellpadding = "30"> 
-      <tr> 
-        <td> Small spacing, </td> 
-        <td> large padding </td> 
-      </tr> 
-    </table> 
-    <br /><br /><br /><br /> 
-    <b>Table 2 (space = 30, pad = 10) </b><br /><br /> 
-    <table border = "5"  cellspacing = "30"  cellpadding = "10"> 
-      <tr> 
-        <td> Large spacing, </td> 
-        <td> small padding </td> 
-      </tr> 
-    </table> 
-  </body> 
-</html> 
-</code> 
- 
- 
 ===== Table Sections ===== ===== Table Sections =====
  
Line 1057: Line 987:
     * You can make up the data cell values.     * You can make up the data cell values.
   - Modify, test and validate an XHTML document from Exercise 1 to add a second level column label, Tree, and a second-level row label, Characteristics.   - Modify, test and validate an XHTML document from Exercise 1 to add a second level column label, Tree, and a second-level row label, Characteristics.
-  - Create, test and validate an XHTML document to describe a table with columns for country, national language, capital city and population. There must be at least five countries in the table. You must include attribute specifications for cell padding and cell spacing.+  - Create, test and validate an XHTML document to describe a table with columns for country, national language, capital city and population. There must be at least five countries in the table.
  
  
Line 1065: Line 995:
  
   * Frames are rectangular sections of the display window, each of which can display a different document   * Frames are rectangular sections of the display window, each of which can display a different document
-  * Because frames are no longer part of XHTML, you cannot validate a document that includes frames+  * Because frames are no longer part of HTML5, you cannot validate a document that includes frames
   * For this reason we shall say no more about them in this module!   * For this reason we shall say no more about them in this module!
-  * There is more information, and some examples, in the handout. 
-  * This will **not** be examined. 
- 
----- 
- 
-//**More on Frames (not examined)**// 
- 
-   * The ''<frameset>'' tag specifies the number of frames and their layout in the window 
-   * ''<frameset>'' takes the place of ''<body>''. Cannot have both! 
-   * ''<frameset>'' must have either a ''rows'' attribute or a ''cols'' attribute, or both (usually the case) 
-     * Default is ''1'' 
-   * The possible values for ''rows'' and ''cols'' are numbers, percentages, and asterisks (''*'') 
-     * A number value specifies the row height in pixels - Not terribly useful! 
-     * A percentage specifies the percentage of total window height for the row - Very useful! 
-   * An asterisk after some other specification gives the remainder of the height of the window 
-   * Examples: 
-<code html> 
-          <frameset rows = "150, 200, 300"> 
- 
-          <frameset rows = "25%, 50%, 25%"> 
- 
-          <frameset rows = "50%, 20%, *" > 
- 
-          <frameset rows = "50%, 25%, 25%" 
-                    cols = "40%, *"> 
-</code> 
-   * The ''<frame>'' tag specifies the content of a frame 
-   * The first ''<frame>'' tag in a ''<frameset>'' specifies the content of the first frame, etc. 
-   * Row-major order is used 
-   * Frame content is specified with the ''src'' attribute 
-   * Without a ''src'' attribute, the frame will be empty (such a frame **CANNOT** be filled later) 
-   * If ''<frameset>'' has fewer ''<frame>'' tags than frames, the extra frames are empty 
-   * Scrollbars are implicitly included if needed (they are needed if the specified document will not fit) 
-   * If a ''name'' attribute is included, the content of the frame can be changed later (by selection of a link in some other frame) 
-   * **Note** The Frameset standard must be specified in the ''DOCTYPE'' declaration 
-  * See the frame: [[/eg-259/examples/lecture2/frames.html|frames.html]]. 
-<code html> 
-<?xml version = "1.0" encoding = "utf-8"?> 
-<!DOCTYPE html PUBLIC "-//w3c//DTD XHTML 1.0 Frameset//EN" 
-  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd"> 
- 
-<!-- frames.html 
-     An example to illustrate frames 
-     --> 
-<html xmlns = "http://www.w3.org/1999/xhtml" xml:lang="en"> 
-  <head> <title> Frames </title> 
-  </head> 
-  <frameset cols = "20%, *"> 
-    <frame src = "contents.html" /> 
-    <frame src = "fruits.html"  name = "descriptions" /> 
-  </frameset> 
-</html> 
-</code> 
-   * The ''target'' attribute in ''<a>'' ensures that new content is displayed in the correct frame. 
-   * Here the  contents of the first frame of ''frames.html'', is the table of contents for the second frame: [[/eg-259/examples/lecture2/contents.html|contents.html]] 
-<code html> 
-<?xml version = "1.0" encoding = "utf-8"?> 
-<!DOCTYPE html PUBLIC "-//w3c//DTD XHTML 1.0 Transitional//EN" 
-  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
- 
-<!-- contents.html 
-     The contents of the first frame of frames.html,  
-     which is the table of contents for the second frame 
-     --> 
-<html xmnls="http://www.w3.org/1999/xhtml" xml:lang="en"> 
-<head> <title> Table of Contents Frame </title> 
-</head> 
-<body> 
-<h4> Fruits </h4> 
-<ul> 
-    <li> <a href = "apples.html"  target = "descriptions">  
-            apples </a>  
-    </li> 
-    <li> <a href = "bananas.html"  target = "descriptions"> 
-            bananas </a> 
-    </li> 
-    <li> <a href = "oranges.html"  target = "descriptions"> 
-            oranges </a> 
-    </li> 
-</ul> 
-</body> 
-</html> 
-</code> 
-  * and [[/eg-259/examples/lecture2/fruits.html|fruits.html]] is the initial page to be displayed in the second frame. 
-<code html> 
-<?xml version = "1.0" encoding = "utf-8"?> 
-<!DOCTYPE html PUBLIC "-//w3c//DTD XHTML 1.1//EN" 
-  "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> 
- 
-<!-- fruits.html 
-     The initial contents of the second frame 
-     of frames.html - a general description of fruit 
-     --> 
-<html xmlns = "http://www.w3.org/1999/xhtml" xml:lang="en"> 
-  <head> <title> General Information on Fruits </title> 
-  </head> 
-  <body> 
-    <p> 
-      A fruit is the mature ovary in a flowering plant. 
-      Fruit is clasified by several characteristics, the 
-      most important being the number of ovaries included. 
-      If only a single ovary is included, it is called a 
-      simple fruit. 
-    </p>  
-  </body> 
-</html> 
-</code> 
-  * For the frames example to work, you will need to download [[/eg-259/examples/lecture2/contents.html|contents.html]] and [[/eg-259/examples/lecture2/fruits.html|fruits.html]]. The additional files //apple.html//, //orange.html// and //banana.html// do not exist (but you are invited to create them). 
- 
-**//Nested Frames//** 
- 
-   * It is possible to use nested frames to divide the screen in more interesting ways. 
-   * Here is an example of nested frames ([[/eg-259/examples/lecture2/nested_frames.html|nested_frames.html]]) 
-<code html> 
-<?xml version = "1.0" encoding = "utf-8"?> 
-<!DOCTYPE html PUBLIC "-//w3c//DTD XHTML 1.0 Frameset//EN" 
-  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd"> 
- 
-<!-- nested_frames.html 
-     An example to illustrate nested frames 
-     --> 
-<html xmlns = "http://www.w3.org/1999/xhtml" xml:lang="en"> 
-  <head> <title> Nested frames </title> 
-  </head> 
-  <frameset cols = "40%, *"> 
-    <frameset rows = "50%, *"> 
-      <frame src = "frame1.html" /> 
-      <frame src = "frame2.html" /> 
-    </frameset> 
-    <frameset rows = "20%, 35%, *"> 
-      <frame src = "frame3.html" /> 
-      <frame src = "frame4.html" /> 
-      <frame src = "frame5.html" /> 
-    </frameset> 
-  </frameset> 
-</html> 
-</code> 
-   * To make this example work you will also need [[/eg-259/examples/lecture2/frame1.html|frame1.html]], [[/eg-259/examples/lecture2/frame2.html|frame2.html]], [[/eg-259/examples/lecture2/frame3.html|frame3.html]], [[/eg-259/examples/lecture2/frame4.html|frame4.html]], [[/eg-259/examples/lecture2/frame5.html|frame5.html]].  
-   * Note that in practice, the successful adoption of such a complex frameset is difficult which is one reason for the removal of ''<frameset>'' from XHTML. 
- 
-**//Exercise to Better Understand Frames//** 
- 
-  - Create, test and validate an XHTML document that includes two rows of frames with two frames in each row. The two left-hand frames must occupy 25 percent of the width of the display. The bottom two frames must occupy 40 percent of the height of the display.  
-    * The top-left frame must display the name of your mother and all of her siblings. (There must be a minimum of two siblings, make them up if you must.) 
-    * the bottom-left frame must display the name of your father and all of his siblings. (Once again, there must be a minimum of two siblings.) 
-    * Each name in the left frames must be link to a document that is displayed in the right-hand frame when the link is selected. 
-    * The documents in the right-hand frames are short descriptions of the people. 
  
  
Line 1229: Line 1012:
   * [[eg-259:xhtml|The Structural Layer]]   * [[eg-259:xhtml|The Structural Layer]]
   * [[eg-259:css|The Presentation Layer]]   * [[eg-259:css|The Presentation Layer]]
-  * [[eg-259:html5|XHTML 2 and HTML 5]]+  * [[eg-259:html5|XHTML 2 and HTML5]]
   * [[eg-259:css3|CSS 3]]   * [[eg-259:css3|CSS 3]]
eg-259/xhtml.1327067459.txt.gz · Last modified: 2012/01/20 13:50 by eechris