Consent
Consent
Fundamentals
HTML, or HyperText Markup Language, forms the foundation of web
pages. It's a language that browsers understand and use to display the
content you see on websites.
by Amninder Singh
HTML Structure and Syntax
Every HTML document follows a specific structure. It starts with a
doctype declaration and includes the HTML, head, and body elements.
3 Attributes 4 Content
Provide additional The text or data contained
information about an within an element.
element, like its ID or class.
HTML Headings and Paragraphs
Headings and paragraphs are essential for structuring content and improving readability.
Headings Paragraphs
Use h1 to h6 tags for different levels of importance. h1 is the Use the p tag to create paragraphs. They automatically add
most important, h6 the least. spacing and newlines for better readability.
1. h1
2. h2
3. h3
4. h4
5. h5
6. h6
HTML Links and Anchors
Links allow users to navigate between different parts of a website or to
external resources.
Anchor Tag
1 The a tag creates links. The href attribute specifies the
destination.
Text Content
2 The text within the anchor tag becomes clickable and
represents the link.
Target Attribute
3 The target attribute controls where the link opens. _blank
opens in a new tab.
HTML Images and Media
HTML provides ways to embed images and other media into web pages, enhancing visual appeal and user engagement.
Type Description
3 Submit Button
The submit button sends the form data to the server.
HTML Semantic Elements
Semantic elements provide meaning and structure to content, improving accessibility and SEO.
Header 1
The header element represents the header of a
web page or a section.
2 Navigation
The nav element represents navigation links within
a web page.
Article 3
The article element represents an independent,
self-contained piece of content, like a blog post.
4 Aside
The aside element represents content that is
tangentially related to the main content of a page,
Footer 5 like a sidebar.
The footer element represents the footer of a web
page or a section.
Conclusion and Resources
HTML is the foundation of web development. Mastering HTML enables
you to create visually appealing and functional web pages. Explore online
resources and documentation to enhance your HTML skills.
W3Schools
A comprehensive online resource for web development tutorials.
Codecademy
An interactive learning platform for web development, including HTML
courses.