What is hypertext markup language (HTML)?

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 20% on Think everyday pricing.
• Spend $15K, advance for FREE to Plus Tier with increased benefits.
Plus Tier Benefits
• Save up to an extra 25% on Think everyday pricing.
• Spend $50K, advance for FREE to Elite Tier with increased benefits.
Elite Tier Benefits
• Save up to an extra 30% on Think everyday pricing.
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
Your cart is empty! Don’t miss out on the latest products and savings — find your next favorite laptop, PC, or accessory today.
Remove
item(s) in cart
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
Subtotal
Proceed to Checkout
Yes
No
Popular Searches
What are you looking for today ?
Trending
Recent Searches
Hamburger Menu


What is hypertext markup language (HTML)?

HTML is the standard markup language used to create and structure the content on web pages.

Why is HTML important for web development?

HTML is essential for web development because it provides the structure and semantics for web content. It allows you to define headings, paragraphs, links, images, tables, forms, and more, enabling browsers to interpret and display web pages correctly.

How do I create an HTML file?

To create an HTML file, you can use any text editor such as Notepad (Windows). Save the file with a .html extension, and you're ready to start writing HTML code.

What are HTML tags?

HTML tags are elements used to mark up and structure content in an HTML document. They consist of an opening tag () and a closing tag (), which enclose the content. For example, the <h1> tag is used for headings, <p> for paragraphs, and <a> for links.

How do I add a link to my HTML page?

To add a link, use the <a> tag with the href attribute. For instance, Click here creates a link with the text "click here" that points to the uniform resource locator (URL) "https://www.example.com".

Can I add images to my HTML page?

Yes, you can add images to your HTML page using the <img> tag. It requires the src attribute to specify the image uniform resource locator (URL), alt attribute for alternative text, and optionally, width and height attributes to define the image's dimensions.

How can I style my HTML elements?

You can style HTML elements using cascading style sheets (CSS). CSS allows you to change the appearance of elements by modifying properties like color, font size, margin, padding, and more. You can apply CSS styles inline, internally within the HTML file, or externally through a separate CSS file.

What is the difference between hypertext markup language (HTML) and cascading style sheets (CSS)?

HTML is used for creating the structure and content of a web page, while CSS is used for styling and visually enhancing the HTML elements. HTML defines the elements and their placement, while CSS controls their appearance.

How do I create a table in HTML?

To create a table, you use the <table> tag along with its related tags such as <tr> for table rows, <th> for table headers, and <td> for table cells. By combining these tags, you can structure tabular data and apply formatting as needed.

What is the purpose of forms in HTML?

Forms in HTML allow users to input data and submit it to a server for processing. They enable interaction and data collection on websites, such as submitting a contact form, creating an account, or making a purchase. HTML form elements include input fields, checkboxes, radio buttons, dropdown menus, and more.

How can I embed videos on my HTML page?

To embed videos, you can use the <video> tag in HTML5. Specify the video source using the src attribute, and you can also include additional attributes like width, height, controls, and autoplay. Alternatively, you can embed videos from platforms like YouTube by copying and pasting their provided embed code.

What is the purpose of HTML comments?

HTML comments let you add notes or reminders in your code not displayed on the webpage. They are useful for providing explanations to yourself or other developers about certain sections of code or for temporarily disabling specific code snippets.

Can I include JavaScript code in my HTML file?

Yes, you can include JavaScript code within your HTML file by using the script tag. This allows you to add interactivity and dynamic behavior to your web pages. The script tag can either contain the JavaScript code directly or reference an external JavaScript file using the src attribute.

How can I make my HTML page responsive?

To make your HTML page responsive, you can utilize cascading style sheets (CSS) media queries. Media queries allow you to define different styles for different screen sizes or devices, ensuring your page adapts and displays properly on various devices, including desktops, tablets, and smartphones.

How can I validate my HTML code?

To validate your HTML code, you can use online validators such as the W3C markup validation service. These validators check your code against HTML standards and provide feedback on any errors or warnings that need to be addressed. Validating your HTML ensures cross-browser compatibility and adherence to best practices.

