What is an HTML tag?

This is a recommends products dialog
Top Suggestions
Starting at
View All >
Language
French
English
ไทย
German
繁體中文
Country
Hi
All
Sign In / Create Account
language Selector,${0} is Selected
Register & Shop at Lenovo Pro
Register at Education Store

Pro Tier Benefits

• Save up to an extra 5% on Think everyday pricing
• Spend RM$25,000, advance to Plus Tier with increased benefits

Plus Tier Benefits

• Save up to an extra 8% on Think everyday pricing
• Spend RM$75,000, advance for free to Elite Tier with increased benefits
• Take advantage of flexible payment options with TruScale Device as a Service.

Elite Tier Benefits

• Save up to an extra 12% on Think everyday pricing
• Take advantage of flexible payment options with
TruScale Device as a Service.
Reseller Benefits
• Access to Lenovo's full product portfolio
• Configure and Purchase at prices better than Lenovo.com
View All Details >
more to reach
PRO Plus
PRO Elite
Congratulations, you have reached Elite Status!
Pro for Business
skip to main content
{"arrowColor":"#000000","backgroundColor":"#e6f4fa","sideMsg":"","data":[{"pcInfo":"","mAndTabInfo":"","bannerInfo":{"t_id":"Pagefde68b41-7739-4188-a59a-fc1d7ee8c5c7","language":{"en_my":"%3Cp%20style%3D%22text-wrap%3A%20wrap%3B%22%3E%3Cspan%20style%3D%22color%3A%20rgb(0%2C%200%2C%200)%3B%22%3E%3C%2Fspan%3E%3Cstrong%3E%3C%2Fstrong%3E%3Cstrong%3E%3C%2Fstrong%3E%3Cstrong%3E%3C%2Fstrong%3EPurchase%20any%20PC%20with%20your%20Lenovo%20Pro%20Business%20account%20and%20enjoy%20up%20to%2020%25%20off%20your%20next%20purchase%20of%20selected%20accessories.%3Cspan%20style%3D%22color%3A%20rgb(0%2C%200%2C%200)%3B%22%3E%3C%2Fspan%3E%3C%2Fp%3E%3Cp%20style%3D%22text-wrap%3A%20wrap%3B%22%3E%3Ca%20href%3D%22https%3A%2F%2Faccount.lenovo.com%2Fmy%2Flenovopro%2Fen%2Fsmbaccount%2Fgatekeeper%2Fshowpage%3FipromoID%3Dhellobar_01_lpro%22%20target%3D%22_self%22%20style%3D%22color%3A%20rgb(0%2C%200%2C%200)%3B%20text-decoration%3A%20underline%3B%22%3E%3Cspan%20style%3D%22color%3A%20rgb(0%2C%200%2C%200)%3B%22%3E%3Cstrong%3EJoin%20Lenovo%20Pro%20FREE%3C%2Fstrong%3E%3C%2Fspan%3E%3C%2Fa%3E%3C%2Fp%3E","en":""},"id":"Pagefde68b41-7739-4188-a59a-fc1d7ee8c5c7"},"gInfo":""},{"pcInfo":"","mAndTabInfo":"","bannerInfo":{"t_id":"Pagea973cd37-aa37-4a85-9c9e-eb5032ea9d83","language":{"en_my":"%3Cp%3E%3Cstrong%3ELenovo%20Education%3C%2Fstrong%3E%20%7C%20Register%20to%20unlock%20up%20to%20RM500%20welcome%20discount%20%2B%20up%20to%208%25%20EXTRA%20savings%20with%20Lenovo%20Education.%26nbsp%3B%3C%2Fp%3E%3Cp%3E%3Ca%20href%3D%22%2Fd%2Fschool-from-home%2F%3FipromoID%3DHellobar_02_edu_cta1%22%20target%3D%22_self%22%20style%3D%22color%3A%20rgb(0%2C%200%2C%200)%3B%20text-decoration%3A%20underline%3B%22%3E%3Cspan%20style%3D%22color%3A%20rgb(0%2C%200%2C%200)%3B%22%3E%3Cstrong%3EShop%20Now%3C%2Fstrong%3E%3C%2Fspan%3E%3C%2Fa%3E%3Cspan%20style%3D%22color%3A%20rgb(0%2C%200%2C%200)%3B%22%3E%3Cstrong%3E%26nbsp%3B%20%7C%26nbsp%3B%20%3C%2Fstrong%3E%3Ca%20href%3D%22https%3A%2F%2Fwww.lenovo.com%2Fmy%2Fedu%2Fmyedu%2Fen%2Flogin%2Fedu%2F%3FipromoID%3DHellobar_02_edu_cta2%22%20target%3D%22_self%22%20textvalue%3D%22Sign%20Up%20%2F%20Sign%20In%22%20style%3D%22color%3A%20rgb(0%2C%200%2C%200)%3B%20text-decoration%3A%20underline%3B%22%3E%3Cspan%20style%3D%22color%3A%20rgb(0%2C%200%2C%200)%3B%22%3E%3Cstrong%3ESign%20Up%20%2F%20Sign%20In%3C%2Fstrong%3E%3C%2Fspan%3E%3C%2Fa%3E%3C%2Fspan%3E%3C%2Fp%3E","en":""},"id":"Pagea973cd37-aa37-4a85-9c9e-eb5032ea9d83"},"gInfo":""},{"pcInfo":"","mAndTabInfo":"","bannerInfo":{"t_id":"Page2e9ff5e9-da60-48ac-bbc0-1aee266eb582","language":{"en_my":"%3Cp%3E%3Cspan%20style%3D%22text-wrap%3A%20wrap%3B%20color%3A%20rgb(0%2C%200%2C%200)%3B%22%3E%3C%2Fspan%3EAll-new%20ThinkPad%20P14s%20Gen%205%7CExperience%20performance%20and%20power%20on%20the%20go%20with%20up%20to%20Intel%C2%AE%20Core%E2%84%A2%20Ultra%209%20processor.%26nbsp%3B%3Cspan%20style%3D%22color%3A%20rgb(0%2C%200%2C%200)%3B%20text-wrap%3A%20wrap%3B%22%3E%20%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%3C%2Fspan%3E%3Ca%20href%3D%22%2Fp%2Flaptops%2Fthinkpad%2Fthinkpadp%2Fthinkpad-p14s-gen-5-(14-inch-intel)-mobile-workstation%2Flen101t0106%3FipromoID%3Dhellobar_03_thinkpad-p14s-gen-5%22%20target%3D%22_blank%22%20textvalue%3D%22Shop%20Now%22%20style%3D%22color%3A%20rgb(0%2C%200%2C%200)%3B%20text-decoration%3A%20underline%3B%22%3E%3Cspan%20style%3D%22color%3A%20rgb(0%2C%200%2C%200)%3B%22%3E%3Cstrong%3EShop%20Now%3C%2Fstrong%3E%3Cstrong%3E%3C%2Fstrong%3E%3C%2Fspan%3E%3C%2Fa%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%3C%2Fp%3E%3Cp%3E%3Ca%20href%3D%22%2Fd%2Fdeals-and-coupons%2Fnew-arrivals%2F%3FipromoID%3Dhellobar_New_Arrivals%22%20target%3D%22_self%22%20style%3D%22color%3A%20rgb(0%2C%200%2C%200)%3B%20text-decoration%3A%20underline%3B%22%3E%3Cstrong%3E%3Cspan%20style%3D%22color%3A%20rgb(0%2C%200%2C%200)%3B%22%3EAll%20New%20Arrivals%3C%2Fspan%3E%3C%2Fstrong%3E%3C%2Fa%3E%3C%2Fp%3E","en":""},"id":"Page2e9ff5e9-da60-48ac-bbc0-1aee266eb582"},"gInfo":""},{"pcInfo":"","mAndTabInfo":"","bannerInfo":{"t_id":"Page462e9ef1-a44d-40cd-b023-e861e1bc8db1","language":{"en_my":"%3Cp%3E%3Cspan%20style%3D%22color%3A%20rgb(0%2C%200%2C%200)%3B%22%3E%3C%2Fspan%3E%3C%2Fp%3E%3Cp%3EYoga%20Slim%207i%20(14%26%2339%3B%26%2339%3B%2C%20Gen%209)%7CUnlock%20seamless%20AI-powered%20creativity%20with%20Intel%C2%AE%20Core%E2%84%A2%20Ultra%20processors%20in%20a%20thin%2C%20light%20design%20with%20epic%20battery%20life.%26nbsp%3B%20%26nbsp%3B%3Ca%20href%3D%22%2Fp%2Flaptops%2Fyoga%2Fyoga-slim-series%2Fyoga-slim-7i-gen-9-aura-edition-15-inch-intel%2Flen101y0051%3FipromoID%3Dhellobar_Yoga_Slim_7i_Gen_9%22%20target%3D%22_blank%22%20style%3D%22color%3A%20rgb(0%2C%200%2C%200)%3B%20text-decoration%3A%20underline%3B%22%3E%3Cspan%20style%3D%22color%3A%20rgb(0%2C%200%2C%200)%3B%22%3E%3Cstrong%3EShop%20Now%3C%2Fstrong%3E%3Cstrong%3E%3C%2Fstrong%3E%3C%2Fspan%3E%3C%2Fa%3E%3C%2Fp%3E","en":""},"id":"Page462e9ef1-a44d-40cd-b023-e861e1bc8db1"},"gInfo":""}],"autoRun":true,"displayTerminal":"pc,tablet,mobile"}


