Chapter 1

HTML5 Tags, Semantics & Forms

Learn semantic layout, lists, tables, links, images, video tags, and complete responsive forms.

HTML5: Foundations of Modern Web Development

HTML stands for HyperText Markup Language. It provides the skeletal structure and semantics for web pages.

Standard HTML5 Boilerplate:
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>My First Web Page</title>
</head>
<body>
    <header>
        <h1>Welcome to Satyam Education</h1>
    </header>
    <main>
        <p>Start learning computer fundamentals online!</p>
    </main>
    <footer>
        <p>© 2026 Satyam Education</p>
    </footer>
</body>
</html>
Key HTML5 Semantic Elements:
  • <header>: Introductory content, top banner, or navigation bar.
  • <nav>: Container for navigation links.
  • <section>: Thematic grouping of content.
  • <article>: Self-contained composition (blog post, news story).
  • <aside>: Tangentially related side content or sidebar.
  • <footer>: Author info, copyright, sitemaps.
Hands-on Laboratory Procedures & Shortcuts

Follow the steps below to practice directly on your computer.

Interactive Web Form Practical:
<form action="submit.php" method="POST">
    <label for="uname">Full Name:</label>
    <input type="text" id="uname" name="uname" required placeholder="Enter your name">
    
    <label for="email">Email Address:</label>
    <input type="email" id="email" name="email" required>
    
    <label for="gender">Gender:</label>
    <input type="radio" name="gender" value="Male"> Male
    <input type="radio" name="gender" value="Female"> Female
    
    <label for="course">Course:</label>
    <select id="course" name="course">
        <option value="pgdca">PGDCA</option>
        <option value="tally">Tally Prime</option>
    </select>
    
    <button type="submit">Submit Application</button>
</form>
Watch the video class above while following along with the practical exercises.
Key Summary & Revision Bullet Points

Quick cheat-sheet to review before online examinations.

• DOCTYPE: <!DOCTYPE html> informs the browser to render using modern HTML5 standards.
• Empty / Void Elements: Tags that have no closing tag: <br>, <hr>, <img>, <input>, <meta>, <link>.
• Hyperlinks: <a href="url" target="_blank"> opens destination link in a new browser tab.
Frequently Asked Viva & Exam Questions

Review these standard questions frequently asked in diploma exams and job interviews.

Q1: What is the purpose of the alt attribute on an <img> tag?
Ans: The alt attribute specifies alternative text displayed when the image fails to load, and provides critical accessibility for visually impaired users using screen readers.

Q2: What is the difference between <div> and <span>?
Ans: <div> is a block-level element taking full available width and starting on a new line. <span> is an inline element taking only as much width as its content without breaking lines.
Interactive Chapter Quiz

Test your mastery immediately! Click an option to see instant answer feedback.

Q1 Which HTML tag is used to create a clickable hyperlink?
A. <link>
B. <a>
C. <href>
D. <url>
Explanation: The <a> (anchor) tag with the href attribute defines hyperlinks.
Q2 Which HTML5 element represents self-contained content such as a blog post or news article?
A. <section>
B. <aside>
C. <article>
D. <div>
Explanation: <article> specifies independent, distributable content.
Q3 Which attribute opens a linked document in a new browser tab or window?
A. target="_new"
B. target="_blank"
C. target="_parent"
D. target="_top"
Explanation: target="_blank" launches the URL in a separate tab.
Q4 Which of the following is an empty (void) HTML element without a closing tag?
A. <p>
B. <span>
C. <img>
D. <h1>
Explanation: <img> is a self-closing void element in HTML.
Q5 Which HTML element is used to insert a line break?
A. <break>
B. <lb>
C. <br>
D. <newline>
Explanation: <br> creates a single line break.