Changing the href of an html tag with css

css, href, html

Solution

CSS is display only, you cannot modify the document object model with it. Sorry, this cannot be done. I wish I had a better answer, but 'it cannot be done' is the only answer.

Problem

I need to change this A tag from ``` <a href="contact.html" >Contact</a> ``` to ``` <a href="tel:+13174562564" >Contact</a> ``` with only Css if it's possible or like this ``` <a href="tel:+13174562564" >+13174562564</a> ``` i have a lot of pages and i don't want to edit all of them it will take a life time that's why i need to do it in CSS and i have no JS linked to them

Original source

Related problems