[go: up one dir, main page]

0% found this document useful (0 votes)
34 views2 pages

Web Development

Uploaded by

SHAMSOFT PURI
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
34 views2 pages

Web Development

Uploaded by

SHAMSOFT PURI
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

HTML

1. What is HTML?
→ A markup language for creating web page structure.

2. What is the latest version of HTML?


→ HTML5.

3. What is the difference between <div> and <span>?


→ <div> is block-level, <span> is inline.

4. What is a semantic element?


→ An element that clearly describes its meaning (e.g., <header>, <footer>).

5. What is the purpose of the <a> tag?


→ To create hyperlinks.

CSS

6. What is CSS used for?


→ To style and format HTML elements.

7. What are the types of CSS?


→ Inline, Internal, External.

8. What is the difference between absolute and relative position in CSS?


→ Absolute positions relative to the parent, relative positions relative to itself.

9. What is the difference between id and class in CSS?


→ id is unique, class can be reused.

10. What does z-index do?


→ Controls the stack order of elements.

JavaScript

11. What is JavaScript?


→ A scripting language to add interactivity to web pages.
12. What is the difference between == and ===?
→ == checks value, === checks value and type.

13. What are JavaScript data types?


→ String, Number, Boolean, Object, Undefined, Null, Symbol.

14. What is DOM?


→ Document Object Model; allows JS to interact with HTML.

15. What is an array in JS?


→ A collection of values in an ordered list.

16. What is a function in JS?


→ A block of reusable code.

17. What is the difference between var, let, and const?


→ var is function-scoped, let and const are block-scoped; const is constant.

18. What is an event in JavaScript?


→ An action like click, change, or hover.

19. What is asynchronous JS?


→ Code that runs independently using callbacks, promises, or async/await.

20. Write code to show an alert box.


→ alert("Hello");

You might also like