Podcast
Questions and Answers
What is the purpose of the alt attribute in HTML?
What is the purpose of the alt attribute in HTML?
- To declare the title of a Web page
- To provide an alternate text for an image (correct)
- To add styles to an element
- To specify the language of the Web page
What is the purpose of the lang attribute in HTML?
What is the purpose of the lang attribute in HTML?
- To add styles to an element
- To specify the title of a Web page
- To declare the language of the Web page (correct)
- To provide an alternate text for an image
What is the recommended convention for writing attribute names in HTML?
What is the recommended convention for writing attribute names in HTML?
- Mixed case
- Uppercase
- Sentence case
- Lowercase (correct)
Why is it important to quote attribute values in HTML?
Why is it important to quote attribute values in HTML?
What can happen if an image cannot be displayed in a Web page?
What can happen if an image cannot be displayed in a Web page?
What is the purpose of the style attribute in HTML?
What is the purpose of the style attribute in HTML?
What is the purpose of HTML attributes?
What is the purpose of HTML attributes?
What does the href attribute specify?
What does the href attribute specify?
What are the two ways to specify a URL in the src attribute?
What are the two ways to specify a URL in the src attribute?
What is the purpose of the width and height attributes in the tag?
What is the purpose of the width and height attributes in the tag?
What happens if the URL in the src attribute begins without a slash?
What happens if the URL in the src attribute begins without a slash?
What is the purpose of the tag?
What is the purpose of the tag?