<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>rel attribute in html Archives - scmGalaxy</title>
	<atom:link href="https://www.scmgalaxy.com/tutorials/tag/rel-attribute-in-html/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.scmgalaxy.com/tutorials/tag/rel-attribute-in-html/</link>
	<description>A Platform for Software Engineers</description>
	<lastBuildDate>Wed, 04 Aug 2021 09:34:45 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1</generator>
	<item>
		<title>HTML: Anchor Tag … </title>
		<link>https://www.scmgalaxy.com/tutorials/html-anchor-tag/</link>
					<comments>https://www.scmgalaxy.com/tutorials/html-anchor-tag/#respond</comments>
		
		<dc:creator><![CDATA[vikashdev k]]></dc:creator>
		<pubDate>Wed, 04 Aug 2021 05:45:11 +0000</pubDate>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[a tag in html]]></category>
		<category><![CDATA[anchor tag attributes]]></category>
		<category><![CDATA[download attribute]]></category>
		<category><![CDATA[how to link text in html]]></category>
		<category><![CDATA[href attribute]]></category>
		<category><![CDATA[hreflang attribute]]></category>
		<category><![CDATA[html tag]]></category>
		<category><![CDATA[hyperlink in html]]></category>
		<category><![CDATA[link color]]></category>
		<category><![CDATA[link color in html]]></category>
		<category><![CDATA[media attribute]]></category>
		<category><![CDATA[rel attribute]]></category>
		<category><![CDATA[rel attribute in html]]></category>
		<category><![CDATA[type attribute in html]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=7353</guid>

					<description><![CDATA[<p>We can create hyperlinks using the anchor tag. What is a Hyperlink? A hyperlink is a link between web pages [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/html-anchor-tag/">HTML: Anchor Tag &lt;a&gt;… &lt;/a&gt;</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">We can create hyperlinks using the anchor tag.</p>



<p class="wp-block-paragraph">What is a Hyperlink?</p>



<p class="wp-block-paragraph">A hyperlink is a link between web pages and it is used to connect one web page to another.</p>



<p class="wp-block-paragraph">Ex:- &lt;a href=&#8221;https://www.google.com&#8221;&gt;Visit Google &lt;/a&gt;</p>



<h2 class="wp-block-heading">                     <strong>Anchor Tag Attributes</strong></h2>



<figure class="wp-block-table is-style-stripes"><table><tbody><tr><td><strong>Attribute</strong></td><td><strong>Value</strong></td><td><strong>Description</strong></td></tr><tr><td>href</td><td>URL reference</td><td>Specifies the URL as a destination web page or a different section of the web page</td></tr><tr><td>download</td><td>filename</td><td>Specifies that the target will be downloaded when a user clicks on the hyperlink</td></tr><tr><td>media</td><td>media_query</td><td>Specifies what media/device the linked document is optimized for</td></tr><tr><td>hreflang</td><td>language_code</td><td>Specifies the language of the linked document</td></tr><tr><td>type</td><td>media_type</td><td>Specifies the media type of the linked document</td></tr></tbody></table></figure>



<h2 class="wp-block-heading">                      <strong>Anchor Tag Attributes</strong></h2>



<figure class="wp-block-table is-style-stripes"><table><tbody><tr><td><strong>Attribute</strong></td><td><strong>Value</strong></td><td><strong>Description</strong></td></tr><tr><td>target</td><td>_blank _parent _top framename _self</td><td>Opens the linked document in a new window or tab Opens the linked document in the parent frame Opens the linked document in the full body of the window Opens the linked document in a named frame Opens the linked document in the same frame as it was clicked (this is the default)</td></tr></tbody></table></figure>



<p class="wp-block-paragraph">Ex:- &lt;a href=&#8221;https://www.google.com&#8221;target=&#8221;_blank&#8221;&gt;Visit Google &lt;/a&gt;</p>



<h2 class="wp-block-heading">                     <strong>Anchor Tag Attributes</strong></h2>



<figure class="wp-block-image size-large is-style-default"><img fetchpriority="high" decoding="async" width="892" height="407" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/image-17.png" alt="" class="wp-image-7355" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/image-17.png 892w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/image-17-300x137.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/image-17-768x350.png 768w" sizes="(max-width: 892px) 100vw, 892px" /></figure>



<h2 class="wp-block-heading">                      <strong>href Attribute</strong></h2>



<p class="wp-block-paragraph">Syntax: &#8211; &lt;a href=“URL&#8221;&gt;</p>



<ul class="wp-block-list"><li>An absolute URL &#8211; points to another web site.           Ex: &#8211; href=&#8221;http://www.google.com&#8221;</li><li>A relative URL &#8211; points to a file within a web site.      Ex:- href=“page1.html&#8221;</li><li>Link to an element with a specified id within the page.    Ex: &#8211;&nbsp; href=&#8221;#bottom&#8221;</li><li>Other protocols.  Ex:- https://, ftp://, mailto:, file:, etc..</li><li>A script.  Ex:- href=‘javascript:alert(“Hello”);’</li></ul>



<h2 class="wp-block-heading"><strong>                   Download Attribute</strong></h2>



<p class="wp-block-paragraph">The download attribute specifies that the target will be downloaded when a user clicks on the hyperlink.</p>



<p class="wp-block-paragraph">Ex:- &lt;a href=&#8221;image/example.jpg&#8221;download=&#8221;nature&#8221;&gt;</p>



<h2 class="wp-block-heading">                   <strong>Media Attribute</strong></h2>



<p class="wp-block-paragraph">The media attribute specifies what media/device the linked document is optimized for.</p>



<p class="wp-block-paragraph">This attribute is used to specify that the target URL is designed for special devices (like iPhone and Android etc), speech, or print media.</p>



<figure class="wp-block-table is-style-stripes"><table><tbody><tr><td><strong>Value</strong></td><td><strong>Description</strong></td></tr><tr><td>width</td><td>Specifies the width of the targeted display area.<br>&#8220;min-&#8221; and &#8220;max-&#8221; prefixes can be used.<br>Example: media=&#8221;screen and (min-width:500px)&#8221;</td></tr><tr><td>height</td><td>Specifies the height of the targeted display area.<br>&#8220;min-&#8221; and &#8220;max-&#8221; prefixes can be used.<br>Example: media=&#8221;screen and (max-height:700px)&#8221;</td></tr><tr><td>device-width</td><td>Specifies the width of the target display/paper.<br>&#8220;min-&#8221; and &#8220;max-&#8221; prefixes can be used.<br>Example: media=&#8221;screen and (device-width:500px)&#8221;</td></tr><tr><td>device-height</td><td>Specifies the height of the target display/paper.<br>&#8220;min-&#8221; and &#8220;max-&#8221; prefixes can be used.<br>Example: media=&#8221;screen and (device-height:500px)&#8221;</td></tr><tr><td>orientation</td><td>Specifies the orientation of the target display/paper.<br>Possible values: &#8220;portrait&#8221; or &#8220;landscape&#8221;<br>Example: media=&#8221;all and (orientation: landscape)&#8221;</td></tr></tbody></table></figure>



<figure class="wp-block-table is-style-stripes"><table><tbody><tr><td><strong>Value</strong></td><td><strong>Description</strong><strong></strong></td></tr><tr><td>aspect-ratio</td><td>Specifies the width/height ratio of the targeted display area.<br>&#8220;min-&#8221; and &#8220;max-&#8221; prefixes can be used.<br>Example: media=&#8221;screen and (aspect-ratio:16/9)&#8221;</td></tr><tr><td>device-aspect-ratio</td><td>Specifies the device-width/device-height ratio of the target display/paper.<br>&#8220;min-&#8221; and &#8220;max-&#8221; prefixes can be used.<br>Example: media=&#8221;screen and (aspect-ratio:16/9)&#8221;</td></tr><tr><td>color</td><td>Specifies the bits per color of the target display.<br>&#8220;min-&#8221; and &#8220;max-&#8221; prefixes can be used.<br>Example: media=&#8221;screen and (color:3)&#8221;</td></tr><tr><td>color-index</td><td>Specifies the number of colors the target display can handle.<br>&#8220;min-&#8221; and &#8220;max-&#8221; prefixes can be used.<br>Example: media=&#8221;screen and (min-color-index:256)&#8221;</td></tr><tr><td>monochrome</td><td>Specifies the bits per pixel in a monochrome frame buffer.<br>&#8220;min-&#8221; and &#8220;max-&#8221; prefixes can be used.<br>Example: media=&#8221;screen and (monochrome:2)&#8221;</td></tr></tbody></table></figure>



<figure class="wp-block-table is-style-stripes"><table><tbody><tr><td><strong>Value</strong></td><td><strong>Description</strong></td></tr><tr><td>resolution</td><td>Specifies the pixel density (dpi or dpcm) of the target display/paper.<br>&#8220;min-&#8221; and &#8220;max-&#8221; prefixes can be used.<br>Example: media=&#8221;print and (resolution:300dpi)&#8221;</td></tr><tr><td>scan</td><td>Specifies scanning method of a tv display.<br>Possible values are &#8220;progressive&#8221; and &#8220;interlace&#8221;.<br>Example: media=&#8221;tv and (scan:interlace)&#8221;</td></tr><tr><td>grid</td><td>Specifies if the output device is grid or bitmap.<br>Possible values are &#8220;1&#8221; for the grid, and &#8220;0&#8221; otherwise.<br>Example: media=&#8221;handheld and (grid:1)&#8221;</td></tr></tbody></table></figure>



<figure class="wp-block-table is-style-stripes"><table><tbody><tr><td><strong>Value</strong></td><td><strong>Description</strong></td></tr><tr><td>all</td><td>Default. Suitable for all devices</td></tr><tr><td>aural</td><td>Speech synthesizers</td></tr><tr><td>braille</td><td>Braille feedback devices</td></tr><tr><td>handheld</td><td>Handheld devices (small screen, limited bandwidth)</td></tr><tr><td>projection</td><td>Projectors</td></tr><tr><td>print</td><td>Print preview mode/printed pages</td></tr><tr><td>screen</td><td>Computer screens</td></tr><tr><td>tty</td><td>Teletypes and similar media using a fixed-pitch character grid</td></tr><tr><td>tv</td><td>Television type devices (low resolution, limited scroll ability)</td></tr></tbody></table></figure>



<ul class="wp-block-list"><li>And</li><li>Not</li><li>,(OR)</li></ul>



<p class="wp-block-paragraph">Ex:- media=&#8221;print and (resolution:300dpi)&#8221;&gt;</p>



<h2 class="wp-block-heading"><strong>                   hreflang Attribute</strong></h2>



<figure class="wp-block-image size-large"><img decoding="async" width="828" height="441" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/image-18.png" alt="" class="wp-image-7360" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/image-18.png 828w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/image-18-300x160.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/image-18-768x409.png 768w" sizes="(max-width: 828px) 100vw, 828px" /></figure>



<h2 class="wp-block-heading">                       <strong>Type Attribute</strong></h2>



<p class="wp-block-paragraph">http://www.iana.org/assignments/media-types/media-types.xhtml</p>



<h2 class="wp-block-heading">                       <strong>rel Attribute</strong></h2>



<figure class="wp-block-table is-style-stripes"><table><tbody><tr><td><strong>Value</strong></td><td><strong>Description</strong></td></tr><tr><td>alternate</td><td>Links to an alternate version of the document (i.e. print page, translated or mirror)</td></tr><tr><td>author</td><td>Links to the author of the document</td></tr><tr><td>bookmark</td><td>Permanent URL used for bookmarking</td></tr><tr><td>help</td><td>Links to a help document</td></tr><tr><td>license</td><td>Links to copyright information for the document</td></tr><tr><td>next</td><td>The next document in a selection</td></tr><tr><td>nofollow</td><td>Links to an unendorsed document, like a paid link.<br>(&#8220;nofollow&#8221; is used by Google, to specify that the Google search spider should not follow that link)</td></tr><tr><td>noreferrer</td><td>Specifies that the browser should not send a HTTP referer header if the user follows the hyperlink</td></tr><tr><td>prefetch</td><td>Specifies that the target document should be cached</td></tr><tr><td>prev</td><td>The previous document in a selection</td></tr><tr><td>search</td><td>Links to a search tool for the document</td></tr><tr><td>tag</td><td>A tag (keyword) for the current document</td></tr></tbody></table></figure>



<h2 class="wp-block-heading">                     <strong>Link Color</strong></h2>



<p class="wp-block-paragraph"><strong>By default, links will appear as follows in all browsers:</strong></p>



<p class="wp-block-paragraph">An unvisited link is underlined and blue</p>



<p class="wp-block-paragraph">A visited link is underlined and purple</p>



<p class="wp-block-paragraph">An active link is underlined and red</p>



<p class="wp-block-paragraph"><strong>link</strong> – specifies the color of the hyperlink that has not been visited or clicked<br>&nbsp; before on a webpage</p>



<p class="wp-block-paragraph"><strong>vlink</strong> &#8211; specifies the color of hyperlink that has been visited before on a web page</p>



<p class="wp-block-paragraph"><strong>alink</strong> – specifies the color of currently active links</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/html-anchor-tag/">HTML: Anchor Tag &lt;a&gt;… &lt;/a&gt;</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/html-anchor-tag/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
