HTML Introduction | GeeksforGeeks
HTML Introduction | GeeksforGeeks
HTML Introduction
Summary
<!DOCTYPE html>
<html>
https://www.geeksforgeeks.org/html-introduction/ Page 1 of 10
HTML Introduction | GeeksforGeeks 14/05/25, 3:25 AM
<head>
<title>My First Webpage</title>
</head>
<body>
<h1>Welcome to My Webpage</h1>
<p>This is my first paragraph of text!</p>
</body>
</html>
Output:
HTML
In this example:
https://www.geeksforgeeks.org/html-introduction/ Page 2 of 10
HTML Introduction | GeeksforGeeks 14/05/25, 3:25 AM
text!”).
HTML Introduction
https://www.geeksforgeeks.org/html-introduction/ Page 3 of 10
HTML Introduction | GeeksforGeeks 14/05/25, 3:25 AM
title, and body elements) upon which all web pages are created.
https://www.geeksforgeeks.org/html-introduction/ Page 4 of 10
HTML Introduction | GeeksforGeeks 14/05/25, 3:25 AM
On the other hand, A tag is the actual keyword or name enclosed in angle
brackets (< >) that tells the browser what kind of content to expect.
HTML Tags
Tag Description
<html> The root element of an HTML document
<head> Contains meta-information about the webpage
<body> Contains the visible content of the webpage
<h1> to <h6> Headings of various levels (h1 being the largest)
<p> Defines a paragraph
<a> Defines a hyperlink
<img> Embed an image
<ul> Defines an unordered list
<ol> Defines an ordered list
https://www.geeksforgeeks.org/html-introduction/ Page 5 of 10
HTML Introduction | GeeksforGeeks 14/05/25, 3:25 AM
HTML Attributes
Attributes provide additional information about an element. They are
placed inside the opening tag and are written as name=”value”. Common
attributes include class, id, href, and src.
Example:
href is an attribute of the <a> tag that defines the URL of the link.
Web Browsers
Unlike other programming languages, HTML does not show output on the
compiler. Web browsers show the results of an HTML code.
It reads HTML files and determines how to show content with the help of
HTML tags. Any web browser (Google, Safari, Mozilla Firefox, etc)
can be used to open a . HTML file and view the results.
https://www.geeksforgeeks.org/html-introduction/ Page 6 of 10
HTML Introduction | GeeksforGeeks 14/05/25, 3:25 AM
index.html
1. Build Websites: HTML is the basic building block for creating any
website. Learning HTML can help you pursue a career in web
development.
2. Customize Content: Allows you to edit or tweak web pages, emails,
or templates to fit your needs.
3. Understand how the web works: This helps you grasp how the
internet works and how web pages are structured.
4. Employment Opportunities: According to the Bureau of Labor
Statistics, projects that employment for web developers will grow 16%
between 2022 and 2032, which is much faster than the average
across all occupations.
https://www.geeksforgeeks.org/html-introduction/ Page 7 of 10
HTML Introduction | GeeksforGeeks 14/05/25, 3:25 AM
Applications of HTML
Web Development: HTML is the backbone of every webpage. It
structures the content and integrates multimedia, hyperlinks, and
more.
Web Applications: HTML, in combination with CSS and
JavaScript, powers complex web applications (e.g., Google Docs,
Trello).
Emails: HTML emails use table-based layouts and embedded media
to deliver rich, interactive content.
Mobile App Development: HTML5 is used with frameworks like
PhoneGap to build mobile apps for iOS and Android.
Limitations of HTML
No Logic or Functionality: HTML cannot handle complex logic,
interactivity, or dynamic content on its own. It requires JavaScript
for such tasks.
SEO Limitations: While HTML provides structure, it’s not enough
by itself for search engine optimization (SEO). Proper metadata and
content structuring, as well as external SEO practices, are necessary.
Limited Styles: While HTML can handle basic styles via the style
attribute, it is typically complemented by CSS for complex styling and
layout.
https://www.geeksforgeeks.org/html-introduction/ Page 8 of 10
HTML Introduction | GeeksforGeeks 14/05/25, 3:25 AM
HTML History
Currently, we are using HTML5, which is the latest and most advanced
version of HTML.
Conclusion
In conclusion, mastering HTML is a fundamental step in your web
development journey. This guide serves as a comprehensive resource for
understanding HTML, from the basics to more advanced topics.
Remember, HTML is more than just a markup language – it’s a powerful
tool for creating engaging, accessible, and SEO-friendly websites.
https://www.geeksforgeeks.org/html-introduction/ Page 9 of 10