Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

HTML

1. What does HTML stand for?


2. What is the purpose of HTML?
3. What is the latest version of HTML, and what new features does it introduce?
4. What is the structure of an HTML document?
5. What are HTML elements and tags?
6. What is the purpose of the <!DOCTYPE> declaration in an HTML document?
7. How do you create a hyperlink in HTML?
8. What is the difference between an absolute and a relative URL in HTML?
9. How do you comment out code in HTML?
10. What are empty elements in HTML?
11. Explain the difference between HTML and HTML5.
12. What are semantic HTML elements, and why are they important?
13. What is the purpose of the <meta> tag in HTML?
14. How do you include an external stylesheet in an HTML document?
15. What is the difference between an inline style and an external stylesheet?
16. What is the purpose of the <div> and <span> elements in HTML?
17. Explain the concept of HTML entities and provide an example.
18. How can you create a numbered list and a bulleted list in HTML?
19. What is the purpose of the <form> element in HTML?
20. What are HTML form controls, and give examples of some form control elements.
21. How do you create a drop-down select box in an HTML form?
22. What is the difference between the GET and POST methods in an HTML form?
23. How can you include images in an HTML document, and what are the attributes to use?
24. What is the purpose of the <table> element in HTML, and how do you create a basic
table structure?
25. How do you create a hyperlink that opens in a new tab or window?
26. What is the purpose of the <iframe> element in HTML?
27. How do you validate an HTML document, and why is validation important?

CSS

1. What does CSS stand for, and what is its primary purpose?
2. Explain the difference between inline, internal, and external CSS.
3. How do you include an external CSS file in an HTML document?
4. What is the "cascading" in CSS, and how does it work?
5. What is the box model in CSS, and what are its components?
6. How can you center an element horizontally and vertically using CSS?
7. What is the difference between margin and padding in CSS?
8. Explain the concept of specificity in CSS. How is it calculated?
9. What are pseudo-classes in CSS, and provide examples of their usage.
10. How do you create a hover effect using CSS?
11. What is the purpose of the "float" property in CSS, and when would you use it?
12. Explain the difference between "position: relative," "position: absolute," and "position:
fixed" in CSS.
13. What is the CSS "display" property, and how does it affect elements?
14. How can you create a responsive design using CSS?
15. What is the difference between "em" and "rem" units in CSS, and when would you use
each?
16. How do you create a CSS3 animation, and what are the keyframe rules?
17. What is the purpose of the "z-index" property in CSS, and how does it work?
18. How can you style a list with CSS, making custom bullet points or numbering?
19. What are CSS preprocessors, and why might you use one, like SASS or LESS?
20. How do you apply CSS styles to only specific elements with a particular class or ID?
21. What is a CSS selector, and what are some common types of selectors?
22. How can you handle browser-specific CSS properties and values?
23. What is a media query in CSS, and how does it help with responsive design?
24. Explain the purpose of the "box-sizing" property in CSS and its possible values.
25. What are the advantages of using flexbox for layout in CSS?
26. How do you create a sticky navigation bar using CSS?
27. What is the difference between "display: block" and "display: inline" elements in CSS?
28. How can you implement custom fonts in CSS on a web page?
29. What is the "overflow" property in CSS, and what values can it have?
30. Explain the concept of "cascading" in CSS, and how specificity and source order affect it.

JavaScript

1. What is JavaScript, and what is its primary purpose?


2. Explain the key differences between JavaScript and Java.
3. How do you include JavaScript code in an HTML document?
4. What is the purpose of the <script> tag in HTML?
5. What are the basic data types in JavaScript?
6. How do you declare a variable in JavaScript?
7. What is the difference between var, let, and const when declaring variables?
8. What is the scope of a variable in JavaScript, and how does it differ for var, let, and
const?
9. Explain the concept of hoisting in JavaScript.
10. What is a closure in JavaScript, and provide an example.
11. How do you create a function in JavaScript, and what is the difference between function
declarations and function expressions?
12. What is the "this" keyword in JavaScript, and how does it behave in different contexts?
13. What is an IIFE (Immediately Invoked Function Expression), and why might you use it?
14. How do you handle asynchronous code in JavaScript, and what are the common
methods for doing so?
15. What is the purpose of the setTimeout and setInterval functions in JavaScript?
16. Explain the concept of callback functions and provide an example.
17. What is a Promise in JavaScript, and how does it work?
18. How can you handle errors in JavaScript using try...catch statements?
19. What is the difference between "null" and "undefined" in JavaScript?
20. What is the role of the Document Object Model (DOM) in JavaScript?
21. How do you access and manipulate elements in the DOM using JavaScript?
22. What is event delegation, and why is it useful in JavaScript?
23. How can you make an HTTP request in JavaScript, and what are the common methods
for doing so?
24. What are arrow functions in JavaScript, and how do they differ from regular functions?
25. What is the difference between "==" and "===" in JavaScript for equality comparisons?
26. How do you create an object in JavaScript, and what are the different ways to do it?
27. What is the difference between an array and an object in JavaScript?
28. How do you iterate over an array in JavaScript, and what are the common iteration
methods?
29. What is a callback hell, and how can you mitigate it in asynchronous code?
30. Explain the concept of the event loop in JavaScript and how it enables non-blocking
behavior.

You might also like