Question

In: Computer Science

Can you make links out of lists where each item in a list is its own...

Can you make links out of lists where each item in a list is its own link? How might you accomplish this? expalin how you can do it with a example.

Solutions

Expert Solution

Links out of Lists:

  • Yes, it is completely achievable we can make use of lists with the link inside the lists. Please refer to the below example which will solve out each and every doubt of yours.
  • As you will see in the below code that we have made use of the unordered list and then the li tags will consists each of an anchor tag where "#" can be replaced with their individual links so that the user will be able to get to the link that is being specified in the text of the list.

index.html:to

<html>
<head>
<title>Welcome to my website</title>
<style>
ul {
list-style-type: none;
margin: 0;
padding: 0;
overflow: hidden;
background-color: #333;
}

li {
float: left;
}

li a {
display: block;
color: white;
text-align: center;
padding: 14px 16px;
text-decoration: none;
}

li a:hover {
background-color: #111;
}
</style>
</head>
<body>
<ul>
<li><a class="active" href="#">Home</a></li>
<li><a href="#">My Career</a></li>
<li><a href="#">Future Plans</a></li>
<li><a href="#">Contact</a></li>
<li><a href="#">About</a></li>
</ul>
</body>

Output:

  • If you look at the code then you will see that we have made a list and each list consists of the link to each of the specified content.

Hence, these are the ways in which the links can be made using the lists.

Home My Career Future Plans Contact About


Related Solutions

Can you make links out of lists where each item in s list is its own...
Can you make links out of lists where each item in s list is its own link? How might you accomplish this? explain it with a good examplle
You are asked to make your own list of the best places to live (it can...
You are asked to make your own list of the best places to live (it can be one, two, or more) and convince your reader to move there. Build your case by using as many economic indicators you think of How important would the country's per capita real GDP be as a criterion? What other factors in your own view would you consider?
Imagine you are writing a program to manage a shopping list. Each shopping list item is...
Imagine you are writing a program to manage a shopping list. Each shopping list item is represented by a string stored in a container. Your design requires a print function that prints out the contents of the shopping list. Using a vector to hold the shopping list items, write a print function to print out the contents of a vector of strings. Test your print function with a main program that does the following: Create an empty vector. Append the...
Can you make this singular linked list to doubly linked list Create a Doubly Linked List....
Can you make this singular linked list to doubly linked list Create a Doubly Linked List. Use this to create a Sorted Linked List, Use this to create a prioritized list by use. Bring to front those links recently queried. -----link.h------ #ifndef LINK_H #define LINK_H struct Link{ int data; Link *lnkNxt; }; #endif /* LINK_H */ ----main.cpp---- //System Level Libraries #include <iostream> //I/O Library using namespace std; //Libraries compiled under std #include"Link.h" //Global Constants - Science/Math Related //Conversions, Higher Dimensions...
Make two lists. List A should identify the things that represent the core cultures of organizations....
Make two lists. List A should identify the things that represent the core cultures of organizations. List B should id identify the tings that represent the observable cultures of the organization. For each item on the two lists , identify one or more indicators that you might use to describe this aspect of the culture for an actual organization.
Create fair die – Can you make a fair die? Make a two cubes out of...
Create fair die – Can you make a fair die? Make a two cubes out of paper or clay. Label the faces 1 - 6 (or whatever). Toss your cube 100 times, and keep a tally of the results. Run a Chi-square Goodness of Fit Test to see if you have evidence to say your cube unfair. Submit a one page write up with data, calculations and conclusion. Since we have not discussed this test, you can earn extra credit...
You want to create your own mobile security policy. Provide an outline and, for each item...
You want to create your own mobile security policy. Provide an outline and, for each item in your outline, explain what you would write about in two to three sentences. The outline needs to include at least four topics to be covered in your mobile security policy.
Make a list of the advantages and disadvantages can you think of for living near a...
Make a list of the advantages and disadvantages can you think of for living near a volcano? Do you think the advantages outweigh the disadvantages? Write a 250 word essay to answer.
1. For each of the following lists, perform a bubble sort, and show the list after...
1. For each of the following lists, perform a bubble sort, and show the list after each exchange: D,B,G,F,A,C,E,H 2. Explain why the bubble sort algorithm does O (n^2) comparisons on an n-element list.
2. Identify the report where you will find each item. Use B for balance sheet, I...
2. Identify the report where you will find each item. Use B for balance sheet, I for income statement, and C for cash flow. ____ cash balance _____ advertising and promotion ____revenues _____ taxes paid ____ product purchases _____ profit ____ cost of goods sold _____ dividends paid ____ inventory _____ retained earning
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT