ScholarQuill logoScholarQuillUniversity Notes
  • Notes
  • Past Papers
  • Blogs
  • Todo
Login
ScholarQuill logoScholarQuillUniversity Notes
Login
NotesPast PapersBlogsTodo
More
SubjectsDiscussionCGPA CalculatorGPA CalculatorStudent PortalCourse Outline
About
About usPrivacy PolicyReportContact
Notes
Past Papers
Blogs
Todo
Analytics
    Current Subject
    🧩
    Web Engineering
    ITEC3111
    Progress0 / 24 topics
    Topics
    1. Web programming languages (HTML5, CSS3, JavaScript, PHP/JSP/ASP.Net)2. HTML53. CSS34. JavaScript5. PHP6. JSP7. ASP.Net8. Design principles of Web based applications9. Web platform constraints10. Software as a Service (SaaS)11. Web standards12. Responsive Web Design13. Web Applications14. Browser/Server Communication15. Storage Tier16. Cookies and Sessions17. Input Validation18. Full stack state management19. Web App Security - Browser Isolation20. Network Attacks and Session Attacks21. Large scale applications22. Performance of Web Applications23. Data Centers24. Web Testing and Web Maintenance
    ITEC3111›HTML5
    Web EngineeringTopic 2 of 24

    HTML5

    4 minread
    651words
    Beginnerlevel

    🌐 HTML5 (HyperText Markup Language)


    📌 1. Definition

    HTML5 is the latest version of HTML used to create and structure web pages. It defines how content (text, images, videos, etc.) is displayed in a browser.


    🧱 2. Basic Structure of HTML5 Page

    <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>My Web Page</title>
    </head>
    <body>
        <h1>Hello World</h1>
        <p>This is HTML5 page.</p>
    </body>
    </html>
    

    🔑 Explanation

    • <!DOCTYPE html> → tells browser this is HTML5
    • <html> → root element
    • <head> → metadata (title, charset)
    • <body> → visible content

    🏷️ 3. HTML Elements & Tags

    📌 Definition

    An HTML element consists of:

    <tag>Content</tag>
    

    ⭐ Common Tags

    • <h1> to <h6> → headings
    • <p> → paragraph
    • <a> → hyperlink
    • <img> → image
    • <ul>, <ol>, <li> → lists

    🧠 4. New Features of HTML5

    1. Semantic Elements (Important for Exams)

    These give meaning to content:

    • <header> → top section
    • <footer> → bottom section
    • <article> → independent content
    • <section> → page section
    • <nav> → navigation links

    ✅ Example

    <header>
      <h1>Website Title</h1>
    </header>
    

    2. Multimedia Support

    HTML5 supports audio and video without plugins.

    <video controls>
      <source src="video.mp4">
    </video>
    
    <audio controls>
      <source src="audio.mp3">
    </audio>
    

    3. Canvas (Graphics)

    Used to draw graphics via JavaScript.

    <canvas id="myCanvas"></canvas>
    

    4. Forms Improvements

    New input types:

    • email
    • date
    • number
    • range
    <input type="email" placeholder="Enter email">
    

    5. Local Storage

    Stores data in browser:

    localStorage.setItem("name", "Ali");
    

    📝 5. Attributes

    📌 Definition

    Attributes provide extra information about elements.

    <a href="https://example.com">Visit</a>
    

    ⭐ Common Attributes

    • id
    • class
    • src
    • href
    • alt

    📋 6. Lists in HTML5

    Unordered List

    <ul>
      <li>Item 1</li>
    </ul>
    

    Ordered List

    <ol>
      <li>Item 1</li>
    </ol>
    

    🧾 7. Tables in HTML5

    <table>
      <tr>
        <th>Name</th>
        <th>Age</th>
      </tr>
      <tr>
        <td>Ali</td>
        <td>20</td>
      </tr>
    </table>
    

    🧩 8. Forms in HTML5

    <form>
      Name: <input type="text"><br>
      Email: <input type="email"><br>
      <input type="submit">
    </form>
    

    📊 9. HTML5 Page Layout (Diagram Description)

    👉 Draw this in exam:

    +-------------------+
    |     Header        |
    +-------------------+
    | Navigation Menu   |
    +-------------------+
    |   Section         |
    |   (Article)       |
    +-------------------+
    |     Footer        |
    +-------------------+
    

    ⚠️ 10. Important Rules

    ✔ Tags are usually paired (<p></p>) ✔ Some tags are self-closing (<img>) ✔ Use proper nesting ✔ HTML is not case-sensitive ✔ Always include <!DOCTYPE html>


    🔄 11. Advantages of HTML5

    • Easy to learn
    • Supports multimedia
    • Mobile-friendly
    • No plugins required
    • Better SEO with semantic tags

    ❌ 12. Limitations

    • Cannot perform logic (needs JavaScript)
    • No database handling
    • Static by itself

    ❓ 13. Likely Exam Questions

    Short Questions

    1. Define HTML5.
    2. What are semantic tags?
    3. List new input types in HTML5.
    4. What is the use of <canvas>?
    5. Difference between <div> and <section>?

    Long Questions

    1. Explain HTML5 structure with example.
    2. Discuss new features of HTML5.
    3. Explain HTML forms with input types.
    4. Describe HTML5 page layout with diagram.
    5. Write a complete HTML5 webpage.

    📝 14. Summary / Quick Revision

    • HTML5 = Structure of web page

    • Uses tags & elements

    • New features:

      • Semantic tags
      • Audio/Video
      • Forms
      • Canvas
    • Works with CSS + JavaScript


    Previous topic 1
    Web programming languages (HTML5, CSS3, JavaScript, PHP/JSP/ASP.Net)
    Next topic 3
    CSS3

    Past Papers

    Open this section to load past papers

    Click on Show Past Papers to see past papers.
    On This Page
      Reading Stats
      Est. reading time4 min
      Word count651
      Code examples0
      DifficultyBeginner