You are on page 1of 12

HTML For Beginners

Module - 2
Getting Started
Elements in HTML
What is HTML Element
• Building blocks that define structure and content of web page
• Made up of opening and closing tags
• Tags formatted as:
<element> Content goes here </element>
HTML Document Structure
• <html> root element
• <head> metadata, CSS, JS links
• <body> visible page content
• <title> defines title in browser tab
Text Elements
• <h1> to <h6>: heading tags
• <p>: paragraph tags
• <br>: line break
• Can format text with <b>, <i>, <u> etc.
Heading
Paragraph
List Elements
• <ol>: ordered/numbered list
• <ul>: unordered list
• <li>: list items
List Example
Image & Link Elements
• <img>: add images
• <a>: create hyperlinks
• Use src, href attributes
Image & Link Example
Conclusion
• HTML elements provide page structure
• Enclose element names in opening/closing tags
• Allow adding text, lists, links, images etc
Q&A

You might also like