Content Identification, HTML page, Forms, Interactivity, Tables Flashcards

1
Q

This global attribute helps define the language of an element: the language that non-editable elements are written in, or the language that the editable elements should be written in by the user.

A

The lang attribute specifies the language of the element’s content.

Common examples are “en-US” for English or “en-GB” for English from Great Britain.

This attribuate can be placed on any element.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Which attribute specifies the text direction of the element’s content?

A

The dir attribute specifies the text direction of the element’s content. “ltr” is left to right and “rtl” is right to left.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

When used by the meta element, this attribute specifies the character encoding for the HTML document.

A

The meta element specifies the character encoding for the HTML document. It’s place between the head tag.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

This tag defines a division or a section in an HTML document.

A

The div tag.

Use to mark a phrase or group of elements where other elements may not make sense.

All the global attriburtes such as class, id, lang, and aria roles apply.

Any sort of content can be put inside the div tag but use as a last resort.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

This element is an inline container used to mark up a part of a text, or a part of a document.

A

The span tag.

Much like the div tag, the span tag is used to mark up a part of a text, or a part of a document where other elements may not make sense. All the global attriburtes such as class, id, lang, and aria roles apply. Use as a last resort.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

This declaration is not an HTML tag. It is an “information” to the browser about what document type to expect.

A

All HTML documents must start with a DOCTYPE declaration.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What element contains information the browser needs to know though it won’t be displayed on the page?

A

The head element.

It is a container for metadata and is placed between the html tag and the body tag.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

This element contains all the contents of an HTML document, such as headings, paragraphs, images, hyperlinks, tables, lists, etc.

A

The body element contains the information and content that will be displayed on the page.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

The element defines the title of the document and is shown in the browser’s title bar or in the page’s tab.

A

The title element.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Which meta element should be included on all web pages? It’s refers to the user’s visible area of a web page. It varies with the device - it will be smaller on a mobile phone than on a computer screen.

A

Setting the viewport in the meta tag gives the browser instructions on how to control the page’s dimensions and scaling.

The width=device-width part sets the width of the page to follow the screen-width of the device (which will vary depending on the device).

The initial-scale=1.0 part sets the initial zoom level when the page is first loaded by the browser.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

This tag defines the relationship between the current document and an external resource.

A

The link element links to a range of other assets we want to load.

The link tag is most often used to link to external style sheets.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Which attribute tells the browser which kind of asset it is?

A

The rel attribute specifies the relationship between the current document and the linked document/resource.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

This attribute provides the URL to the asset.

A

The href attribute specifies the link’s destination or location of external resources such as a style sheet file.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

This element and attribute points to an external JavaScript file.

A

The script element and src attribute specifies the URL of an external script file.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

This element wraps around the main content of the page.

A

The main element

It’s only used once per webpage and it tells the browser where the main content is.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

This element is used to mark places on the page where content is a header.

A

The header element is used to wrap headers in the content, such as a logo, navigation, or site header, or article name or publication date.

It is not the same as the head tag which is never displayed to users and where the meta data of the file lives.

17
Q

This element is used to mark places on the page where content is a footer.

A

The footer element.

Links, copyright, extra information about the company.

18
Q

This element is wrapped around any instance of an article.

A

The article element.

A tweet or social media post can be an article. It means that this content is a unit.

19
Q

This element is used to wrap around sections of content.

A

The section element.

A long essay broken into chucks. This element could mark each segment.

20
Q

This element is used to mark something that is off to the side.

A

The aside element.

Such as advertisements. Something perhaps that’s not part of the flow.

21
Q

Which elements used to collect user input?

A

The form element is used to create an HTML form for user input

The label element defines a label for many form elements.

The input element is the most used form element.

22
Q

What elements are used to define a simple HTML table?

A

The table element defines a table.

Each table row is defined with a tr tag.

Each table header is defined with a th tag.

Each table data/cell is defined with a td tag.