What is an HTML <a> tag?

The HTML <a> tag is a crucial element in web development that you use to create hyperlinks. These hyperlinks allow you to connect your webpage to another page or a different section of the same page. This tag enhances navigation within and across websites, making it user-friendly.

Does the HTML <a> tag only link to other webpages?

No, the HTML <a> tag can do more than just link to other webpages. You can also use it to link to different sections of the same webpage, to files for download, or even to an email address. It offers flexibility in creating interactive and navigable content on your website.

Can I add any attributes to the HTML <a> tag?

Yes, you can add several attributes to the <a> tag to enhance its functionality. For instance, the href attribute specifies the link's destination, while the target attribute determines where the linked document will open. Other attributes like rel, media, hreflang, and type<a> provide additional information about the linked document.

Could I use the HTML <a> tag to open a link in a new tab?

Yes, you can. To open a link in a new tab, you would use the target attribute with the _blank value in your <a> tag. This instructs the browser to open the linked document in a new tab or window, providing a smooth browsing experience for your users.

Would the HTML <a> tag work without the href<a> attribute?

Technically, yes. An <a> tag without an href attribute can still be used, but it won't function as a hyperlink. Instead, it serves as a placeholder for a hyperlink or an anchor for other elements on the webpage. However, to fully utilize the tag’s purpose, it's best to include the href<a> attribute.

