html interview
html interview
Create a basic HTML page with the title "My First Webpage" and a heading that says "Welcome to My
Website".
Add three paragraphs of text to your HTML page, with the second paragraph containing a line break in
the middle.
3. **Text Formatting**
Use HTML to bold, italicize, and underline different parts of a single paragraph of text.
4. **Headings**
Create a webpage with all six levels of headings (h1 to h6) and observe the differences in size.
5. **Lists**
6. **Links**
Add a link to your favorite website, with the text "Click here to visit my favorite website".
7. **Images**
Add an image to your HTML page. Use an online image URL for this.
8. **Image Attributes**
Add an image to your page with specific width and height attributes.
# Intermediate HTML Practice Problems
9. **Nested Lists**
Create a nested list where one of the items in the ordered list contains an unordered list.
10. **Tables**
Create a table with 3 columns and 4 rows, including headers for each column.
12. **Forms**
- A submit button.
- Add a group of radio buttons for selecting gender (Male, Female, Other).
- Add a group of checkboxes for selecting hobbies (e.g., Reading, Traveling, Cooking).
Use semantic HTML5 elements like `<header>`, `<footer>`, `<article>`, and `<section>` to organize your
content.
- Add an audio player to your page that plays a specific audio file.
20. **Audio**
Add an audio player to your page that plays a specific audio file.
21. **Iframes**
22. **Comments**
Create a page with multiple sections and add anchor links to navigate to different sections within the
same page.
---
Create a form with an action attribute pointing to a fictional server-side script and using both GET and
POST methods.
Use the `<picture>` element to display different images based on the viewport size.
29. **Favicon**
Create a table with cells that span multiple rows and columns.