javascript - How to create nav list with different buttons so when I click on the button the content/text will change according to the button I clicked? -


i new programming here basic question.

i know how make nav list don't know how make functional. example, let's navlist has 3 buttons: home, , contact me. how make webpage change home content between these 3 buttons??? mean how different text/content when click on or contact me button?

hope understand mean. must simple begginer.

thanks in advance help!

most situations use css. if want them run in list, use following in html:

<ul class="navmenu">   <li><a href="index.html">home</a></li>   <li><a href="about.html">about</a></li>   <li><a href="contact-me.html">contact me</a></li> </ul> 

and css style be:

<style> ul.navmenu { /* enter css ul menu menu here*/ } ul.navmenu li { /* enter css list menu here*/ } ul.navmenu li { /* enter css link menu here*/ } </style> 

you can "css list style" , more information on how change looks of it. hope helps started.

to buttons change content, need add pages. example, make first page index.html (or index.php, or other page types), about.html, , contact-me.html. have create pages links go 1 page next when click on links.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -