Starting from:

$35

Web_App -lab 1 - Solved

Write the HTML code to build a table of content example. The table of content (TOC) is a list of topics. Each topic refers to a section within the same page.  

You will need to design a document that includes a list (you can use <ol> or <ul>) where each item is a hypertext link (<a>). The requirements are as following:

1-      Use list to create the list of topics. The list should include at least 4 items.  

2-      Use links to make each topic attached to its own text section.

3-      Make sure that you follow the standards of HTML.  

4-      Use <h1> to create the heading of each content section. Use id attribute to assign unique ID’s to each heading bookmark.

5-      Use <p> to insert text.  

 

   

6-      The above is sample TOC. Try to improve the appearance of your document. Use <hr /> or  

<br />   

7-      Extend your TOC example to create more sophisticated one with topics and subtopics. The following code could be a guide. Modify it to perform your task.

 <ol>

              <li>Heading

                           <ol>

                               <li>Subheading</li>                         <li>Subheading</li>

                           </ol>

              </li>

              <li>Heading</li>

              <li>Heading

                           <ol>

                               <li>Subheading</li>                         <li>Subheading</li>

                           </ol>

              </li>

</ol>             

 


  

More products