0% found this document useful (0 votes)
6 views1 page

HTML & CSS Basics: Tags and Attributes

The document contains a series of questions related to HTML and CSS, covering topics such as attributes, tags, form validation, and performance differences. It addresses the purpose of various HTML elements and attributes, as well as new features introduced in HTML5. Additionally, it discusses the distinctions between different types of CSS and input types for forms.

Uploaded by

kumar
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)
6 views1 page

HTML & CSS Basics: Tags and Attributes

The document contains a series of questions related to HTML and CSS, covering topics such as attributes, tags, form validation, and performance differences. It addresses the purpose of various HTML elements and attributes, as well as new features introduced in HTML5. Additionally, it discusses the distinctions between different types of CSS and input types for forms.

Uploaded by

kumar
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

1. What is the purpose of the alt attribute in the img tag?

2. Which tag is used to create a table head?

3. What is the root element of an HTML document?

4. Which attribute specifies the language of a document?

5. Which tag is used for metadata?

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

7. Which tag is used for embedding video?

8. What are the three types of CSS?

9. What is the difference between inline CSS and internal CSS?

10. What is the difference between inline CSS and external CSS in performance?

11. Write some of the HTML5 forms using built-in validation attributes.

12. What does the viewport meta tag do, and why is it important?

13. What new form input types were introduced in HTML5?

14. What is the purpose of the placeholder attribute in forms?

15. What is the difference between required and pattern attributes in forms?

16. What is the default type of the element if no type is specified?

17. Which input type is used for entering an email address with built-in validation?

18. Which input type is used for entering a URL with validation?

19. Which input type is used for entering a phone number?

20. What is the purpose of the required attribute in inputs?

You might also like