Which HTML attribute is used to specify the URL of a link?
A
src B
href C
link D
url
Analysis & Theory
`href` is used to specify the destination URL in an `<a>` tag.
Which attribute is used to provide an alternate text for an image?
A
title B
src C
alt D
name
Analysis & Theory
`alt` provides alternative text for an image if it can't be displayed.
Which attribute is used to open a link in a new browser tab?
A
new B
target='_tab' C
target='_blank' D
open='new'
Analysis & Theory
`target='_blank'` makes the link open in a new tab or window.
Which HTML attribute is used to define inline styles?
A
class B
style C
css D
font
Analysis & Theory
`style` is used to apply inline CSS styles to an HTML element.
Which attribute is used to uniquely identify an HTML element?
A
name B
class C
id D
key
Analysis & Theory
`id` is a unique identifier for an HTML element.
What does the `disabled` attribute do in a form input?
A
Disables input temporarily B
Hides the input field C
Clears the input D
Locks the input value
Analysis & Theory
`disabled` prevents users from interacting with the input field.
Which attribute specifies the width of an image in HTML?
A
length B
size C
width D
dimension
Analysis & Theory
`width` sets the horizontal size of the image.
Which attribute specifies the HTML language?
A
lang B
language C
xml:lang D
charset
Analysis & Theory
`lang` defines the language of the HTML document.
Which attribute is used to group elements for CSS styling?
A
group B
class C
style D
type
Analysis & Theory
`class` is used to assign a class name for CSS or JavaScript.
Which attribute specifies the source file of an image?
A
href B
file C
src D
link
Analysis & Theory
`src` defines the path to the image file used in `<img>` tags.