What is hypertext markup language (HTML)?

respectSign
This is a recommends products dialog
Top Suggestions
Starting at
View All >
Language
French
English
LangEntry.ChineseTaiwan
ไทย
LangEntry.Dutch
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 >
spend
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
Temporarilyunavailable
Discontinued
comingsoon
minicart_error_please_view
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 ?
Quick Links
Recent Searches
Hamburger Menu
skip to main content
{"backgroundColor":"#e6f4fa","sideMsg":"","data":[{"bannerInfo":{"t_id":"Pageda44be57-293f-41c4-a22a-ec1f4d1d4aaa","language":{"en_nz":"Lenovo%26%2339%3Bs%20CO2%20Offset%20Services%20%7C%20Choose%20the%20technology%20you%20need%20without%20compromising%20on%20your%20environmental%20goals.%26nbsp%3B%3Ca%20href%3D%22%2Fco2-offset-services%2F%3FipromoID%3Dnz_sitewide_carousel_b1_co2%22%20target%3D%22_blank%22%20title%3D%22LEARN%20MORE%20%26gt%3B%22%20style%3D%22color%3A%20rgb(41%2C%2078%2C%20149)%3B%20text-decoration%3A%20underline%3B%22%3E%3Cspan%20style%3D%22color%3A%20rgb(41%2C%2078%2C%20149)%3B%22%3ELEARN%20MORE%20%26gt%3B%3C%2Fspan%3E%3C%2Fa%3E","en":"%3Cp%3E%3Cspan%20style%3D%22text-wrap%3A%20wrap%3B%22%3ELenovo%26%2339%3Bs%20CO2%20Offset%20Services%20%7C%20Choose%20the%20technology%20you%20need%20without%20compromising%20on%20your%20environmental%20goals.%26nbsp%3B%3C%2Fspan%3E%3Ca%20href%3D%22%2Fco2-offset-services%2F%3FipromoID%3Dnz_sitewide_carousel_b1_co2%22%20target%3D%22_blank%22%20title%3D%22LEARN%20MORE%20%26gt%3B%22%20textvalue%3D%22LEARN%20MORE%20%26gt%3B%22%20style%3D%22color%3A%20rgb(41%2C%2078%2C%20149)%3B%20text-decoration%3A%20underline%3B%22%3E%3Cspan%20style%3D%22color%3A%20rgb(41%2C%2078%2C%20149)%3B%22%3ELEARN%20MORE%20%26gt%3B%3C%2Fspan%3E%3C%2Fa%3E%3C%2Fp%3E"},"id":"Pageda44be57-293f-41c4-a22a-ec1f4d1d4aaa"}},{"pcInfo":"","mAndTabInfo":"","bannerInfo":{"t_id":"Page4874ba0d-3199-4846-bb5c-1682f8f7ab23","language":{"en_nz":"Lenovo%20Education%20Store%20%7C%20Get%20access%20to%20members-only%20pricing%20across%20a%20large%20range%20of%20PCs%20%26amp%3B%20accessories.%20Sign%20up%20now%20with%20your%20Education%20ID.%20%3Ca%20href%3D%22https%3A%2F%2Fwww.lenovo.com%2Fnz%2Fedu%2Fnzeducation%2Fen%2Flogin%2Fanzedu%2F%3FipromoID%3Dnz_sitewide_carousel_b2_nzedu%22%20target%3D%22_blank%22%20title%3D%22SIGN%20UP%20OR%20LOG%20IN%22%20style%3D%22color%3A%20rgb(41%2C%2078%2C%20149)%3B%20text-decoration%3A%20underline%3B%22%3E%3Cspan%20style%3D%22color%3A%20rgb(41%2C%2078%2C%20149)%3B%22%3ESIGN%20UP%20OR%20LOG%20IN%3C%2Fspan%3E%3C%2Fa%3E","en":"%3Cp%3E%3Cspan%20style%3D%22text-wrap%3A%20wrap%3B%22%3ELenovo%20Education%20Store%20%7C%26nbsp%3B%3C%2Fspan%3E%3Cspan%20style%3D%22text-wrap%3A%20wrap%3B%22%3EGet%20access%20to%20members-only%20pricing%20across%20a%20large%20range%20of%20PCs%20%26amp%3B%20accessories.%20Sign%20up%20now%20with%20your%20Education%20ID.%26nbsp%3B%3C%2Fspan%3E%3Ca%20href%3D%22https%3A%2F%2Fwww.lenovo.com%2Fnz%2Fedu%2Fnzeducation%2Fen%2Flogin%2Fanzedu%2F%3FipromoID%3Dnz_sitewide_carousel_b2_nzedu%22%20target%3D%22_blank%22%20title%3D%22SIGN%20UP%20OR%20LOG%20IN%22%20textvalue%3D%22SIGN%20UP%20OR%20LOG%20IN%22%3ESIGN%20UP%20OR%20LOG%20IN%3C%2Fa%3E%3C%2Fp%3E"},"id":"Page4874ba0d-3199-4846-bb5c-1682f8f7ab23"},"gInfo":""},{"pcInfo":"","mAndTabInfo":"","bannerInfo":{"t_id":"Page34a34439-01c1-482d-980f-c1d0048af3fd","language":{"en_nz":"%3Cp%3ELenovo%20Pro%20Business%20Store%20%7C%20Get%20access%20to%20exclusive%20business%20benefits%2C%201%3A1%20support%20%26amp%3B%20lots%20more.%20Login%20to%20access%20your%20savings%20now.%26nbsp%3B%3C%2Fp%3E%3Cp%3E%3Ca%20href%3D%22https%3A%2F%2Fwww.lenovo.com%2Fnz%2Fsharelenovo%2Fnzsmb%2Fen%2Flogin%2Fnzsmb%2Findex.html%3FipromoID%3Dnz_sitewide_carousel_b3_nzsmb%22%20target%3D%22_blank%22%20title%3D%22SIGN%20UP%20OR%20LOG%20IN%22%20textvalue%3D%22SIGN%20UP%20OR%20LOG%20IN%22%20style%3D%22color%3A%20rgb(41%2C%2078%2C%20149)%3B%20text-decoration%3A%20underline%3B%22%3E%3Cspan%20style%3D%22color%3A%20rgb(41%2C%2078%2C%20149)%3B%22%3ESIGN%20UP%20OR%20LOG%20IN%3C%2Fspan%3E%3C%2Fa%3E%3C%2Fp%3E","en":"%3Cp%20style%3D%22text-wrap%3A%20wrap%3B%22%3ELenovo%20Pro%20Business%20Store%20%7C%20Get%20access%20to%20exclusive%20business%20benefits%2C%201%3A1%20support%20%26amp%3B%20lots%20more.%20Login%20to%20access%20your%20savings%20now.%26nbsp%3B%3C%2Fp%3E%3Cp%20style%3D%22text-wrap%3A%20wrap%3B%22%3E%3Ca%20href%3D%22https%3A%2F%2Fwww.lenovo.com%2Fnz%2Fsharelenovo%2Fnzsmb%2Fen%2Flogin%2Fnzsmb%2Findex.html%3FipromoID%3Dnz_sitewide_carousel_b3_nzsmb%22%20target%3D%22_blank%22%20title%3D%22SIGN%20UP%20OR%20LOG%20IN%22%20textvalue%3D%22SIGN%20UP%20OR%20LOG%20IN%22%20style%3D%22color%3A%20rgb(41%2C%2078%2C%20149)%3B%22%3ESIGN%20UP%20OR%20LOG%20IN%3C%2Fa%3E%3C%2Fp%3E"},"id":"Page34a34439-01c1-482d-980f-c1d0048af3fd"},"gInfo":""}],"autoRun":true,"displayTerminal":"pc,tablet,mobile"}

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.

open in new tab
© 2024 Lenovo. All rights reserved.
© {year} Lenovo. All rights reserved.
Compare  ()
removeAll x