What is hypertext markup language (HTML) head?

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
Delete icon Remove icon Add icon Reload icon
TEMPORARILY UNAVAILABLE
DISCONTINUED
Temporary Unavailable
Cooming Soon!
. Additional units will be charged at the non-eCoupon price. Purchase additional now
We're sorry, the maximum quantity you are able to buy at this amazing eCoupon price is
Sign in or Create an Account to Save Your Cart!
Sign in or Create an Account to Join Rewards
View Cart
Wow, your cart is empty!
Remove
items in cart
Fill it in with great deals
Some items in your cart are no longer available. Please visit cart for more details.
has been deleted
Please review your cart as items have changed.
of
Contains Add-ons
Proceed to Checkout
Yes
No
Popular Searches
What are you looking for today ?
Trending
Recent Searches
Hamburger Menu
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 hypertext markup language (HTML) head?

The HTML head element is a container that holds metadata for a web page. You can include information like the character set, linked stylesheets, scripts, and other details that aren't displayed on the actual page itself.

What happens if I forget to include the head in my HTML?

If you forget to include the head section in your HTML, most modern browsers will still render the page correctly. They'll infer the missing parts, but it might lead to inconsistent results across different browsers or miss out on some metadata like specific character encoding.

What if I want to link to a favicon in the head?

If you want to link to a favicon, you can do so in the head section using the element with the appropriate attributes. This small icon will then appear in the browser's tab, providing a visual identification for your site.

What is the purpose of the base tag in the HTML head?

The base tag specifies a base uniform resource locator (URL) for relative URLs in a document. By defining a base URL in the head section, you make it easier to manage links and references throughout your site, especially if you have multiple pages linking to the same resources.

When should I update the content inside the HTML head?

You should update the content inside the HTML head when making changes to the meta information, adding or updating linked resources like cascading style sheets (CSS) or JavaScript files, or when optimizing for search engine optimization (SEO) or social media sharing. Regular reviews can help maintain the site's performance and discoverability.

What happens if I don't include a doctype declaration before the HTML head?

If you don't include a doctype declaration before the HTML head, browsers might render the page in "quirks mode." This can lead to inconsistent appearances across different browsers, as they will use outdated rendering rules. It's advisable to include a proper doctype for modern standards compliance.

Can I control caching behavior through the HTML head?

Yes, you can control caching behavior through meta tags in the HTML head. By setting specific cache-control directives, you can instruct browsers how to cache your webpage, either forcing regular updates or allowing the content to be cached for quicker loading.

Does the HTML head have a specific size limit?

There's no specific size limit for the HTML head but keeping it optimized is essential. Including too many scripts, stylesheets, or unnecessary meta tags might slow down the page's loading time, so it's wise to include only what's needed for the webpage.

Can I include more than one title tag in the HTML head?

While it's possible to include more than one title tag in the HTML head, it's not advised. Most browsers will only consider the first title tag and ignore the rest. Multiple title tags can create confusion and might not align with best practices.

Could I link to simple syndication (RSS) feeds through the HTML head?

Yes, you can link to RSS feeds through the HTML head by using the link tag with the rel attribute set to "alternate" and specifying the correct multipurpose internet mail extensions (MIME) type. This allows users and browsers to discover and subscribe to the feeds, keeping them updated with your content.

Can I set cookies through the HTML head?

While you can't directly set cookies through the HTML head, you can link to a JavaScript file that sets cookies. The script tag linking to the file would be placed in the head, and the actual code to set cookies would be in the linked JavaScript file.

What happens if I link to a non-existent cascading style sheet (CSS) file in the head?

If you link to a non-existent CSS file in the head, the browser will attempt to fetch it and fail, resulting in a 404 error. It won't break the webpage, but it might slow down the loading process slightly and leave some intended styles missing.

Can I include conditional comments in the HTML head?

Yes, you can include conditional comments in the HTML head to target specific versions of internet explorer. These comments allow you to write code that will only be read by certain versions of internet explorer (IE), enabling you to handle browser-specific issues.

Should I include the HTML head on every page of my website?

Yes, you should include the HTML head on every page of your website. It contains essential information like meta tags, linked stylesheets, and scripts that need to be present on each page for consistent styling, functionality, and search engine optimization (SEO) optimization.

Could I include a rel=canonical tag in the head, and what does it do?

Yes, you can include a rel=canonical tag in the head to specify the preferred version of a webpage. It helps search engines understand which uniform resource locator (URL) should be considered the "canonical" version, preventing duplicate content issues and helping with search engine optimization (SEO).

What if I include my styles directly in the head without using a link or style tag?

Including styles directly in the head without using a link or style tag will cause those styles to be ignored by the browser. Always use a style tag for internal cascading style sheets (CSS) or a link tag for external stylesheets to ensure that the styles are applied correctly.

Could I use the HTML head to redirect users to another page?

Yes, you can use a meta refresh tag in the HTML head to redirect users to another page after a specified number of seconds. While this method works, it's generally better to use hypertext transfer protocol (HTTP) status codes for redirection, as they are more efficient and search engine optimization (SEO)-friendly.

Could I include audio or video files in the HTML head?

No, audio or video files should not be included in the HTML head, as the head is reserved for meta information, linked resources, and scripts. Audio or video content should be placed in the document's body using appropriate tags.

What is the meta referrer tag in the HTML head, and why is it used?

The meta referrer tag in the HTML head controls the referrer information sent with requests from your page. By setting different policies, you can control the amount of referrer information shared, enhancing privacy or aligning with various cross-origin request requirements.

{"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