Welcome To HTML
Welcome To HTML
The root element of the HTML The head section holds metadata
This line tells the browser which document, containing all other about the page, such as title and style
version of HTML is being used, elements. information. The body section
ensuring proper interpretation. contains the visible content of the
page.
HTML Elements
1 Headings 2 Paragraphs
Define the structure and importance of content on a Enclose blocks of text, formatting them as distinct
page, ranging from H1 (most important) to H6 (least units and improving readability.
important).
3 Links 4 Images
Allow users to navigate between web pages, creating Embed images into a webpage, adding visual appeal
a connected web experience. and enhancing the content.
HTML Attributes
Attribute Description
H2
Secondary headings, used for major sections of content within a page.
H3
Tertiary headings, used to further divide content within a section.
H4 to H6
Used for progressively smaller headings, often for subtopics or smaller sections within a page.
HTML Paragraphs
Text Structure
Paragraphs help organize content into readable chunks,
improving comprehension and user experience.
Readability
Appropriate use of paragraph breaks creates a visual hierarchy,
guiding readers through the text.
Whitespace
Whitespace between paragraphs provides visual separation and
enhances readability, making the text easier on the eyes.
HTML Links
What are HTML links?
Types of Links
HTML Images
Image Tag
The <img> tag is used to embed images into an HTML page, enhancing visual appeal and
conveying information.
Image Source
The 'src' attribute specifies the URL of the image file to be displayed.
Alternative Text
The 'alt' attribute provides alternative text for images, essential for accessibility and search
engine optimization (SEO).
HTML Forms
What are HTML forms?
Form Elements