jquery-mobile/docs/content/content-html.html
2010-10-13 17:40:44 -04:00

111 lines
No EOL
3.2 KiB
HTML
Executable file

<!DOCTYPE html>
<html>
<head>
<title>jQuery Mobile Docs - Content formatting</title>
<link rel="stylesheet" href="../../css/all" />
<script type="text/javascript" src="../../js/all"></script>
<script type="text/javascript" src="../docs/docs.js"></script>
</head>
<body>
<div data-role="page">
<div data-role="header">
<h1>HTML Formatting</h1>
</div><!-- /header -->
<div data-role="content">
<style type="text/css">
table { width:100%; }
table caption { text-align:left; }
table thead th { text-align:left; border-bottom-width:1px; border-top-width:1px; }
table th, td { text-align:left; padding:6px;}
</style>
<p>Our goal is to leave the main content area pretty much unstyled except for adding in a bit of padding and applying the theme font family and color. </p>
<p>We don't use CSS resets or a lot of custom styles because standard HTML markup is provides a lot of visual texture out of the box. By taking a light hand with content styling, it gives designers and developers a clean slate to work with instead of fighting against a lot of complex styles.</p>
<h2>Default HTML markup styling for content areas</h2>
<hr>
<h1>H1 Heading</h1>
<h2>H2 Heading</h2>
<h3>H3 Heading</h3>
<h4>H4 Heading</h4>
<h5>H5 Heading</h5>
<h6>H1 Heading</h6>
<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>
<blockquote>How about some blockquote action with a <cite>cite</cite></blockquote>
<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>
<p>We add a few styles to <code>tables</code> and <code>fieldsets</code> to make them more legible but these are easily overridden with customs styles.</p>
<ul>
<li>Unordered list item 1</li>
<li>Unordered list item 1</li>
<li>Unordered list item 1</li>
</ul>
<ul>
<li>Ordered list item 1</li>
<li>Ordered list item 1</li>
<li>Ordered list item 1</li>
</ul>
<dl title="Definition list">
<dt>Definition term</dt>
<dd>I'm the definition text</dd>
<dt>Definition term</dt>
<dd>I'm the definition text</dd>
</dl>
<table summary="This table lists all the JetBlue flights.">
<caption>Travel Itinerary</caption>
<thead>
<tr>
<th scope="col">Flight:</th>
<th scope="col">From:</th>
<th scope="col">To:</th>
</tr>
</thead>
<tfoot>
<tr>
<td colspan="5">Total: 3 flights</td>
</tr>
</tfoot>
<tbody>
<tr>
<th scope="row">JetBlue 983</th>
<td>Boston (BOS)</td>
<td>New York (JFK)</td>
</tr>
<tr>
<th scope="row">JetBlue 354</th>
<td>San Francisco (SFO)</td>
<td>Los Angeles (LAX)</td>
</tr>
<tr>
<th scope="row">JetBlue 465</th>
<td>New York (JFK)</td>
<td>Portland (PDX)</td>
</tr>
</tbody>
</table>
</div><!-- /content -->
</div><!-- /page -->
</body>
</html>