HTML (HyperText Markup Language) is the backbone of web pages, defining their structure using elements like headings, paragraphs, links, and images. It tells web browsers how to display content, making it essential for website development. This guide help you to skill up lets start
HTML stands for HyperText Markup Language, but don’t let that complex-sounding name scare you. It’s simply a set of instructions that tells your web browser how to display content on a web page. Think of it as the blueprint for building a house.
HTML uses “tags” as labels for web page parts—like text, images, links. Tags are in pairs: <tag>
opens, </tag>
closes.
This is a paragraph.
Here, <`p> starts the paragraph, and <`/p> ends it. Simple, right?
Lets see the syntax
My First Web Page
Welcome to My Website!
This is a paragraph of text.
Click here to visit Example.com
DOCTYPE html
This declaration defines the document type and version of HTML-4 being used (in this case, HTML-5).
Html:
The root element that wraps the entire HTML document.
Head:
Contains meta-information about the HTML document, such as the title that appears in the browser tab.
Title:
Sets the title of the web page. In this example, it’s “My First Web Page.”
Body:
Contains the content of the web page, like text, images, and links.
h1:
Defines a top-level heading. Here, it says “Welcome to My Website!”
p:
Represents a paragraph of text.
img:
Embeds an image with the source file “my-image.jpg” and an alternative text “An image.”
a:
Creates a hyperlink with the text “Click here to visit Example.com” that links to “https://www.example.com.”
“Let’s quickly check out some tags. We’ll dive deeper into each one later. These example just give a simple idea how it works.
The tag in HTML is used to embed images in a web page. It is a self-closing tag, meaning it doesn't require a closing tag. Here's a simple example:
HTML Image Example
Adding an Image in HTML
HTML provides heading tags h1, h2, h3, h4, h5, and h6 for defining headings of varying levels. Here's an example:
HTML Heading Example
Heading 1
Heading 2
Heading 3
Heading 4
Heading 5
Heading 6
As you observe these two tags example, similar to today's HTML There are 142 HTML tags within the latest HTML version, HTML5.2. Only 115 tags are deemed functional and usable within any HTML code. Don't worry; we'll learn everything here
The tags we've explored are just the tip of the iceberg in the vast world of HTML. In the upcoming chapters, we'll delve into more tags, attributes, and techniques, empowering you to create your own digital masterpieces on the web. So, buckle up and get ready to unlock the full potential of HTML. Happy coding !❤️