0% found this document useful (0 votes)
22 views13 pages

Basic HTML Presentation

Uploaded by

iam.matteo03
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views13 pages

Basic HTML Presentation

Uploaded by

iam.matteo03
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 13

Basic Elements and Tags of HTML

A Beginner’s Guide to Web


Development
Introduction to HTML

• HTML stands for HyperText Markup Language.


• It is the standard language for creating webpages.
• HTML uses tags to structure content.
• Tags usually come in pairs: opening < > and closing </ >.
Structure of an HTML Document

• <!DOCTYPE html> – Defines HTML version


• <html> – Root element
• <head> – Page metadata
• <body> – Visible content
Basic Tags

• <html> → Root element


• <head> → Contains metadata, title, links
• <title> → Title of the webpage (browser tab)
• <body> → Holds all visible content
Text Formatting Tags

• <h1> to <h6> → Headings (largest to smallest)


• <p> → Paragraph
• <b> or <strong> → Bold text
• <i> or <em> → Italicized text
• <br> → Line break
• <hr> → Horizontal rule
Links and Images

• Links: <a href='https://example.com'>Visit Example</a>


• Images: <img src='image.jpg' alt='Description'>
• href defines URL, src is image path, alt is alternative text.
Lists

• Unordered List: <ul><li>Item</li></ul>


• Ordered List: <ol><li>First</li></ol>
Tables

• <table>, <tr>, <th>, <td>


• Example:
• <table border='1'><tr><th>Name</th><th>Age</th></tr>
• <tr><td>Ana</td><td>15</td></tr></table>
Forms

• <form> collects user input


• Common tags: <input>, <label>, <textarea>, <button>
• Example: <input type='text' name='username'>
Semantic Elements (HTML5)

• <header> → Page or section header


• <nav> → Navigation links
• <section> → Section of content
• <article> → Independent article
• <footer> → Page footer
Attributes in HTML

• Attributes provide extra info about tags.


• Examples:
• <img src='image.png' alt='My Image'>
• <a href='https://google.com' target='_blank'>Google</a>
• <p style='color:blue;'>This is blue text</p>
Summary

• HTML uses tags to structure webpages.


• Basic tags: <html>, <head>, <title>, <body>.
• Content tags: headings, paragraphs, lists, tables, images, links.
• Forms & semantic tags make webpages functional & meaningful.
Closing / Q&A

• Thank You!
• Any Questions?

You might also like