Html and css exercise
Html and css exercise
Challenge:
- Create a table displaying your weekly schedule (Mon–Fri). Include at least 3 rows and 3
columns.
Questions:
- What is the purpose of the <head> section in HTML?
- Why do we use semantic tags like <section>, <article>, and <footer>?
Bonus:
- Try using a favicon in your page.
Questions:
- How is the DOM different from the HTML file?
- What happens in the browser when you add or delete nodes in the dev tools?
Part 3: Forms in HTML
Tasks:
1. Create `form.html` with input fields: Name, Email, Password, Gender (radio), and
Interests (checkbox).
2. Add a dropdown to select your country.
3. Add a submit button.
Challenge:
- Use fieldsets and legends to organize the form logically.
Questions:
- What is the difference between GET and POST methods in forms?
- What happens when a form is submitted without a required input?
Bonus:
- Create an HTML form that allows uploading a profile picture.
Challenge:
- Use class and ID selectors to style different parts of your site.
Questions:
- What’s the difference between inline, internal, and external CSS?
- How do you resolve conflicting styles between selectors?
Challenge:
- Hide/show a navigation bar depending on screen size.
Questions:
- What problems does responsive design solve?
- Why is mobile-first design considered best practice?
Challenge:
- Build a small portfolio site using only Bootstrap components.
Questions:
- What are the benefits of using a CSS framework like Bootstrap?
- What is the difference between container, container-fluid, and row in Bootstrap