├── LICENSE
├── HTML Fundamentals
├── 01 Basic Structure
│ ├── 01 Document Type Declaration
│ │ └── document_type_declaration.html
│ ├── 04 Character Encoding
│ │ └── character_encoding.html
│ ├── 02 HTML Head and Body Tags
│ │ └── html_head_body_tags.html
│ ├── 03 Meta Tags
│ │ └── meta_tags.html
│ └── 05 Viewport Settings
│ │ └── viewport_settings.html
├── 02 Semantic Elements
│ ├── 01 header
│ │ └── header_element.html
│ ├── 04 article
│ │ └── article_element.html
│ ├── 06 aside
│ │ └── aside_element.html
│ ├── 03 main
│ │ └── main_element.html
│ ├── 07 footer
│ │ └── footer_element.html
│ ├── 02 nav
│ │ └── nav_element.html
│ ├── 08 figure and figcaption
│ │ └── figure_figcaption_elements.html
│ └── 05 section
│ │ └── section_element.html
├── 10 Embedding Content
│ ├── 03 SVG Integration
│ │ └── svg_integration.html
│ ├── 01 iframe
│ │ └── iframe_external_content.html
│ ├── 02 embed and object
│ │ └── embed_object_plugins.html
│ └── 04 MathML
│ │ └── mathml_expressions.html
├── 08 Accessibility (a11y)
│ ├── 04 Alt Text for Images
│ │ └── alt_text_images.html
│ ├── 05 Focus Management
│ │ └── focus_management.html
│ ├── 01 ARIA Roles and Attributes
│ │ └── aria_roles_attributes.html
│ ├── 03 Keyboard Navigation
│ │ └── keyboard_navigation.html
│ └── 02 Semantic HTML for Screen Readers
│ │ └── semantic_html_screen_readers.html
├── 03 Forms and Input
│ ├── 01 form Element
│ │ └── form_element.html
│ ├── 03 Form Attributes
│ │ └── form_attributes.html
│ ├── 04 Validation Attributes
│ │ └── validation_attributes.html
│ ├── 05 label select textarea button
│ │ └── label_select_textarea_button.html
│ └── 02 Input Types
│ │ └── input_types.html
├── 04 Multimedia
│ ├── 01 img
│ │ └── img_element.html
│ ├── 02 audio
│ │ └── audio_element.html
│ ├── 03 video
│ │ └── video_element.html
│ └── 04 source and track
│ │ └── source_and_track.html
├── 05 Hyperlinks and Navigation
│ ├── 04 Email and Telephone Links
│ │ └── email_telephone_links.html
│ ├── 03 Downloadable Resources
│ │ └── downloadable_resources.html
│ ├── 02 Internal and External Links
│ │ └── internal_external_links.html
│ └── 01 a Tag Basics
│ │ └── anchor_attributes.html
├── 06 Tables
│ ├── 01 table tr td th
│ │ └── basic_table_elements.html
│ ├── 02 Headers and Captions
│ │ └── table_headers_captions.html
│ ├── 04 Accessibility with scope
│ │ └── table_accessibility_scope.html
│ └── 03 thead tbody tfoot
│ │ └── table_sections.html
├── 09 Responsive Design
│ ├── 01 Meta Viewport Tag
│ │ └── meta_viewport.html
│ ├── 03 Picture Element
│ │ └── picture_element.html
│ ├── 02 Responsive Images (srcset sizes)
│ │ └── responsive_images.html
│ └── 04 Media Queries Integration
│ │ └── media_queries.html
└── 07 HTML5 APIs
│ ├── 07 Fetch API
│ └── fetch_api.html
│ ├── 06 History API
│ └── history_api.html
│ ├── 02 Geolocation API
│ └── geolocation_api.html
│ ├── 01 Canvas API
│ └── canvas_api.html
│ ├── 04 Drag and Drop API
│ └── drag_and_drop_api.html
│ ├── 03 Web Storage (localStorage sessionStorage)
│ └── web_storage.html
│ └── 05 Web Workers
│ └── web_workers.html
├── README.md
└── HTML Interview Questions
└── README.md
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2025 rohanmistry231
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
--------------------------------------------------------------------------------
/HTML Fundamentals/01 Basic Structure/01 Document Type Declaration/document_type_declaration.html:
--------------------------------------------------------------------------------
1 |
41 |
42 |
43 | Document Type Declaration Example
44 |
45 |
46 | Document Type Declaration Example
47 | This HTML file starts with the <!DOCTYPE html> declaration to indicate it is an HTML5 document.
48 |
49 |
--------------------------------------------------------------------------------
/HTML Fundamentals/01 Basic Structure/04 Character Encoding/character_encoding.html:
--------------------------------------------------------------------------------
1 |
41 |
42 |
43 |
44 | Character Encoding Example
45 |
46 |
47 | Character Encoding Example
48 | This file uses <meta charset="UTF-8"> to specify the character encoding, ensuring proper display of special characters like © or é.
49 | Example: Copyright © 2025
50 |
51 |
--------------------------------------------------------------------------------
/HTML Fundamentals/01 Basic Structure/02 HTML Head and Body Tags/html_head_body_tags.html:
--------------------------------------------------------------------------------
1 |
41 |
42 |
43 | HTML, Head, and Body Tags Example
44 |
45 |
46 | HTML, Head, and Body Tags Example
47 | This file demonstrates the basic structure with <html>, <head>, and <body> tags.
48 | The <head> contains metadata, while the <body> contains visible content.
49 |
50 |
--------------------------------------------------------------------------------
/HTML Fundamentals/02 Semantic Elements/01 header/header_element.html:
--------------------------------------------------------------------------------
1 |
41 |
42 |
43 |
44 |
45 | Header Element Example
46 |
47 |
48 |
52 | Content outside the header.
53 |
54 |
--------------------------------------------------------------------------------
/HTML Fundamentals/10 Embedding Content/03 SVG Integration/svg_integration.html:
--------------------------------------------------------------------------------
1 |
41 |
42 |
43 |
44 |
45 | SVG Integration Example
46 |
47 |
48 | SVG Integration Example
49 |
50 |
51 |
52 | This is an inline SVG graphic of a blue circle.
53 |
54 |
--------------------------------------------------------------------------------
/HTML Fundamentals/02 Semantic Elements/04 article/article_element.html:
--------------------------------------------------------------------------------
1 |
41 |
42 |
43 |
44 |
45 | Article Element Example
46 |
47 |
48 | My Blog
49 |
50 | Blog Post Title
51 | This is an element, representing a self-contained piece of content, like a blog post.
52 |
53 | Other content outside the article.
54 |
55 |
--------------------------------------------------------------------------------
/HTML Fundamentals/02 Semantic Elements/06 aside/aside_element.html:
--------------------------------------------------------------------------------
1 |
41 |
42 |
43 |
44 |
45 | Aside Element Example
46 |
47 |
48 |
49 | Main Content
50 | This is the main content of the page.
51 |
52 |
53 | Sidebar
54 | This is an element, often used for supplementary content like a sidebar.
55 |
56 |
57 |
--------------------------------------------------------------------------------
/HTML Fundamentals/08 Accessibility (a11y)/04 Alt Text for Images/alt_text_images.html:
--------------------------------------------------------------------------------
1 |
41 |
42 |
43 |
44 |
45 | Alt Text for Images Example
46 |
47 |
48 | Alt Text for Images Example
49 |
50 | The image above includes an alt attribute for accessibility, describing its content for screen readers.
51 |
52 |
--------------------------------------------------------------------------------
/HTML Fundamentals/02 Semantic Elements/03 main/main_element.html:
--------------------------------------------------------------------------------
1 |
41 |
42 |
43 |
44 |
45 | Main Element Example
46 |
47 |
48 |
51 |
52 | Main Content
53 | This is the section, which contains the primary content of the page.
54 |
55 |
58 |
59 |
--------------------------------------------------------------------------------
/HTML Fundamentals/03 Forms and Input/01 form Element/form_element.html:
--------------------------------------------------------------------------------
1 |
41 |
42 |
43 |
44 |
45 | Form Element Example
46 |
47 |
48 | Form Element Example
49 |
56 |
57 |
--------------------------------------------------------------------------------
/HTML Fundamentals/01 Basic Structure/03 Meta Tags/meta_tags.html:
--------------------------------------------------------------------------------
1 |
41 |
42 |
43 | Meta Tags Example
44 |
45 |
46 |
47 |
48 |
49 | Meta Tags Example
50 | This file includes <meta> tags in the <head> section for description, keywords, and author information.
51 |
52 |
--------------------------------------------------------------------------------
/HTML Fundamentals/04 Multimedia/01 img/img_element.html:
--------------------------------------------------------------------------------
1 |
41 |
42 |
43 |
44 |
45 | Image Element Example
46 |
47 |
48 | Image Element Example
49 |
50 | This image uses the element with src, alt, and loading="lazy" attributes.
51 | The loading="lazy" attribute defers loading until the image is near the viewport.
52 |
53 |
--------------------------------------------------------------------------------
/HTML Fundamentals/01 Basic Structure/05 Viewport Settings/viewport_settings.html:
--------------------------------------------------------------------------------
1 |
41 |
42 |
43 |
44 |
45 | Viewport Settings Example
46 |
47 |
48 | Viewport Settings Example
49 | This file includes <meta name="viewport" content="width=device-width, initial-scale=1.0"> to ensure the page is responsive on different devices.
50 | Try resizing your browser or viewing on a mobile device to see the effect.
51 |
52 |
--------------------------------------------------------------------------------
/HTML Fundamentals/02 Semantic Elements/07 footer/footer_element.html:
--------------------------------------------------------------------------------
1 |
41 |
42 |
43 |
44 |
45 | Footer Element Example
46 |
47 |
48 |
49 | Main Content
50 | This is the main content of the page.
51 |
52 |
53 | © 2025 My Website. All rights reserved.
54 | This is a element, typically used for copyright or contact information.
55 |
56 |
57 |
--------------------------------------------------------------------------------
/HTML Fundamentals/02 Semantic Elements/02 nav/nav_element.html:
--------------------------------------------------------------------------------
1 |
41 |
42 |
43 |
44 |
45 | Nav Element Example
46 |
47 |
48 |
49 |
54 |
55 | Navigation Example
56 | The element contains navigation links for the website.
57 |
58 |
--------------------------------------------------------------------------------
/HTML Fundamentals/02 Semantic Elements/08 figure and figcaption/figure_figcaption_elements.html:
--------------------------------------------------------------------------------
1 |
41 |
42 |
43 |
44 |
45 | Figure and Figcaption Elements Example
46 |
47 |
48 | Image with Caption
49 |
50 |
51 | This is a caption for the image, inside a element.
52 |
53 | Content outside the figure.
54 |
55 |
--------------------------------------------------------------------------------
/HTML Fundamentals/02 Semantic Elements/05 section/section_element.html:
--------------------------------------------------------------------------------
1 |
41 |
42 |
43 |
44 |
45 | Section Element Example
46 |
47 |
48 | My Website
49 |
50 | Section Title
51 | This is a element, used to group related content, such as a chapter or topic.
52 |
53 |
54 | Another Section
55 | This is another section of content.
56 |
57 |
58 |
--------------------------------------------------------------------------------
/HTML Fundamentals/05 Hyperlinks and Navigation/04 Email and Telephone Links/email_telephone_links.html:
--------------------------------------------------------------------------------
1 |
41 |
42 |
43 |
44 |
45 | Email and Telephone Links Example
46 |
47 |
48 | Email and Telephone Links Example
49 | Email Link: Send an Email
50 | Telephone Link: Call Us
51 | The mailto: protocol opens the user's email client, and the tel: protocol initiates a call on supported devices.
52 |
53 |
--------------------------------------------------------------------------------
/HTML Fundamentals/05 Hyperlinks and Navigation/03 Downloadable Resources/downloadable_resources.html:
--------------------------------------------------------------------------------
1 |
41 |
42 |
43 |
44 |
45 | Downloadable Resources Example
46 |
47 |
48 | Downloadable Resources Example
49 | Click the link to download a resource:
50 | Download Sample PDF
51 | The download attribute prompts the browser to download the file instead of navigating to it.
52 | Note: In a real scenario, replace the href with a valid file URL.
53 |
54 |
--------------------------------------------------------------------------------
/HTML Fundamentals/05 Hyperlinks and Navigation/02 Internal and External Links/internal_external_links.html:
--------------------------------------------------------------------------------
1 |
41 |
42 |
43 |
44 |
45 | Internal and External Links Example
46 |
47 |
48 | Internal and External Links Example
49 | External Link: Visit Example.com
50 | Internal Link: Jump to Section Below
51 |
52 | Section
53 | This is the section you jumped to using an internal link.
54 |
55 |
--------------------------------------------------------------------------------
/HTML Fundamentals/04 Multimedia/02 audio/audio_element.html:
--------------------------------------------------------------------------------
1 |
41 |
42 |
43 |
44 |
45 | Audio Element Example
46 |
47 |
48 | Audio Element Example
49 |
50 |
51 | Your browser does not support the audio element.
52 |
53 | This audio element uses controls, autoplay, and loop attributes.
54 | Note: Autoplay requires muted in many browsers to work without user interaction.
55 |
56 |
--------------------------------------------------------------------------------
/HTML Fundamentals/04 Multimedia/03 video/video_element.html:
--------------------------------------------------------------------------------
1 |
41 |
42 |
43 |
44 |
45 | Video Element Example
46 |
47 |
48 | Video Element Example
49 |
50 |
51 | Your browser does not support the video element.
52 |
53 | This video element uses controls, poster, and muted attributes.
54 | The poster attribute displays a placeholder image before the video plays.
55 |
56 |
--------------------------------------------------------------------------------
/HTML Fundamentals/06 Tables/01 table tr td th/basic_table_elements.html:
--------------------------------------------------------------------------------
1 |
41 |
42 |
43 |
44 |
45 | Basic Table Elements Example
46 |
47 |
48 | Basic Table Elements Example
49 |
50 |
51 | Name
52 | Score
53 |
54 |
55 | Alice
56 | 85
57 |
58 |
59 | Bob
60 | 92
61 |
62 |
63 | This table uses
, , , and elements to display a simple dataset.
64 |
65 |
--------------------------------------------------------------------------------
/HTML Fundamentals/10 Embedding Content/01 iframe/iframe_external_content.html:
--------------------------------------------------------------------------------
1 |
41 |
42 |
43 |
44 |
45 | IFrame External Content Example
46 |
49 |
50 |
51 | IFrame External Content Example
52 |
55 | This
56 | Note: Some websites may block embedding due to security restrictions.
57 |
58 |
--------------------------------------------------------------------------------
/HTML Fundamentals/09 Responsive Design/01 Meta Viewport Tag/meta_viewport.html:
--------------------------------------------------------------------------------
1 |
41 |
42 |
43 |
44 |
45 | Meta Viewport Tag Example
46 |
50 |
51 |
52 |
53 |
Meta Viewport Tag Example
54 |
This page uses the meta viewport tag to ensure proper scaling on mobile devices.
55 |
Resize your browser or view on a mobile device to see the responsive behavior.
56 |
57 |
58 |
--------------------------------------------------------------------------------
/HTML Fundamentals/05 Hyperlinks and Navigation/01 a Tag Basics/anchor_attributes.html:
--------------------------------------------------------------------------------
1 |
41 |
42 |
43 |
44 |
45 | Anchor Attributes Example
46 |
47 |
48 | Anchor Attributes Example
49 | This demonstrates the element with href, target, and rel attributes:
50 |
54 | The target="_blank" opens the link in a new tab, and rel="noopener" enhances security.
55 |
56 |
--------------------------------------------------------------------------------
/HTML Fundamentals/09 Responsive Design/03 Picture Element/picture_element.html:
--------------------------------------------------------------------------------
1 |
41 |
42 |
43 |
44 |
45 | Picture Element Example
46 |
47 |
48 | Picture Element Example
49 |
50 |
51 |
52 |
53 |
54 | The element serves different images based on screen size: 1200px for large screens, 800px for medium, and 400px for small.
55 |
56 |
--------------------------------------------------------------------------------
/HTML Fundamentals/08 Accessibility (a11y)/05 Focus Management/focus_management.html:
--------------------------------------------------------------------------------
1 |
41 |
42 |
43 |
44 |
45 | Focus Management Example
46 |
49 |
50 |
51 | Focus Management Example
52 | Set Focus to Input
53 |
54 | Click the button to programmatically set focus on the input field, or use Tab to navigate to it.
55 |
60 |
61 |
--------------------------------------------------------------------------------
/HTML Fundamentals/03 Forms and Input/03 Form Attributes/form_attributes.html:
--------------------------------------------------------------------------------
1 |
41 |
42 |
43 |
44 |
45 | Form Attributes Example
46 |
47 |
48 | Form Attributes Example
49 |
61 |
62 |
--------------------------------------------------------------------------------
/HTML Fundamentals/08 Accessibility (a11y)/01 ARIA Roles and Attributes/aria_roles_attributes.html:
--------------------------------------------------------------------------------
1 |
41 |
42 |
43 |
44 |
45 | ARIA Roles and Attributes Example
46 |
47 |
48 | ARIA Roles and Attributes Example
49 |
50 | This is an alert message for screen readers.
51 |
52 | Update Alert
53 |
58 | The
uses role="alert" and aria-live="assertive" to announce changes to screen readers.
59 |
60 |
--------------------------------------------------------------------------------
/HTML Fundamentals/09 Responsive Design/02 Responsive Images (srcset sizes)/responsive_images.html:
--------------------------------------------------------------------------------
1 |
41 |
42 |
43 |
44 |
45 |
Responsive Images Example
46 |
47 |
48 |
Responsive Images Example
49 |
53 |
This image uses srcset and sizes to serve different image sizes based on viewport width.
54 |
Small screens get a 400px image, medium screens a 800px image, and large screens a 1200px image.
55 |
56 |
--------------------------------------------------------------------------------
/HTML Fundamentals/07 HTML5 APIs/07 Fetch API/fetch_api.html:
--------------------------------------------------------------------------------
1 |
41 |
42 |
43 |
44 |
45 |
Fetch API Example
46 |
47 |
48 |
Fetch API Example
49 |
Fetch Data
50 |
Click the button to fetch data.
51 |
62 |
63 |
--------------------------------------------------------------------------------
/HTML Fundamentals/10 Embedding Content/02 embed and object/embed_object_plugins.html:
--------------------------------------------------------------------------------
1 |
41 |
42 |
43 |
44 |
45 |
Embed and Object Plugins Example
46 |
49 |
50 |
51 |
Embed and Object Plugins Example
52 |
Using
53 |
54 | Using
55 |
56 | Your browser does not support this object.
57 |
58 | The and elements are used to embed a PDF file (placeholder URL).
59 | In a real scenario, replace the src/data with a valid PDF URL.
60 |
61 |
--------------------------------------------------------------------------------
/HTML Fundamentals/06 Tables/02 Headers and Captions/table_headers_captions.html:
--------------------------------------------------------------------------------
1 |
41 |
42 |
43 |
44 |
45 | Table Headers and Captions Example
46 |
47 |
48 | Table Headers and Captions Example
49 |
50 | Student Scores
51 |
52 | Name
53 | Math Score
54 | Science Score
55 |
56 |
57 | Alice
58 | 85
59 | 90
60 |
61 |
62 | Bob
63 | 92
64 | 88
65 |
66 |
67 | The
element provides a title for the table, and elements define the headers.
68 |
69 |
--------------------------------------------------------------------------------
/HTML Fundamentals/04 Multimedia/04 source and track/source_and_track.html:
--------------------------------------------------------------------------------
1 |
41 |
42 |
43 |
44 |
45 | Source and Track Example
46 |
47 |
48 | Source and Track Example
49 |
50 |
51 |
52 |
53 | Your browser does not support the video element.
54 |
55 | This video uses to provide multiple video formats and for subtitles.
56 | The browser will choose the first supported format, and subtitles can be toggled in the controls.
57 |
58 |
--------------------------------------------------------------------------------
/HTML Fundamentals/03 Forms and Input/04 Validation Attributes/validation_attributes.html:
--------------------------------------------------------------------------------
1 |
41 |
42 |
43 |
44 |
45 | Validation Attributes Example
46 |
47 |
48 | Validation Attributes Example
49 |
64 |
65 |
--------------------------------------------------------------------------------
/HTML Fundamentals/08 Accessibility (a11y)/03 Keyboard Navigation/keyboard_navigation.html:
--------------------------------------------------------------------------------
1 |
41 |
42 |
43 |
44 |
45 | Keyboard Navigation Example
46 |
49 |
50 |
51 | Keyboard Navigation Example
52 |
53 | Go to Section 1
54 | Go to Section 2
55 |
56 | Click Me
57 | Section 1
58 | This section is accessible via keyboard navigation.
59 | Section 2
60 | Another section reachable by tabbing.
61 | Use the Tab key to navigate through links and buttons. The tabindex attribute controls the order.
62 |
63 |
--------------------------------------------------------------------------------
/HTML Fundamentals/06 Tables/04 Accessibility with scope/table_accessibility_scope.html:
--------------------------------------------------------------------------------
1 |
41 |
42 |
43 |
44 |
45 | Table Accessibility with Scope Example
46 |
47 |
48 | Table Accessibility with Scope Example
49 |
50 | Student Scores by Subject
51 |
52 | Name
53 | Math
54 | Science
55 |
56 |
57 | Alice
58 | 85
59 | 90
60 |
61 |
62 | Bob
63 | 92
64 | 88
65 |
66 |
67 | The scope attribute (scope="col" and scope="row") helps screen readers understand the table structure.
68 |
69 |
--------------------------------------------------------------------------------
/HTML Fundamentals/06 Tables/03 thead tbody tfoot/table_sections.html:
--------------------------------------------------------------------------------
1 |
41 |
42 |
43 |
44 |
45 | Table Sections Example
46 |
47 |
48 | Table Sections Example
49 |
50 |
51 |
52 | Name
53 | Score
54 |
55 |
56 |
57 |
58 | Alice
59 | 85
60 |
61 |
62 | Bob
63 | 92
64 |
65 |
66 |
67 |
68 | Average
69 | 88.5
70 |
71 |
72 |
73 | This table uses for headers,
for the main content, and for summary data.
74 |
75 |
--------------------------------------------------------------------------------
/HTML Fundamentals/03 Forms and Input/05 label select textarea button/label_select_textarea_button.html:
--------------------------------------------------------------------------------
1 |
41 |
42 |
43 |
44 |
45 | Label, Select, Textarea, Button Example
46 |
47 |
48 | Label, Select, Textarea, Button Example
49 |
69 |
70 |
--------------------------------------------------------------------------------
/HTML Fundamentals/08 Accessibility (a11y)/02 Semantic HTML for Screen Readers/semantic_html_screen_readers.html:
--------------------------------------------------------------------------------
1 |
41 |
42 |
43 |
44 |
45 | Semantic HTML for Screen Readers Example
46 |
47 |
48 |
51 |
52 |
56 |
57 |
58 |
59 | Home
60 | This is the main content, structured with semantic elements for screen readers.
61 |
62 |
63 | About
64 | Learn more about us in this section.
65 |
66 |
67 |
68 | © 2025 My Website
69 |
70 | Semantic elements like , , , and help screen readers navigate the page.
71 |
72 |
--------------------------------------------------------------------------------
/HTML Fundamentals/10 Embedding Content/04 MathML/mathml_expressions.html:
--------------------------------------------------------------------------------
1 |
41 |
42 |
43 |
44 |
45 | MathML for Mathematical Expressions Example
46 |
47 |
48 | MathML for Mathematical Expressions Example
49 | Quadratic Formula:
50 |
51 | x
52 | =
53 |
54 |
55 | -
56 | b
57 | ±
58 |
59 | b 2
60 | -
61 | 4
62 | a
63 | c
64 |
65 |
66 |
67 | 2
68 | a
69 |
70 |
71 |
72 | This MathML renders the quadratic formula. Note: MathML support may vary by browser (best in Firefox).
73 |
74 |
--------------------------------------------------------------------------------
/HTML Fundamentals/03 Forms and Input/02 Input Types/input_types.html:
--------------------------------------------------------------------------------
1 |
41 |
42 |
43 |
44 |
45 | Input Types Example
46 |
47 |
48 | Input Types Example
49 |
50 | Text:
51 |
52 |
53 |
54 | Email:
55 |
56 |
57 |
58 | Password:
59 |
60 |
61 |
62 | Checkbox:
63 |
64 |
65 |
66 | Radio Option 1:
67 |
68 | Radio Option 2:
69 |
70 |
71 |
72 |
73 |
74 |
75 |
--------------------------------------------------------------------------------
/HTML Fundamentals/07 HTML5 APIs/06 History API/history_api.html:
--------------------------------------------------------------------------------
1 |
41 |
42 |
43 |
44 |
45 | History API Example
46 |
47 |
48 | History API Example
49 | Add State
50 | Go Back
51 | Current State: Initial
52 |
75 |
76 |
--------------------------------------------------------------------------------
/HTML Fundamentals/07 HTML5 APIs/02 Geolocation API/geolocation_api.html:
--------------------------------------------------------------------------------
1 |
41 |
42 |
43 |
44 |
45 | Geolocation API Example
46 |
47 |
48 | Geolocation API Example
49 | Get My Location
50 | Click the button to get your location.
51 |
70 |
71 |
--------------------------------------------------------------------------------
/HTML Fundamentals/07 HTML5 APIs/01 Canvas API/canvas_api.html:
--------------------------------------------------------------------------------
1 |
41 |
42 |
43 |
44 |
45 | Canvas API Example
46 |
47 |
48 | Canvas API Example
49 |
50 | This canvas draws a static rectangle and an animated circle using the Canvas API.
51 |
73 |
74 |
--------------------------------------------------------------------------------
/HTML Fundamentals/07 HTML5 APIs/04 Drag and Drop API/drag_and_drop_api.html:
--------------------------------------------------------------------------------
1 |
41 |
42 |
43 |
44 |
45 | Drag and Drop API Example
46 |
50 |
51 |
52 | Drag and Drop API Example
53 | Drag Me
54 | Drop Here
55 |
72 |
73 |
--------------------------------------------------------------------------------
/HTML Fundamentals/07 HTML5 APIs/03 Web Storage (localStorage sessionStorage)/web_storage.html:
--------------------------------------------------------------------------------
1 |
41 |
42 |
43 |
44 |
45 | Web Storage Example
46 |
47 |
48 | Web Storage Example
49 |
50 | Save Data
51 | Retrieve Data
52 | localStorage:
53 | sessionStorage:
54 |
68 |
69 |
--------------------------------------------------------------------------------
/HTML Fundamentals/07 HTML5 APIs/05 Web Workers/web_workers.html:
--------------------------------------------------------------------------------
1 |
41 |
42 |
43 |
44 |
45 | Web Workers Example
46 |
47 |
48 | Web Workers Example
49 | Run Background Task
50 | Result will appear here.
51 |
73 | Note: Normally, Web Workers use a separate .js file. This example embeds the code for simplicity.
74 |
75 |
--------------------------------------------------------------------------------
/HTML Fundamentals/09 Responsive Design/04 Media Queries Integration/media_queries.html:
--------------------------------------------------------------------------------
1 |
41 |
42 |
43 |
44 |
45 | Media Queries Integration Example
46 |
72 |
73 |
74 | Media Queries Integration Example
75 |
76 |
Resize your browser to see the background color and font size change.
77 |
Small screens (≤600px): Light green, 14px font.
78 |
Medium screens (601px-1200px): Light coral, 18px font.
79 |
Large screens (≥1201px): Light yellow, 22px font.
80 |
81 |
82 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # 🌐 HTML5 Interview Preparation
2 |
3 |
10 | Your comprehensive guide to mastering HTML5 for web development interviews
11 |
12 | ---
13 |
14 | ## 📖 Introduction
15 |
16 | Welcome to my HTML5 prep for web development interviews! 🚀 This repository is your ultimate guide to mastering HTML5, the foundation of modern web development, with hands-on coding and interview-focused practice. From core elements to advanced APIs, it’s designed to help you excel in technical interviews and web projects with confidence and clarity.
17 |
18 | ## 🌟 What’s Inside?
19 |
20 | - **Core HTML5 Mastery**: Deep dive into semantic elements, forms, and multimedia.
21 | - **Modern APIs**: Explore Canvas, Geolocation, Web Storage, and more.
22 | - **Hands-on Practice**: Solve curated coding challenges with detailed solutions.
23 | - **Interview Question Bank**: Tackle common HTML5 questions with concise answers.
24 | - **Performance Optimization**: Learn best practices for clean, efficient code.
25 |
26 | ## 🔍 Who Is This For?
27 |
28 | - Front-end developers prepping for technical interviews.
29 | - Web developers strengthening HTML5 foundations.
30 | - UI/UX designers transitioning to development roles.
31 | - Software engineers exploring web development.
32 | - Anyone mastering HTML5 for modern web applications.
33 |
34 | ## 🗺️ Comprehensive Learning Roadmap
35 |
36 | ---
37 |
38 | ### 🏗️ Core HTML5 Foundations
39 |
40 | #### 📝 Basic Structure
41 | - Document Type Declaration (``)
42 | - HTML, Head, and Body Tags
43 | - Meta Tags
44 | - Character Encoding
45 | - Viewport Settings
46 |
47 | #### 🏷️ Semantic Elements
48 | - ``
49 | - ``
50 | - ``
51 | - ``
52 | - ``
53 | - ``
54 | - ``
55 | - `` and ``
56 |
57 | #### 📋 Forms and Input
58 | - `` Element
59 | - Input Types (`text`, `email`, `password`, `checkbox`, `radio`, etc.)
60 | - Form Attributes (`action`, `method`, `autocomplete`)
61 | - Validation Attributes (`required`, `pattern`, `min`, `max`)
62 | - ``, ``, ``, ``
63 |
64 | #### 🖼️ Multimedia
65 | - ` ` (Attributes: `src`, `alt`, `loading`)
66 | - `` (Attributes: `controls`, `autoplay`, `loop`)
67 | - `` (Attributes: `controls`, `poster`, `muted`)
68 | - `` and ``
69 |
70 | #### 🔗 Hyperlinks and Navigation
71 | - `` (Attributes: `href`, `target`, `rel`)
72 | - Anchor Tags for Internal and External Links
73 | - Downloadable Resources
74 | - Email and Telephone Links
75 |
76 | #### 📑 Tables
77 | - ` `, ``, ``, ` `
78 | - Table Headers and Captions
79 | - ``, ` `, ` `
80 | - Accessibility with `scope` Attribute
81 |
82 | #### 🛠️ HTML5 APIs
83 | - **Canvas API**: Drawing graphics and animations
84 | - **Geolocation API**: Accessing user location
85 | - **Web Storage**: `localStorage` and `sessionStorage`
86 | - **Drag and Drop API**: Interactive drag-and-drop functionality
87 | - **Web Workers**: Running scripts in the background
88 | - **History API**: Managing browser history
89 | - **Fetch API**: Making HTTP requests
90 |
91 | #### ⚙️ Accessibility (a11y)
92 | - ARIA Roles and Attributes
93 | - Semantic HTML for Screen Readers
94 | - Keyboard Navigation
95 | - Alt Text for Images
96 | - Focus Management
97 |
98 | #### 📱 Responsive Design
99 | - Meta Viewport Tag
100 | - Responsive Images (`srcset`, `sizes`)
101 | - Picture Element
102 | - Media Queries Integration
103 |
104 | #### 🧩 Embedding Content
105 | - `