Scheduling Conflict
I will be out of the office the remainder of the week. Please check back on Monday for our regular updates.
Thanks--
Thanks--
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>HTML5 Semantic Markup Demo: Cross Browser</title>
<link rel="stylesheet" href="html5reset.css" type="text/css" />
<link rel="stylesheet" href="html5semanticmarkup.css" type="text/css" />
<!--[if lt IE 9]>
<script src="html5.js"></script>
<![endif]-->
</head>
<body>
<header>
<hgroup>
<h1>Page Header</h1>
<h2>Page Sub Heading</h2>
</hgroup>
</header>
<nav>
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">Projects</a></li>
<li><a href="#">Portfolio</a></li>
<li><a href="#">Profile</a></li>
<li><a href="#">Contact</a></li>
</ul>
</nav>
<article>
<!-- Login Form will go here -->
</article>
<aside>
<header>
<h1>Siderbar Heading</h1>
</header>
<p>Ut sapien enim, porttitor id feugiat non, ultrices non odio. Donec sit amet augue metus, nec sollicitudin est. Donec iaculis porttitor viverra. Sed sed magna ac lectus pharetra iaculis at quis tellus. Nunc quis lorem sit amet nulla viverra mattis. Aenean suscipit libero accumsan sapien fermentum non aliquet lorem rutrum.</p>
</aside>
<footer>
Page Footer
</footer>
</body>
</html>
In the above code, we have first defined the HTML parent tags <!doctype html> which tells the page is HTML5. Then we have head tag, in which we have specified the charset as UTF-8, title tag which says about the title of the page. The next two lines where we have defined the css stylesheets which will actually take care of rendering our html5 form properly in different browsers. The first stylesheet will reset all the html elements and second stylesheet defines the style of the page.
....
<article>
<header>
<h1>Simple HTML5 Login Form</h1>
<time datetime="2010-05-05" pubdate>May 5th, 2010</time>
</header>
Next, we will provide a simple message to the user looking to the page as a content of article inside the p tag. We have started the section after the message in which we will create our html5 login form.
<p>Please provide the authentication credentials to continue:</p>
<section>
<form method="POST" action="#" enctype="application/x-www-form-urlencoded">
<p>Username: <input type="text" name="username" id="username" size="25" required/></p>
<p>Password: <input type="password" name="passwd" id="passwd" size="25" required/></p>
<p>
<input type="submit" name="submit" id="submit" value="Submit"/>
<input type="reset" name="reset" id="reset" value="Reset"/>
</p>
</form>
</section>
</article>
...
So that is all for creating a simple HTML5 login form. There is nothing new except the new tags or attributes but only the division of pages semantically using HTML5. If you wish to see the demo of the above content, please click below.
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>HTML5 Semantic Markup Demo: Cross Browser</title>
<link rel="stylesheet" href="html5reset.css" type="text/css" />
<link rel="stylesheet" href="html5semanticmarkup.css" type="text/css" />
<!--[if lt IE 9]>
<script src="html5.js"></script>
<![endif]-->
</head>
<body>
<header>
<hgroup>
<h1>Page Header</h1>
<h2>Page Sub Heading</h2>
</hgroup>
</header>
<nav>
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">Projects</a></li>
<li><a href="#">Portfolio</a></li>
<li><a href="#">Profile</a></li>
<li><a href="#">Contact</a></li>
</ul>
</nav>
<article>
<header>
<h1>Simple HTML5 Login Form</h1>
<time datetime="2010-05-05" pubdate>May 5th, 2010</time>
</header>
<p>Please provide the authentication credentials to continue:</p>
<section>
<form method="POST" action="#" enctype="application/x-www-form-urlencoded">
<p>Username: <input type="text" name="username" id="username" size="25" required/></p>
<p>Password: <input type="password" name="passwd" id="passwd" size="25" required/></p>
<p>
<input type="submit" name="submit" id="submit" value="Submit"/>
<input type="reset" name="reset" id="reset" value="Reset"/>
</p>
</form>
</section>
</article>
<aside>
<header>
<h1>Siderbar Heading</h1>
</header>
<p>Ut sapien enim, porttitor id feugiat non, ultrices non odio. Donec sit amet augue metus, nec sollicitudin est. Donec iaculis porttitor viverra. Sed sed magna ac lectus pharetra iaculis at quis tellus. Nunc quis lorem sit amet nulla viverra mattis. Aenean suscipit libero accumsan sapien fermentum non aliquet lorem rutrum.</p>
</aside>
<footer>
Page Footer
</footer>
</body>
</html>
