How to specify the location of the linked document in HTML5? Last Updated : 07 Apr, 2021 Summarize Comments Improve Suggest changes Share Like Article Like Report In this article, we will learn how to specify the location of the linked document in HTML5. This can be done by using a href attribute in the <link> element. This has various uses. Most commonly it is used to link stylesheets or favicons to the document. Syntax: <link rel="stylesheet" type="text/css" href="style.css"> The below examples illustrate the use of the href attribute. Example 1: In this example, an external stylesheet's location is specified using the href attribute. HTML <html> <head> <!-- Bootstrap CSS from CDN --> <link rel="stylesheet" href= "https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> <!-- Custom styling --> <style> h1 { color: green; } h1, h2 { text-align: center; } </style> </head> <body> <h1>GeeksforGeeks</h1> <h2> How to specify the location of the linked document in HTML5? </h2> </body> </html> Output: Example 2: In this example, the <a> tag is used to link the document using the href attribute. HTML <html> <head> <style> h1 { color: green; } body { text-align: center; } </style> </head> <body> <h1>GeeksforGeeks</h1> <h2> How to specify the location of the linked document in HTML5? </h2> <a href="https://ide.geeksforgeeks.org/"> Click to open in the same tab </a> </body> </html> Output: Comment More infoAdvertise with us Next Article How to specify language of the target URL in HTML5 ? M manaschhabra2 Follow Improve Article Tags : Web Technologies HTML HTML5 HTML-Questions Similar Reads How to set the language of text in the linked document in HTML5 ? The approach of this article is to specify the language of the text in the linked document in HTML5 by using a hreflang attribute in the HTML Tag. The value (or languageCode) passed here is the code of the linked document. (for e.g. if the document/website in the given link is in English en is passe 1 min read How to specify the URL of the media file in HTML5 ? Here we will see how to set the URL of a media file using HTML. To set the URL of media file we use <source> tag. This tag is used to attach multimedia files like audio, video and pictures. The <audio>, <video> and <picture> elements contain the <source> element. Syntax 1 min read How to specify the address of the document to embed in the iframe element in HTML5? The iframe in HTML stands for Inline frame. The âiframeâ element in a webpage helps to display another web page document within some particular area or region using the web browser. The inline frame is used to embed another webpage within the current HTML webpage having different attributes for load 2 min read How to specify language of the target URL in HTML5 ? In this article, we will learn how to set the language of the target URL in HTML5. The task can be done by using the hreflang attribute while using the <area> tag. This property contains the value i.e languageCode which represents the two-letter code of the linked document language. Note: If t 1 min read How to specify media type of the target URL in HTML5 ? You can easily specify the media type of the target URL in HTML5 using the media attribute of HTML. This attribute is used to specify that the target URL is designed for special devices (like iPhone, Android, etc), speech or print media, projectors, tv, and so on.Syntax:<a href="" media="screen" 2 min read How to specify the hyperlink target for the area of an image in HTML5 ? The href attribute is used to specify the hyperlink target for the area in HTML5. The area tag is not a hyperlink in itself. The <a> tag should always have an opening as well as a closing tag. The coords attribute is obsolete on an element. Instead, always use the area tag for the image map wh 1 min read Like