Wrox Programmer Forums
|
HTML Code Clinic Do you have some HTML code you'd like to share and get suggestions from others for tweaking or improving it? This discussion is the place.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the HTML Code Clinic section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 1st, 2011, 08:31 AM
Authorized User
 
Join Date: Jul 2011
Posts: 49
Thanks: 0
Thanked 0 Times in 0 Posts
Default html using div tag

hi all ,
can u tell me how to modify this html code using <div> tag....
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-EN">
<head>
<script src="jquery-1.2.1.min.js" type="text/javascript"></script>
<script src="menu-collapsed.js" type="text/javascript"></script>	
<link rel="stylesheet" type="text/css" href="style.css" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Simple JQuery Collapsing menu</title>
<style type="text/css">
li a 
{
display:inline-block;
} 
li a 
{
display:block;
}
</style>
</head>
<body>
<h1>Simple JQuery Collapsing menu</h1>
<p>Same menu as seen <a href="./">here</a> but now as a simple collapsing menu.</p>
<ul id="menu">

<li>
  <a href="#">Weblog Tools</a>
   <ul>
	<li><a href="http://www.pivotx.net/">PivotX</a></li>
	<li><a href="http://www.wordpress.org/">WordPress</a></li>
	<li><a href="http://www.textpattern.com/">Textpattern</a></li>
	<li><a href="http://typosphere.org/">Typo</a></li>			
   </ul>		
</li>		

<li>
  <a href="#">Programming Languages</a>
   <ul>
      <li><a href="http://www.php.net/">PHP</a></li>
      <li><a href="http://www.ruby-lang.org/en/">Ruby</a></li>
      <li><a href="http://www.python.org/">Python</a></li>
      <li><a href="http://www.perl.org/">PERL</a></li>
      <li><a href="http://java.sun.com/">Java</a></li>
      <li><a href="http://en.wikipedia.org/wiki/C_Sharp">C#</a></li>
   </ul>
</li>

<li><a href="http://www.i-marco.nl/weblog/">Marco's blog (no submenu)</a></li>

<li>
   <a href="#">Cool Stuff</a>
   <ul>
	<li><a href="http://www.apple.com/">Apple</a></li>
	<li><a href="http://www.nikon.com/">Nikon</a></li>
	<li><a href="http://www.xbox.com/en-US/">XBOX360</a></li>
	<li><a href="http://www.nintendo.com/">Nintendo</a></li>
   </ul>
</li>
		
<li>
   <a href="#">Search Engines</a>
   <ul>
	<li><a href="http://search.yahoo.com/">Yahoo!</a></li>
    <li><a href="http://www.google.com/">Google</a></li>
	<li><a href="http://www.ask.com/">Ask.com</a></li>
	<li><a href="http://www.live.com/?searchonly=true">Live Search</a></li>
  </ul>
</li>
</body>
</html>





Similar Threads
Thread Thread Starter Forum Replies Last Post
Coding from the div tag shows up on the rendered HTML page Cybermaniac BOOK: ASP.NET 4 24-Hour Trainer 4 August 12th, 2010 05:41 PM
HTML tag from C# or ASP.NET tag from javascript angshujit ASP.NET 2.0 Basics 3 February 16th, 2007 10:07 AM
how to loop through a div tag? Byock Classic ASP Basics 0 December 19th, 2006 02:52 AM
div tag as link Stagmo Dreamweaver (all versions) 0 April 14th, 2006 12:35 AM
DIV TAG marclena ASP.NET 1.0 and 1.1 Professional 2 May 24th, 2005 11:14 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.