Skip to content

DomElementInfo.href?

DomElementInfo › href?

Official

Type: string

The href to be assigned. Applies to <a>, <link>, and <base> elements.

Example:

createEl('a', { href: 'https://example.com' });