Podcast
Questions and Answers
What is the primary function of the href attribute?
What is the primary function of the href attribute?
- To provide additional information about HTML elements
- To define the URL of the page the link goes to (correct)
- To specify the path to an image in an HTML page
- To embed a hyperlink in an HTML page
What type of URL is recommended to use in the src attribute?
What type of URL is recommended to use in the src attribute?
- Absolute URL
- Internal URL
- External URL
- Relative URL (correct)
What is the risk of using an external image without permission?
What is the risk of using an external image without permission?
- The image may be too large to load
- The image may not be compatible with your website
- You may be in violation of copyright laws (correct)
- The image may be removed or changed
What is the purpose of the src attribute?
What is the purpose of the src attribute?
What happens if the URL in the src attribute begins with a slash?
What happens if the URL in the src attribute begins with a slash?
What is the difference between an absolute URL and a relative URL?
What is the difference between an absolute URL and a relative URL?
What should the lang attribute inside the tag declare?
What should the lang attribute inside the tag declare?
Why should you always include the alt attribute in the img tag?
Why should you always include the alt attribute in the img tag?
What is the purpose of the style attribute in HTML?
What is the purpose of the style attribute in HTML?
What is the recommended practice for writing attribute names in HTML?
What is the recommended practice for writing attribute names in HTML?
Why should you always quote attribute values in HTML?
Why should you always quote attribute values in HTML?
When would you use single quotes around attribute values?
When would you use single quotes around attribute values?