When should I use the rel attribute in the HTML <a> tag?

You should use the rel attribute when you want to specify the relationship between your webpage and the linked document. This attribute is particularly useful for SEO as it helps search engines understand the nature of the link. Common values for the rel attribute include nofollow, noopener, and noreferrer.

Does the HTML <a> tag support all browsers?

Yes, the HTML <a> tag is supported by all major web browsers, including Google Chrome, Firefox, Safari, and Microsoft Edge. Therefore, you can confidently use this tag knowing that it will function correctly across different platforms, ensuring a consistent user experience.

What happens if I click on an <a> tag linking to an email address?

When you click on an <a> tag that links to an email address, it prompts your device's default email client to open a new message draft. The mailto: scheme is used in the href<a> attribute to specify the email address. This makes it easier for users to contact you directly from your webpage.

Can I nest other tags within the HTML <a> tag?

Yes, you can nest other tags within the <a> tag. This is useful when you want to create a clickable area that contains more than just text, such as images or block-level elements. However, remember not to nest a tag within another <a> tag as this is not valid HTML.

Does the HTML <a> tag affect SEO?

Indeed, the HTML <a> tag does impact SEO. Search engines use these tags to crawl and index the structure of your website. By using descriptive link text and relevant rel<a> attribute values, you can enhance your site's SEO and improve its ranking on search engine results pages.

What does the download attribute do in the HTML <a> tag?

When you add the download attribute to an <a> tag, it instructs the browser to download the linked resource rather than navigating to it. This is particularly useful when you want your users to download files directly from your webpage.

Can I use the HTML <a> tag to link to a specific part of another webpage?

