Copy this code and paste it in your HTML
<link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/2.8.1/build/tabview/assets/skins/sam/tabview.css"> <script src="http://yui.yahooapis.com/2.8.1/build/yahoo-dom-event/yahoo-dom-event.js"></script> <script src="http://yui.yahooapis.com/2.8.1/build/element/element-min.js"></script> <script src="http://yui.yahooapis.com/2.8.1/build/tabview/tabview-min.js"></script>
<script type="text/javascript"> var myTabs = new YAHOO.widget.TabView("demo");
<div id="demo" class="yui-navset"> <li class="selected"><a href="#tab1"><em>Tab One Label
</em></a></li> <li><a href="#tab2"><em>Tab Two Label
</em></a></li> <li><a href="#tab3"><em>Tab Three Label
</em></a></li> <div class="yui-content"> <div><p>Tab One Content sample something whatever
</p></div> <div><p>Tab Three Content ......................
</p></div>