HTML <button> name Attribute

Example Two buttons with equal names, that submit different values when clicked: <form action=”/action_page.php” method=”get”> Choose your favorite subject: <button name=”subject” type=”submit” value=”HTML”>HTML</button> <button name=”subject” type=”submit” value=”CSS”>CSS</button> </form> Try it Yourself » Definition and Usage The name attribute specifies the name for a <button> element. The name attribute is used to reference form-data after the form has been submitted, or to reference the […]

HTML <base> href Attribute

Example Specify a base URL for all relative URLs on a page: <head> <base href=”https://www.schools.com/images/”> </head> Try it Yourself » Definition and Usage The href attribute specifies the base URL for all relative URLs on a page. Browser Support Attribute href Yes Yes Yes Yes Yes Syntax <base href=”URL“> Attribute Values Value Description URL An absolute […]

HTML <area> hreflang Attribute

In this article we will learn <area> hreflang attribute. Example An image-map, with clickable areas: <img src=”planets.gif” width=”145″ height=”126″ alt=”Planets” usemap=”#planetmap”> <map name=”planetmap”> <area shape=”rect” coords=”0,0,82,126″ alt=”Sun” href=”sun.htm” hreflang=”en”> </map> Try it Yourself » Definition and Usage This <area> attribute specifies the language of the target URL in the area. This attribute is only used if the href attribute is set. Note: This attribute is purely advisory. […]

HTML <a> rel Attribute

Example A link with a rel attribute: <a rel=”nofollow” href=”https://dwfaisalabad.com/”>DW Fsd</a> Try it Yourself » Definition and Usage The rel attribute specifies the relationship between the current document and the linked document. Only used if the href attribute is present. Differences Between HTML 4.01 and HTML5 Some values are removed, and some new values are added. Syntax […]

HTML <a> hreflang Attribute

Example The hreflang attribute specifies the language of the document in the link: <a hreflang=”en” href=”https://dwfaisalabad.com”>dwfaisalabad.com</a> Try it Yourself » Definition and Usage The hreflang attribute specifies the language of the linked document. This attribute is only used if the href attribute is set. Note: This attribute is purely advisory. Differences Between HTML 4.01 and HTML5 […]

HTML <a> href Attribute

Example The href attribute specifies the link’s destination: <a href=”https://dwfaisalabad.com”>Visit DW Fsd</a> Try it Yourself » More “Try it Yourself” examples below. Definition and Usage The href attribute specifies the URL of the page the link goes to. If the href attribute is not present, the <a> tag is not a hyperlink. Syntax <a href=”URL“> […]