<!DOCTYPE HTML>

<html>

<head>

<meta http-equiv=”Content-Type” content=”text/html; charset=UTF-8″ />
<title>Title of the website</title>

</head>

<body>

<header>

<nav>

<ul>

<li>Home</li>
<li>About</li>
<li>Services</li>
<li>Projects</li>
<li>Contact</li>

</ul>

</nav>

</header>

<section>

<article>
<header>

<h2>Title of the Article</h2>
<p>Article about the html5 page development</p>

</header>

<p>HTML5 has it’s many new syntactical features, which include the <video>, <audio>, <canvas>, <section>, <article>, <header> and <nav> elements, as well as the integration of SVG content. Due to these new elements, it will be very easy to integrate multimedia and graphical content to web without using flash and third party plugins. </p>

</article>

<article>

<header>

<h3>Title of the Article</h3>
<p>Article about the html5 page development</p>

</header>

<p>HTML5 has it’s many new syntactical features, which include the <video>, <audio>, <canvas>, <section>, <article>, <header> and <nav> elements, as well as the integration of SVG content. </p>

</article>

</section>

<aside>

<h2>About section</h2>
<p>HTML5 has it’s many new syntactical features, which include the <video>, <audio>, <canvas>, <section>, <article>, <header> and <nav> elements, as well as the integration of SVG content. </p>

</aside>

<footer>

<p>Copyright 2009 Your name</p>

</footer>

</body>

</html>

http://www.varadesigns.com

website designing hyderabad


A simple example for Expand and Collapse using jQuery events Show, Hide

Copy the below code and try your self…..

CSS

<style type=”text/css”>
        .controller {background:#0F0F1E; padding:10px 0; text-align:center}
        .controller a {color:#fff; font-weight:bold; display:block; cursor:pointer}
        .box {padding:10px; text-align:center; border:1px dashed #0F0F1E}
</style>

Java Script
<script type=”text/javascript” src=”http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js”></script>

<script type=”text/javascript”>

$(document).ready(function(){
$(“.box”).hide();
$(“.down”).hide();
$(“.up”).click(function(){
        $(“.box”).show(300);
        $(“.up”).hide();
        $(“.down”).show();
});

$(“.down”).click(function(){
        $(“.box”).hide(300);
        $(“.up”).show();
        $(“.down”).hide();
});

});
</script>

HTML

<div class=”controller”>
<a class=”up”>CLICK TO EXPAND </a>
<a class=”down”>CLICK TO COLLAPSE</a>
</div>

DEMO

Web design company hyderabad



01
Jul