• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/20

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

20 Cards in this Set

  • Front
  • Back

HTML elements can have ___.

HTML elements can have attributes.

Attributes provide additional ____ about an element.

Attributes provide additional information about an element.

True or False:



Attributes are always specified in the start tag.

True

What is the structure of an attribute?

Attributes come in name/value pairs like: name="value"

What is the document language declared?

The document language can be declared in the <html> tag.

What attribute is used to declare the document language?

The language is declared in the lang attribute.

Why is declaring a language important?

Declaring a language is important for accessibility applications (screen readers and search engines).

Give an example of a language attribute in use.

A language attribute in use looks like this:



<html lang="en-US">

What is the structure of the language attribute?

The first two letters specify the language (en). If there is a dialect, two more letters are used.

HTML paragraphs are defined with the ___ tag.

HTML paragraphs are defined with the <p> tag.

What happens when you add a title attribute to a <p> element?

By using a title attribute for the paragraph, when you hover above the element, the title will be displayed as a tooltip.

In an <a> element, the link address is specified with the ___ attribute?

In an <a> element, the link address is specified with the href attribute?

What are three attributes that enhance an <img> element?

Three attributes that enhance an <img> element are the source (src) attribute, the alternative text (alt) attribute, and the size (width and height) attributes.

What does the alt attribute do?

The alt attribute specifies an alternative text to be used when an HTML element cannot be displayed.

What does the HTML title attribute do?

The HTML title attribute provides additional "tooptip" information.

What does the HTML href attribute do?

The HTML href attribute provides address information for links.

What does the HTML width and height attributes do?

The HTML width and height attributes provide size information for images.

What does the HTML alt attribute do?

The HTML alt attribute provides text for screen readers.

At W3Schools, we always use uppercase or lowercase HTML attribute names?

At W3Schools, we always use lowercase HTML attribute names.

At W3Schools, we always quote attributes with single or double quotes?

At W3Schools, we always quote attributes with double quotes.