I would like to override a href tag default's visited color property to inherit. However by making this change, every time I click on the link, it changes the color to its parent and not the one I set on it. To overcome this, I use a span to act as a parent element and set the color I want there. I would like to know if this is best practice or if there is any easier way to do it.
Best practice for setting a href tag visited property default
155 Views Asked by Ace Sok At
1
There are 1 best solutions below
Related Questions in HTML
- How to store a date/time in sqlite (or something similar to a date)
- How to use custom font during html to pdf conversion?
- Storing the preferred font-size in localStorage
- mp4 embedded videos within github pages website not loading
- Scrimba tutorial was working, suddenly stopped even trying the default
- Is there any way to glow this bulb image like a real light bulb
- With non-graphical maps in Leaflet, zoomDelta doesn't work
- What can I do to improve my coding on both html and css
- Uncaught TypeError: google.maps.LatLng is not a constructor at init (script.js:7:13)
- Bootstrap modal not showing at the desired position on a web page when the screen size is smaller
- Displaying a Movie List on a Website Using Jinja2 and Bootstrap
- How to redirect to thank you page after submitting a Google form embedded into a Google Site?
- Storing selected language in localStorage
- Fences (parenthesis, braces) in HTML and MathML
- Understanding Scroll Anchoring Behavoir
Related Questions in CSS
- How to use custom font during html to pdf conversion?
- Storing the preferred font-size in localStorage
- mp4 embedded videos within github pages website not loading
- Is there any way to glow this bulb image like a real light bulb
- What can I do to improve my coding on both html and css
- Uncaught TypeError: google.maps.LatLng is not a constructor at init (script.js:7:13)
- Bootstrap modal not showing at the desired position on a web page when the screen size is smaller
- How to increase quality of mathjax output?
- Hover animation resetting( seemingly reverting back to original CSS and then again to hover)when moving mouse horizontaly accross a part of an element
- Storing selected language in localStorage
- How to clip grid cell and provide scroll as well?
- KeyboardAvoidingView makes a messy the flexbox
- Rotate an object around another object in javascript
- Understanding Scroll Anchoring Behavoir
- how to use only block layout in this css code?
Related Questions in TAGS
- kid3 - Import Album Art along with other tags from Discogs
- total commander adds a note to a file using tcimg and the parameters don't work correctly?
- Laravel: check if cache has key with thag
- How do I add tags to HTML web pages and sort them with a filter?
- Replace nth-occurence of a string with an html tag
- how to mention tags in robotframework while writing scripts
- I'm in Playwright, how do I run specific test cases by tag in (CI) execution
- What software can I use (if any) to embed URL links into a .mp4 file without paying for a subscription?
- OSMNX: Dealing with empty dataframe of attributes when using the features module
- How can I hide the "BRAND NEW" project in my portfolio?
- How do you sort a list view in Visual C++?
- Can't overwrite !important tag (tried several tips already)
- Trouble Separating Tags from Notes in JavaScript Notes App
- not able to add previous commit into github tag using workflow
- Allows tag edition in buefy taginput
Related Questions in HREF
- Angular 17 standalone link for the other section of the page on the same page
- Using WGET to Get Links on the Page
- How do I echo a PHP variable into a href attribute for a stylesheet
- How do I pass a query through a Link href in reactjs/nextjs?
- Obtain href links from first table in headless browser page (playwright._impl._errors.Error: Event loop is closed! Is Playwright already stopped?)
- URL to search in user's preferred search engine
- Adding href and id property leads to framing error
- How to change links in list.js pagination to from href="#" to href="?page="?
- Why does facebook business login for instagram get stuck at connect to instagram?
- the href "tel:" and "mailto:" are not clickable on Google Search app (iOS) on website
- Trying to create ol of urls
- img adress linked in href tag not opened in chrome
- Special character (Æ, Ø, ø, Å, å, Ä, ä, Ö, ö) in downloaded word file getting formatted to ASCI values in javascript
- "How to open one's Word application with a file through the browser using PHP HTML CSS?
- Why is my href directory not working in my reactjs project?
Related Questions in VISITED
- Is there any way to disable visited links privacy settings in my firefox
- Is it possible to determine which links on the site have been clicked by the user and which have not yet been placed by the user?
- Visited link doesn't change background color
- Create/Load page based on visited state of embedded links
- Change color of an icon on a site, when that icon's underlying link becomes :visited
- How to add visited attribute to html a label?
- Firefox hover seems to ignore visited
- Safari not showing visited color for svg icon that is inside an anchor tag
- I have multiple links on the same location (to same a href link). a:visited changes them all when one is clicked. Can I keep each separate?
- Kotlin - Is it possible to get live activity from browser?
- HTML CSS - Make icon change color when clicked (like a link)
- Force link to look not visited using CSS
- How to deal with the overwrite of visited anchors
- How to change the style of a button when it is clicked in react using css?
- Segment Tree - visiting at most 4 vertices at every level of the tree
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
After using text-decoration elememt it will show you same color after visit.