Can I create interactive web applications using only HTML?

While HTML provides the structure of a web page, it is primarily a markup language and lacks the necessary functionality for building complex interactive web applications. To create interactive applications, you would typically combine HTML with CSS for styling and JavaScript for dynamic behavior and interactivity.

How does HTML contribute to search engine optimization (SEO)?

HTML plays a crucial role in search engine optimization. Properly using HTML tags and elements like headings (<h1> to <h6>), meta tags, alt attributes for images, and descriptive anchor text for links can improve the accessibility, visibility, and search engine ranking of your web pages.

Can I use HTML to send emails?

HTML can be used to create visually appealing emails, but when it comes to sending emails, you typically need to use a server-side language like hypertext preprocessor (PHP) or a dedicated email service. These technologies allow you to generate and send emails programmatically, including HTML content and styling.

Can I use HTML to create mobile apps?

HTML is not typically used on its own to create native mobile apps. However, it can be used in hybrid mobile app development frameworks like Ionic or React Native, where HTML, cascading style sheets (CSS), and JavaScript are used to build cross-platform apps that run on Android devices.

Is it possible to embed audio files in an HTML page?

Yes, HTML5 introduced the <audio> tag, which allows you to embed audio files directly into your web pages. You can specify the audio source using the src attribute and include additional attributes like controls, autoplay, and loop to define the audio playback behavior.

How can I embed PDF documents in an HTML page?

To embed PDF documents in an HTML page, you can use the <embed> tag or the <object> tag with the type of attribute set to "application/pdf". These tags allow you to specify the source PDF file using the src attribute, enabling visitors to view and interact with the PDF directly on your web page.

How can I embed portable document format (PDF) documents in an HTML page?

To embed PDF documents in an HTML page, you can use the <embed> tag or the <object> tag with the type of attribute set to "application/pdf". These tags allow you to specify the source PDF file using the src attribute, enabling visitors to view and interact with the PDF directly on your web page.

{"pageComponentDataId":"e857fdeft7e51-4b61-84dc-bccec6e68e00","pageComponentId":"e857fdeft7e51-4b61-84dc-bccec6e68e00","isAssociatedRelease":"true","pageComponentDataLangCode":"en_au","configData":{"jumpType":"currentTab","headlineColor":"black","displayNumber":"","styleMode":"vertical","miniCardHoMode":"2","headline":"","products":[{"number":{"t_id":"21kccto1wwau5","language":{"en_nz":"21kccto1wwau5","en_au":"21kccto1wwau5","en":""},"id":"Pageb33ce4b8-4839-4ba3-b993-7296d68a91b8"}},{"number":{"t_id":"21mccto1wwau3","language":{"en_nz":"21mccto1wwau3","en_au":"21mccto1wwau3","en":""},"id":"Page1fa61927-074c-4fe0-a8df-5c94362fb75c"}},{"number":{"t_id":"21lkcto1wwau3","language":{"en_nz":"21lkcto1wwau3","en_au":"21lkcto1wwau3","en":""},"id":"Pageca014688-410e-439a-a4c6-bba2ef6d4715"}},{"number":{"t_id":"21g2cto1wwau3","language":{"en_nz":"21g2cto1wwau3","en_au":"21g2cto1wwau3","en":""},"id":"Page79cd32c8-d467-4d68-b955-d273bb24eda7"}}]},"urlPrefix":"AAAAAAAH","title":"glossary-right-blue-boxes-fragment","pageId":"65b55929-de05-417a-a92a-ccb888d329b0","urlEdit":0,"uri":"/FragmentDirectory/glossary/glossary-right-blue-boxes-fragment.frag","pageComponentUuid":"e857fdeft7e51-4b61-84dc-bccec6e68e00"}
coming coming
Starting at
List Price
Web Price
Web Price:
List Price
Web Price
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.
Web Price 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
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
Top Deals of the Day
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.
Email address is required
Compare  ()
x