The structure of the underlying HTML elements, on which tabs are based, is rigid and widgets require a certain number of elements for them to work.
The tabs must be created from a list element (ordered or unordered) and each list item must contain an <a>
element. Each link will need to have a corresponding element with a specified id
that it is associated with the link's href
attribute. We'll clarify the exact structure of these elements after our first example.
In a new file in your text editor, create the following page:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html lang="en"> <head> <link rel="stylesheet" type="text/css" href="development-bundle/themes/smoothness/ui.all.css"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>jQuery UI Tabs Example 1</title> </head> <body> <div id="myTabs"> ...