What does(href)attribute refers to? | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 2

What does(href)attribute refers to?

Attribute used in <a> tag

15th Dec 2017, 5:29 PM
Saleh Alghanami 🇴🇲
Saleh Alghanami 🇴🇲 - avatar
1 ответ
+ 9
Omitting this attribute creates a placeholder link. The href attribute indicates the link target, either a URL or a URL fragment. A URL fragment is a name preceded by a hash mark (#), which specifies an internal target location (an ID) within the current document. <ahref="javascript:alert('Hello World!');">Execute JavaScript</a>
15th Dec 2017, 5:47 PM
GAWEN STEASY
GAWEN STEASY - avatar