+ 3
Two URLs for href
How we can add a supporting URL to my HTML code? Using "comma" or some thing like this?
7 Respuestas
+ 9
There is no fallback option in HTML like that of the CSS font property. I recommend using two separate anchor tags:
<a href="https://www.example1.com">Supporting URL 1</a>
<a href="https://www.example2.com">Supporting URL 2</a>
This will display two links and if a link fails, you still have description of what the link is supposed to be about.
+ 5
What I understand is that u want to open for example two pages using one href isn't it? If is the case,you can use JavaScript like that:
<a href="#" onclick="window.open('https://www.microsoft.com'); window.open('https://www.yahoo.com');" target="_blank" >Click Here</a>
+ 2
K R What do you mean by supporting url what would be the purpose of this? Html doesnt seem to have supporting urls
+ 2
K R are you referring to audio or video urls not general hypertext url links to external content.
+ 1
No, I want two URLs because if one of them does work correctly , the other one would be shown. Like font family property in css that we can give multiple fonts so if the first one was unsupported, the second one would be shown.
+ 1
Thank you all 🙂
+ 1
K R As far as I know, I think, unlike CSS, there are likely no way to "seperate"multiple url by comma in HTML, you have to get each url, on a new line(?).
You can use the "alt" attribute to describe the link when the link is not clickable or supported on your browser..