html link tag
Attribute of the LINK Element
The link element allows to authors link their document other resources. The destination of link by the href attribute, which must present and must contain valid non empty URL potentially surrounded by spaces. A link of element must have rel attribute.
1] Href
Value :- URL
Syntax :-
<a href="url">link text</a>
Description :-
Specified the target URL you navigate to after clicking a link.The href attribute link short for “Hypertext REFerence” indicates the relationship between pages to search engines. href is the attribute of anchor tag and contains a two components.The URL (the actual link) and. The clickable text or object that users will see on the page known as the “anchor text”
2] Hreflang
Value:- Language_code
Description :-
Hreflang HTML attribute use specify the language and geographical target webpage. multiple versions of same page and different languages, can use hreflang tag search engines like Google these variations. hreflang attribute allow and show search engines what is the relationship between web pages alternate languages. It useful when created content the specific a local audience.
hreflang tags are important to Reach potential customers in different countries. Serve correct content to the visitors base on their region and preferred language. Build strong in international (SEO) search engine optimization your website.
3] Media
Value :- Screen, try, projection, handheld, print
Syntax:-
<tagname media="expression" />
Description :-
Specified the device on which the HTML document is displayed media attribute is a specifies what media or device is the linked document and optimized. This attribute used to specify the target URL is designed special devices (such as iPhone), speech or print media.
Elements Attribute
<a> media
<area> media
<link> media
<source> media
media attribute is a specifies media or device type linked page or resource is optimized.media attribute can specify pages or resources are designed for the mobile devices, print media, and others.
this media accepts is the multiple media or device type values to combined with logical conditions and, or, not.
4] Rel
Value :- Alternate, archives, author, first help, icon, index, last, license, next, pingback, prefetch, search, stylesheet, sidebar, tag,up
Syntax :- <link rel="value">
Description :-
Specifies relationship between html document & target URL or other HTML document.rel is short for relation. It specifies the relation between tag or href . href stands for hypertext reference. It the source of file used by tag. You can use both not only when connecting an external css file, also for using <a> tags,for a regular hyperlink. rel attribute defines as the relationship between linked resource and current document. Valid on <link> , <area> , <a> , <form> supported values depend on element which the attribute is found.
Rel attributes is little bits of html text deail that the relationship between page a link and the page or document is pointing to. Rel attributes can be use for link and also other element of html like site navigation or forms.
5] Sizes
Value :- Any number
Syntax :- <input size = "value">
Description :-
Description the size of the linked html document.The size attribute defines the width of the <input> and the height of the <select> element. if the type of attribute is text or password then is the number of characters. This must be an integer value 0 or higher.HeightxWidth It is used to specify the one or more sizes of a linked icon. The value of the height and the width are separated by an “Y” or “Y”.The HTML link sizes Attribute is used to specify the sizes of the icon for visual media and it only works when rel=”icon”. It is a read-only Property.
7] Type
Value:- The mime_type : text/JavaScript,text/css
Syntax:- <link Type="value">
Description:-
Specifies the multipurpose Internet Mail Extension (MIME) type of the target URL the MIME type decide which type of language rules are to followed HTML, page , such as JavaScript or css use.
The HTML Attribute used specify the type of button for <button> elements. It also used in the <input>type element specify the type of input display. embed elements link, script, source, object, and style use to specify the Internet Media The HTML type Attribute is used to specify the type of button for <button> element.
Related Post :-
👇👇👇👍👌
Post a Comment