Basics of Web Design: Html5 & Css3
4th Edition
ISBN: 9780134444338
Author: Terry Felke-Morris
Publisher: PEARSON
expand_more
expand_more
format_list_bulleted
Expert Solution & Answer
Chapter 7, Problem 1RQ
Program Description Answer
In CSS pseudo-classes, applying a default state for a hyperlink which has been visited or clicked using “:visited”.
Hence, the correct answer is option “D”.
Expert Solution & Answer
Explanation of Solution
CSS pseudo-classes:
- In a website, when a user found that the hyperlinks color has been altered during the action made by moving the mouse pointer on them, can be done using a “CSS pseudo-class”.
- CSS pseudo-class can be used to apply a special effect to a selector. One of the pseudo-classes that can be used to apply a default state for a hyperlink, which has been visited or clicked is “:visited” pseudo-class.
Explanation for incorrect options:
“:hover”
This pseudo-class can be used to trigger a selector when a hyperlink has keyboard attention.
Hence, the option “A” is wrong.
“:link”
In CSS pseudo-classes, applying a default state for a hyperlink, which has been visited or clicked using “:link”.
Hence, the option “B” is wrong.
“:onclick”
It is an event attribute and it has been triggered when a mouse click event has been occurred.
Hence, the option “C” is wrong.
Want to see more full solutions like this?
Subscribe now to access step-by-step solutions to millions of textbook problems written by subject matter experts!
Students have asked these similar questions
HTML and CSS!
Exercise:
Create a web page that displays a hyperlink for each subject in your current semester. When the user clicks on a link, he should open the respective topic page.Note: Subject pages can be empty. Use CSS pseudo-classes on hyperlinks.
A web page developed using jQuery includes riddles and their solutions, paragraph elements of the “solution” class that are hidden when the page loads. You want to display the solutions when the user clicks on the “reveal” image element. The following code to display them is correctly written.$("img#reveal").click ( () => { $("p.solution").hide();})
Select one:
True
False
a.menu {font-family : Verdana;
font-weight : bold;
font-size : 13px; }
To use the CSS style above, which of the following should be done?
"a.menu" class must be imported for a hyperlink menu.
"a.menu" class must be imported for a hyperlink.
"menu" class must be imported for a hyperlink.
"a" class must be imported for a hyperlink.
Chapter 7 Solutions
Basics of Web Design: Html5 & Css3
Knowledge Booster
Similar questions
- What is the following code called? @{ ViewData["Title"] = "Employee Page";} 1. a Razor code block 2. An HTML code block 3. A CSS code block 4. A C# Classarrow_forwardChange the code so it loads the image from a folder named img instead of a url. .bgimg {background-position: center;background-size: cover;background-image: url("/w3images/coffeehouse.jpg");min-height: 75%;}arrow_forwardIn JavaScript create a program with the following parameters: Create an HTML page leaving the space between the <body> and </body> tags open. In the Title type a descriptive name Between the <body> and </body> tags add the <script> and </script> tags. Create a variable named myheading and give it this value: This is My Web Page! Create a variable named linktag and give it this value: SMC website and with a link to this text. Create a variable named Introtext and give it this value: See below for odd numbers stars. Create a variable named begineffect and give it the value: <strong>. Create a variable named endeffect and give it the value </strong>. Create a variable named beginpara and give it the value <p>. Create a variable named endpara and give it the value </p>. Place all of the variable definitions into a single var statement so that you do not need to keep repeating the var keyword remember to end the last line…arrow_forward
- 20 Be default, the layout manger for JPanels is O GridLayout O FlowLayout BorderLayout PanelLayout When an object listener is registered with several components, the way we distinguis between components when the event is triggered is ? 36°C Haze ^ Q 21arrow_forwardSelect the answer that BEST matches the following statement: This function will return a node given a CSS selector. Select one: getElementById querySelectorAll getElelmentsByTagName getElementsByClassName querySelectorarrow_forwardSuppose there is a text box on your browser window called FirstName. When you scroll up or down, the text box does not move at all while other elements on the page do move. What value for the position property would FirstName have? A) absolute B) relative C) fixed D) staticarrow_forward
- Which statements can you place in your JavaScript file to create a Google map for your web page? Assume that you have saved the geographic coordinates of the desired center of your map as an object literal called funPark and that you wish to display the map in the element whose reference you have assigned to the variable mapBox. let funParkMap = new google.maps.Map (mapBox, { zoom: 18, center: funPark } ); let funParkMap = new google.maps.Map{ location: mapBox, zoom: 18, center: funPark } ; let funParkMap = new google.maps.Map (mapBox, { center: funPark } ) ; let funParkMap = new google.maps.Map (mapBox, funPark) ;arrow_forwardIn Visual Studio Code, I need to be able to enter data into the fields. But if the user hits the submit values button and a field is empty, they get an error message (As in the provided images). The code goes something like this. <html> <head> <title>Week2 GP1 - Michael Porter</title> </head> <body> <form method='POST'> <h3>Enter your name: <input type="text" name="name"></h3> <h3>Enter your date of birth: <input type="text" name="birth"></h3> <h3>Enter your favorite color: <input type="text" name="color"></h3> <h3>Enter your favorite place to visit: <input type="text" name="fav_place"></h3> <h3>Enter your Nickname: <input type="text" name="nickname"></h3> <input type="submit" value="Submit Values"> </form> <?php $name = ''; $birth = ''; $color = '';…arrow_forward1. When the user clicks on a picture and it opens a window containing a zoomed version of the image, give her a hyperlink (button) to add the pic to a favorites’ area at the bottom of the first page (add img nodes to the DOM). 2. A maximum of 5 pics can be added to the favorites. After that a message is displayed to remove at least a favorite first. 3. If the user clicks on a favorite, a Remove link (button) shows up next to that picture. If the user clicks it, the pic is removed from the favorites. 4. (10% of the grade) Use good web design practices to enhance visually your html page. Add a title, picture, copyright line, etc.arrow_forward
- Question: Tumbling Dice Program - PHP/HTML/CSS Question: Roll two dice 1,000 times. Create a program that simulates the rolling of dice 500 times. Record the result of each roll that equals 7 (e.g. 1+6=7, 2+5=7, 3+4=7) and display totals for the total number of rolls that equal 7. This needs to have an html page, php page, and css page The result, after executing the program, should look similar to: "The number of sevens (7) that occured in 500 dice rolls was: 165"arrow_forwardIn javascript I need help creating a web page that has the following elements: You must use the following methods to select elements on your webpage and dynamically change one of their style settings: getElementsByTagName() getElementsByClassName() querySelector() querySelectorAll() You must use the following functions to demonstrate creating elements dynamically. These elements must be visible in the web browser. createElement() appendChild() cloneNode() with no children cloned cloneNode() with children cloned insertBefore() You must dynamically remove a node that you added to the original html file. You must dynamically set at least three windows object properties: You must add a button that when clicked calls the window object open function and opens a link to another page such as Amazon or CNN. You must add another button that when clicked calls the window object open function using at least 5 of the options for the open function and opens a link to another page such as…arrow_forwardTrue or False: A Click event is not generated by the HyperLink control.arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education