Yes, to link to a specific part of another webpage, you would use the href attribute with a URL followed by a hash (#) and the id of the element you want to link to. This is called a fragment identifier and it allows for precise navigation within webpages.

Does the target attribute in the HTML <a> tag have values other than _blank<a>?

Absolutely. Apart from _blank, which opens the linked document in a new window or tab, there are other values you can use. _self opens the link in the same frame (this is the default behavior), _parent opens it in the parent frame, and _top opens the link in the full body of the window.

How can I style my HTML <a> tags?

You can style your <a> tags using CSS. You can change the color, font, background, and more. Also, you can style different states of a link — like when it's hovered over (:hover), active (:active), or visited (:visited<a>) — to make your links more interactive and engaging.

Could I use the HTML <a> tag to create a phone link?

Yes, you can. By using the tel: scheme in the href attribute, you can create a link that, when clicked, prompts the user's device to dial the specified phone number. This is especially useful for mobile users, as they can call directly from your webpage.

Does the HTML <a> tag have any accessibility considerations?

Yes, accessibility is a crucial aspect of web development, and the <a> tag is no exception. Ensure your link text is descriptive and makes sense out of context for screen readers. Avoid phrases like "click here". Additionally, consider users with motor disabilities by making your clickable areas large enough.

What is the significance of the nofollow value in the rel attribute of the HTML <a> tag?

The nofollow value in the rel attribute instructs search engines not to follow the link or pass on any SEO equity to the linked page. This is useful when linking to pages you don't want to endorse, like untrusted content or paid links.

Can I use special characters in the HTML <a> tag?

Yes, you can use special characters in the <a> tag, but they need to be properly encoded to ensure they're correctly interpreted by the browser. For example, spaces can be encoded as %20 or + in the href<a> attribute.

Can I use an image as a link with the HTML <a> tag?

Yes, you can nest an tag inside an <a> tag to make the image act as a link. When a user clicks on the image, they'll be directed to the URL specified in the href attribute of the <a> tag.

What is the purpose of the ping attribute in the HTML <a> tag?

The ping attribute in the <a> tag can be used to send a short 'ping' request to a specified URL when the user clicks on the link. This can be useful for tracking click events without slowing down the navigation to the linked resource.

Is it possible to link to a specific time in a YouTube video using the HTML <a> tag?

Yes, it's possible. To link to a specific time in a YouTube video, add ?t=XXmYYs at the end of the video URL in the href attribute, where XX is the minute and YY is the second you want to link to.

{"pageComponentDataId":"90631b2078a14-49f1-baf5-1af41769d989","pageComponentId":"90631b2078a14-49f1-baf5-1af41769d989","isAssociatedRelease":"true","pageComponentDataLangCode":"en_my","configData":{"jumpType":"currentTab","headlineColor":"black","displayNumber":"","styleMode":"vertical","miniCardHoMode":"2","headline":"","products":[{"number":{"t_id":"len101t0102","language":{"en_my":"len101t0102","en":""},"id":"Page5b3178f1-cef2-4ef0-b35b-3bae8c821b17"}},{"number":{"t_id":"len101t0104","language":{"en_my":"len101t0104","en":""},"id":"Page2f564f70-3a6d-490b-8015-744f095e9d8f"}},{"number":{"t_id":"len101t0081","language":{"en_my":"len101t0081","en":""},"id":"Page27cdc2c1-5454-40f9-bcd9-2f6a4e8479cd"}},{"number":{"t_id":"len101g0036","language":{"en_my":"len101g0036","en":""},"id":"Page5963a347-f151-4487-a936-73bc059a28b0"}}]},"urlPrefix":"AAAAAAALAAAA","title":"my-glossary-right-blue-boxes-fragment","pageId":"e76be3f4-dd00-4ffe-bca4-fc111728a73b","urlEdit":0,"uri":"/FragmentDirectory/glossary/glossary-right-blue-boxes-fragment.frag","pageComponentUuid":"90631b2078a14-49f1-baf5-1af41769d989"}
coming coming
Starting at
List Price
Est Value
Web Price:
List Price
Est Value (Estimated Value)
List Price is Lenovo’s estimate of product value based on the industry data, including the prices at which first and third-party retailers and etailers have offered or valued the same or comparable products. Third-party reseller data may not be based on actual sales.
Estimated value is Lenovo’s estimate of product value based on industry data, including the prices at which Lenovo and/or third-party retailers and e-tailers have offered or valued the same or comparable products. Third-party data may not be based on actual sales.
Learn More
See More
See Less
View {0} Model
View {0} Models
shipping.options.for.{0}
Part Number:
Features
See More
See Less
compare
Added!
Great choice!
You may compare up to 4 products per product category (laptops, desktops, etc). Please de-select one to add another.
View Your Comparisons
Add To Cart
Add To Cart
We're sorry,
Products are temporarily unavailable.
Continue Shopping
Learn More
Coming Soon
Featured Product
Featured Products
Oops! No results found. Visit the categories above to find your product.
Save
open in new tab
© 2024 Lenovo. All rights reserved.
© {year} Lenovo. All rights reserved.
Compare  ()
x