Tryit Editor v2.3

Edit This Code:
<!DOCTYPE html> <html> <head> <style> ul#menu { padding: 0; } ul#menu li { display: inline; } ul#menu li a { background-color: black; color: white; padding: 10px 20px; text-decoration: none; border-radius: 4px 4px 0 0; } ul#menu li a:hover { background-color: orange; } </style> </head> <body> <h2>Horizontal List</h2> <ul id="menu"> <li><a href="html_tables.html">Tables</a></li> <li><a href="html_lists.html">Lists</a></li> <li><a href="html_blocks.html">Blocks</a></li> <li><a href="html_classes.html">Classes</a></li> </ul> </body> <!-- Mirrored from www.w3schools.com/html/tryit.asp?filename=tryhtml_lists_menu by HTTrack Website Copier/3.x [XR&CO'2014], Fri, 23 Jan 2015 07:20:23 GMT --> </html>
Result:
Try it Yourself - © w3schools.com