Revert "Export"
[framework/web/web-ui-fw.git] / libs / js / jquery-mobile-1.1.0 / docs / content / content-html.html
1 <!DOCTYPE html> 
2 <html>
3         <head>
4         <meta charset="utf-8">
5         <meta name="viewport" content="width=device-width, initial-scale=1"> 
6         <title>jQuery Mobile Docs - HTML formatting</title> 
7         <link rel="stylesheet"  href="../../css/themes/default/jquery.mobile.css" />  
8         <link rel="stylesheet" href="../_assets/css/jqm-docs.css"/>
9
10         <script src="../../js/jquery.js"></script>
11         <script src="../../docs/_assets/js/jqm-docs.js"></script>
12         <script src="../../js/"></script>
13
14 </head> 
15 <body> 
16
17         <div data-role="page" class="type-interior">
18
19                 <div data-role="header" data-theme="f">
20                 <h1>HTML Formatting</h1>
21                 <a href="../../" data-icon="home" data-iconpos="notext" data-direction="reverse">Home</a>
22                 <a href="../nav.html" data-icon="search" data-iconpos="notext" data-rel="dialog" data-transition="fade">Search</a>
23         </div><!-- /header -->
24
25         <div data-role="content">
26                 <div class="content-primary">
27                 <style>
28                         table { width:100%; }
29                         table caption { text-align:left;  }
30                         table thead th { text-align:left; border-bottom-width:1px; border-top-width:1px; }
31                         table th, td { text-align:left; padding:6px;} 
32                 </style>
33                 
34                 
35         
36                 
37                 <p>The default approach to styling content in jQuery Mobile is simple: Use a light hand.  Our goal is to let the browser's native rendering take precedence; we add a bit of padding for more comfortable readability, and use the <a href="../api/themes.html">theming system</a>  to apply the font family and colors. </p>
38                 <p>Taking a light hand with content styling gives designers and developers a clean slate to work with, instead of fighting against a lot of complex style overhead.</p>
39                 
40                 <h2>Default HTML markup styling</h2>
41                 <p>By default, jQuery Mobile themes use standard HTML styles and sizes for standard markup elements like headers, paragraph content, block quotes, anchor links, standard ordered, unordered and definition lists, and tables &mdash; as shown in the examples below:</p>
42                 <hr>
43                 
44                 <h1>H1 Heading</h1>
45                 <h2>H2 Heading</h2>
46                 <h3>H3 Heading</h3>
47                 <h4>H4 Heading</h4>
48                 <h5>H5 Heading</h5>
49                 <h6>H6 Heading</h6>
50                 
51                 <p>This is a paragraph that contains <strong>strong</strong>, <em>emphasized</em> and <a href="index.html">linked</a> text. Here is more text so you can see how HTML markup works in content. Here is more text so you can see how HTML markup works in content.</p>
52                 
53                 <blockquote>How about some blockquote action with a <cite>cite</cite></blockquote>
54                 
55                 <p>This is another paragraph of text so you can see how HTML markup works in content. This is another paragraph of text so you can see how HTML markup works in content. This is another paragraph of text so you can see how HTML markup works in content.</p>
56                 
57                 <p>We add a few styles to <code>tables</code> and <code>fieldsets</code> to make them more legible, which are easily overridden with customs styles.</p>
58                 
59                 <ul>
60                         <li>Unordered list item 1</li>
61                         <li>Unordered list item 1</li>
62                         <li>Unordered list item 1</li>
63                 </ul>
64                 
65                 <ol>
66                         <li>Ordered list item 1</li>
67                         <li>Ordered list item 1</li>
68                         <li>Ordered list item 1</li>
69                 </ol>
70                 
71                 <dl title="Definition list">
72                         <dt>Definition term</dt>
73                         <dd>I'm the definition text</dd>
74                         <dt>Definition term</dt>
75                         <dd>I'm the definition text</dd>
76                 </dl>
77
78
79
80                 <table summary="This table lists all the JetBlue flights.">
81                   <caption>Travel Itinerary</caption>
82                   <thead>
83                     <tr>
84                        <th scope="col">Flight:</th>  
85                       <th scope="col">From:</th>  
86                       <th scope="col">To:</th>  
87                     </tr>
88                   </thead>
89                   <tfoot>
90                     <tr>
91                       <td colspan="5">Total: 3 flights</td>
92                     </tr>
93                   </tfoot>
94                   <tbody>
95                   <tr>
96                     <th scope="row">JetBlue 983</th>
97                     <td>Boston (BOS)</td>
98                     <td>New York (JFK)</td>
99                   </tr>
100                   <tr>
101                     <th scope="row">JetBlue 354</th>
102                     <td>San Francisco (SFO)</td>
103                     <td>Los Angeles (LAX)</td>
104                   </tr>
105                 <tr>
106                     <th scope="row">JetBlue 465</th>
107                     <td>New York (JFK)</td>
108                     <td>Portland (PDX)</td>
109                   </tr>
110                   </tbody>
111                 </table>
112         
113         
114         </div><!--/content-primary -->          
115         
116         <div class="content-secondary">
117                 
118                 <div data-role="collapsible" data-collapsed="true" data-theme="b" data-content-theme="d">
119                         
120                                 <h3>More in this section</h3>
121                                 
122                                 <ul data-role="listview" data-theme="c" data-dividertheme="d">
123                                 
124                                                 <li data-role="list-divider">Content Formatting</li>
125                                                 <li data-theme="a"><a href="content-html.html">Basic HTML styles</a></li>
126                                                 <li><a href="content-grids.html">Layout grids (columns)</a></li>
127                                                 <li><a href="content-collapsible.html">Collapsible content blocks</a></li>
128                                                 <li><a href="content-collapsible-set.html">Collapsible sets (accordions)</a></li>
129                                                 <li><a href="content-themes.html">Theming content</a></li>
130         
131                                 </ul>
132                 </div>
133         </div>          
134
135 </div><!-- /content -->
136
137 <div data-role="footer" class="footer-docs" data-theme="c">
138                 <p>&copy; 2011-12 The jQuery Foundation</p>
139 </div>
140         
141 </div><!-- /page -->
142
143 </body>
144 </html>