Computer Science: An Overview (12th Edition)
12th Edition
ISBN: 9780133760064
Author: Glenn Brookshear, Dennis Brylow
Publisher: PEARSON
expand_more
expand_more
format_list_bulleted
Question
Chapter 4, Problem 28CRP
Program Plan Intro
Linking tag:
The “<a>” tag is could be either a hyperlink or an anchor tag used to link text or image from one HTML page to the other. The “href” keyword is used to specify the location of the object to be linked.
Syntax:
<a href = “Sample link”> Text </a>
Given code:
<!--Open html tag-->
<html>
<!--Open head tag-->
<head>
<!—Give the title within the title tag-->
<title>Example</title>
<!—Close head tag-->
</head>
<!--Open body tag-->
<body>
<!—Give heading within the h1 tag-->
<h1>My pet dog</h1>
<!—Give the paragraph within the p tag-->
<p>My dog’s name is Rover.</p>
<!—Close body tag-->
</body>
<!--Close html tag-->
</html>
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
Change the text color of first <li>one</ <!--li> in a list.
example HTML:
<ul>
<li>one</li> /* text should be color red*/
<li>two</li>
<li>three</li>
<li>four</li>
<ul>
As per our discussion in class in the past few
days, students are expected to write a PHP code
that reads any HTML page and return a list of
HTML tags existing in that page. What you need
to submit it an HTML file that you experiment
with + PHP file that you run to show the tags.
Computer science
Chapter 4 Solutions
Computer Science: An Overview (12th Edition)
Ch. 4.1 - What is an open network?Ch. 4.1 - Prob. 2QECh. 4.1 - What is a router?Ch. 4.1 - Prob. 4QECh. 4.1 - Prob. 5QECh. 4.1 - Prob. 6QECh. 4.2 - Prob. 1QECh. 4.2 - Prob. 2QECh. 4.2 - Prob. 3QECh. 4.2 - Prob. 4QE
Ch. 4.2 - Prob. 5QECh. 4.2 - Prob. 6QECh. 4.2 - Prob. 7QECh. 4.2 - Prob. 8QECh. 4.3 - Prob. 1QECh. 4.3 - Prob. 2QECh. 4.3 - Prob. 3QECh. 4.3 - Prob. 4QECh. 4.3 - Prob. 5QECh. 4.4 - Prob. 1QECh. 4.4 - Prob. 2QECh. 4.4 - Prob. 3QECh. 4.4 - What keeps a computer on the Internet from...Ch. 4.5 - Prob. 1QECh. 4.5 - Prob. 2QECh. 4.5 - Prob. 3QECh. 4.5 - Prob. 4QECh. 4.5 - Prob. 5QECh. 4 - Prob. 1CRPCh. 4 - Prob. 2CRPCh. 4 - Prob. 3CRPCh. 4 - Prob. 4CRPCh. 4 - Prob. 5CRPCh. 4 - Prob. 6CRPCh. 4 - Prob. 7CRPCh. 4 - Prob. 8CRPCh. 4 - Prob. 9CRPCh. 4 - Prob. 10CRPCh. 4 - Prob. 11CRPCh. 4 - Prob. 12CRPCh. 4 - Prob. 13CRPCh. 4 - Prob. 14CRPCh. 4 - Prob. 15CRPCh. 4 - Prob. 16CRPCh. 4 - Prob. 17CRPCh. 4 - Prob. 18CRPCh. 4 - Prob. 19CRPCh. 4 - Prob. 20CRPCh. 4 - Prob. 21CRPCh. 4 - Prob. 22CRPCh. 4 - Prob. 23CRPCh. 4 - Prob. 24CRPCh. 4 - Prob. 25CRPCh. 4 - Prob. 26CRPCh. 4 - Prob. 27CRPCh. 4 - Prob. 28CRPCh. 4 - Prob. 29CRPCh. 4 - Prob. 30CRPCh. 4 - Prob. 31CRPCh. 4 - Prob. 32CRPCh. 4 - Prob. 33CRPCh. 4 - Prob. 34CRPCh. 4 - Prob. 35CRPCh. 4 - Prob. 36CRPCh. 4 - Prob. 37CRPCh. 4 - Prob. 38CRPCh. 4 - Prob. 39CRPCh. 4 - Prob. 40CRPCh. 4 - Prob. 41CRPCh. 4 - Prob. 42CRPCh. 4 - Prob. 43CRPCh. 4 - Prob. 44CRPCh. 4 - Prob. 45CRPCh. 4 - Prob. 46CRPCh. 4 - Prob. 47CRPCh. 4 - Prob. 48CRPCh. 4 - Prob. 49CRPCh. 4 - Prob. 50CRPCh. 4 - Prob. 1SICh. 4 - Prob. 2SICh. 4 - Prob. 3SICh. 4 - Prob. 4SICh. 4 - Prob. 5SICh. 4 - Prob. 6SICh. 4 - Prob. 7SICh. 4 - Prob. 8SICh. 4 - Prob. 9SICh. 4 - Prob. 10SICh. 4 - Prob. 11SICh. 4 - Prob. 12SI
Knowledge Booster
Similar questions
- JavaScript: Update your shopping list activity to use jQuery instead of (JS) standard document object methods. Your implementation should use jQuery to select, add, remove elements, and react to events instead of DOM methods like getElementById, appendChild, addEventListener, etc. Below the JS HTML and JS Shopping List HTML: <html><head><title>Shopping List</title></head> <style>body {background-color: #f9f9f9;font-family: arial;}li {list-style: none;padding: 5px;}.addButton {padding: 5px 10px;background-color: #8214c1;border: none;border-radius: 3px;color: white;font-size: 1em;}.deleteButton {background-color: #f9f9f9;color: #8214c1;font-size: 1em;border: none;}input[type=text] {border: none;border-bottom: 1px solid grey;background-color: #f9f9f9;font-size: 1.2em;}input[type=text]:focus {outline: none;} </style><body><h1>Shopping List</h1> <ul id='shoppingList'></ul> <input type="button" class="addButton"…arrow_forwardWrite the HTML code to output the following using TABLE tag. Do this task as at it given in the image with same style and formatarrow_forwarde) Assume a database named "Hospital" exists on the MYSQL server. The database contains a table named "Doctors" as displayed below. Doctors Anne Bob Carrie Implement a PHP script that will connect to the database and display all doctors using the "" and associated tags in a structurally correct HTML. f) Implement a PHP script "add_doctor.php" that willl read the name of the "doctor" from the form (displayed below) data submitted to it. The script should establish a connection to the database and add the person to table "Doctors". The script should display in a structurally correct HTML if the addition action completed successfully or not. Enter the name of the doctor to delete from the database:arrow_forward
- Create a PHP page name it print.php - This page should be reachable via the following url: localhost/<std name>/<std id>/print where std name has at least one char (no numbers) and std id has the format id-20xyz; xyz are three numbers When a request send to print.php, then print student name and her/his id. localhost/tara/id-20222/printarrow_forwardUsing PHP and PHP arrays, Please create a script that makes a complete online shopping cart, where the user can add, remove, and change the quantity of items in the shopping cart. (the shopping cart must have 10 items with corresponding descriptions (Note: you do not have to actually write in products and descriptions, use PLACEHOLDER for these.) The shopping cart should include a checkout process that includes the total price of the items they are purchasing. (Note: HTML may also be used if required)arrow_forwardCreate a numbered list with numbering pattern “i, ii, iii……..” that starts from ‘v’ and not ‘i’ in htmlarrow_forward
- PHP exercise 7 HTML tables involve a lot of repetitive coding - a perfect place to use for loops. You can do even more if you nest the for loops. In this PHP exercise, use two for loops, one nested inside another. Create the following multiplication table: 1 2 3 4 5 6 7 2 4 6 8 10 12 14 3 6 9 12 15 18 21 4 8 12 16 20 24 28 5 10 15 20 25 30 35 6 12 18 24 30 36 42 7 14 21 28 35 42 49arrow_forwardIn HTML5, a <main> element was added to replace the legacy <div id="main"> we all used before. Where should this element be located in an HTML document, and how many such elements can exist? A) It should be a direct descendant of an <article> element and there can only be one such element. B) It should be a direct descendant of an <article> element and there can be more than one such element.C) It should be a direct descendant of the <body> element and there can only be one such element. D) It should be a direct descendant of the <body> element and there can be more than one such element.arrow_forward2. Write a WEB application (integrating an HTML file and a PHP script) by car: - display information on the screen only from two fields of a MySQL table (name, age), - the query is parameterized only by age (those items for which age is equal to a value entered from the keyboard will be displayed). - Provide for a treatment and in case no value is entered for age. (for example, all items will be displayed) - Display a message on the screen stating the number of items found.arrow_forward
- Follow these instructions:● Create a python program called taskXML.py. Write the code to:○ Read in the movie.xml file.○ Read about the iter() and itertext() function here. Use the iter()function to list all the child tags of the movie element.○ Use the itertext() function to print out the movie descriptions.○ Find the number of movies that are favourites and the number ofmovies that are not.arrow_forwardGiven the following two pagespatientPage.phpPatient Name: Mohammed Salt New VisitHTML source code <a href='newVisit.php?pcode=OM3'>New Visit</a>newVisit.phpVisit No. 3PHP code$q= ....... Patient Name: Mohammed Salt Note that the link above 'New Visit' has a data token for the patient Code and the user clicks this link to get the second page that should display some of this patient data. Write PHP code for the correct query that should read ONLY all this patient 's data from the database table patients. that has the primary key patCode Type your answer in the box shown below, no file upload is requiredarrow_forwardplease fix this html code so it can be properly executed <!DOCTYPE html><html><!-- Programming Challange -->> <head></head><body> <title> Find the Title with PHP </title> <script language="JavaScript" type="text/javascript"> //str is passed to the function function showHint(str) { //nothing is typed return if (str.length==0) { document.getElementById("txtHint").innerHTML=""; return;}//checkif (window.XMLHttpRequest){var xmlhttp = new XMLHttpRequest;}else //older{ var xmlhttp =new ActiveXObject("Microsoft.XMLHTTP");}//change eventxmlhttp.onreadystatechange = function(){ if (xmlhttp.readyState==4&&xmlhttp.status==200){ document.getElementById("txtHint").innerHTML=xmlhttp.responseText;}}//openxmlhttp.open("GET", "gethint.php?q="+str, true);xmlhttp.send();}</script></body></html>arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Np Ms Office 365/Excel 2016 I NtermedComputer ScienceISBN:9781337508841Author:CareyPublisher:Cengage
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:9781337508841
Author:Carey
Publisher:Cengage