0% found this document useful (0 votes)
2 views

HTML_CSS_GIT

The document contains a list of technical questions related to HTML, CSS, and Git/GitHub. It covers topics such as semantic HTML elements, CSS positioning, and Git commands. Each question aims to assess knowledge and understanding of web development concepts and practices.

Uploaded by

vaibhmore09
Copyright
© © All Rights Reserved
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

HTML_CSS_GIT

The document contains a list of technical questions related to HTML, CSS, and Git/GitHub. It covers topics such as semantic HTML elements, CSS positioning, and Git commands. Each question aims to assess knowledge and understanding of web development concepts and practices.

Uploaded by

vaibhmore09
Copyright
© © All Rights Reserved
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
You are on page 1/ 2

🔹 HTML Questions

1. What are semantic HTML elements? Why are they important

2. How is <div> different from <section>?

3. What’s the difference between id and class attributes?

4. What is the purpose of the alt attribute on an <img> tag?

5. How do you make a form accessible and SEO-friendly?

6. What is the difference between block, inline, and inline-block elements?

7. What’s the purpose of the meta tag in the <head> section?

8. How would you create a responsive layout using HTML?

9. What are data- attributes and when would you use them?*

10. How do you handle cross-browser compatibility issues in HTML?

CSS Questions

11. What is the difference between relative, absolute, fixed, and sticky positioning?

12. How does the CSS box model work?

13. What are pseudo-classes and pseudo-elements in CSS? Give examples.

14. What are media queries and how do you use them for responsive design?

15. What’s the difference between rem, em, px, and %?

16. What is specificity in CSS and how is it calculated?

17. What are some common ways to center a div both vertically and horizontally?

18. How would you implement dark mode using CSS?

19. What is the difference between visibility: hidden and display: none?

20. What are CSS Grid and Flexbox, and when would you use each?

Git/GitHub Questions

21. What is the difference between git pull and git fetch?

22. How do you resolve a merge conflict in Git?


23. What’s the difference between a fork and a branch?

24. How do you revert a commit that has already been pushed?

25. What is the use of .gitignore file?

26. Explain the difference between git merge and git rebase.

27. What are staging, commit, and working directory in Git?

28. How do you collaborate with a team using GitHub (PRs, reviews, etc.)?

29. What is the difference between origin and upstream in Git?

30. How do you squash commits before merging a branch?

You might also like