basicsOfHTML Flashcards

1
Q

What are HTML tags?

A

They tell the browser how to display or transform regular text located between the “”. There’s usually a start tag and an end tag (has a “/”).

Ex.

<h1>Start</h1>

They usually come in pairs

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

What does the tag represent and what does it do?

A

It represents the root of the HTML document, it’s also known as the root element.

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

What does the tag represent and what does it do?

A

This element contains metadata about the document like the title, scripts, and style sheets.

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

What does the tag represent and what does it do?

A

This HTML element defines the document’s title that’s shown in a browser’s title bar or page’s tab.

It only contains text; tags within the element are ignored

ex.
Grandma’s Heavy Metal Festival Journal

This will show up as: Grandma’s Heavy Metal Festival Journal
in the browser tab

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

What does the tag represent and what does it do?

A

This HTML element specifies relationships between the current document and an external source.

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

What does the tag represent and what does it do?

A

This HTML element is used to embed executable code or data. It typically is used to embed or refer to JS code. ( can also be used with other languages)

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

What are header tags?

A

They represent 6 levels of section headings. <h1> is the highest section level and <h6> is the lowest</h6></h1>

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

What does the <p> tag represent and what does it do?</p>

A

This element represents a paragraph.

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

What does the tag represent and what does it do?

A

This element represents a self-contained composition in a document, page, application, or site, that’s intended to be independently distributable or reusable.
Ex. a forum post, an interactive widget

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

What does the tag represent and what does it do?

A

This element represents a generic standalone section of document. The most often have a heading.

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

What does the tag represent and what does it do?

A

This element represents the dominant content of the of a document. The main content area consists of content that’s directly related to or expands on the central topic of the document or application.

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

What does the tag represent and what does it do?

A

This element represents a section of a page whose purpose is to provide navigation links, either within the current doc or other docs. Ex. menus, tables of contents, indexes

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

What does the tag represent and what does it do?

A

This element represents introductory content, typically a group of introductory or navigational aids. Can include some heading elements, a logo, a search form, an author name, and other elements

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

What does the tag represent and what does it do?

A

This element represents a footer for its nearest section content or sectioning root element. It usually has info about the author of the section, copyright data, or links to related docs.

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

What does the <ul> tag represent and what does it do?</ul>

A

This element is the unordered list tag. It typically is rendered as a bulleted list.

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

What does the <ol> tag represent and what does it do?</ol>

A

This element is the ordered list tag. It typically is rendered as a numbered list.

17
Q

What does the <li> tag represent and what does it do?</li>

A

This element is used to represent an item in a list. It MUST be contained in a parent element, like <ol>, </ol><ul>, or </ul>

18
Q

What does the <a> tag represent and what does it do?</a>

A

This element is the anchor element. It has an href attribute and creates a hyperlink to web pages, files, email addresses, locations in the same page, or anything else a URL can address.

19
Q

What does the <img></img> tag represent and what does it do?

A

This element is the image embed element. It embeds and image into the document.

20
Q

What does the tag represent and what does it do?

A

This element represents tabular data. Info presented in a 2D table with rows and columns.

21
Q

What does the tag represent and what does it do?

A

This element is the table head element. It defines a set of rows defining the head of the columns of the table. (at the top of the table)

22
Q

What does the tag represent and what does it do?

A

This element is the table body element. It encapsulates a set of table rows, indicating that they comprise the body of the table.

23
Q

What does the tag represent and what does it do?

A

This element is the table foot element. It defines a set of rows summarizing the columns of the table. (at the bottom of the table)

24
Q

What does the tag represent and what does it do?

A

This element is the table row element. It defines a row of cells in a table. The row’s cells can then be established using a mix of (data cell) and (header cell) elements.

25
Q

What does the tag represent and what does it do?

A

This element defines a cell as header of a group of table cells.

26
Q

What does the tag represent and what does it do?

A

This element is the table data cell element. It defines a cell of a table that contains data.

27
Q

What’s an HTML element?

A

If a tag has an opening and closing tag this is an HTML element.

28
Q

What are tags that don’t have a closing tag?

A

empty tags. this is often true of img tags
ex.
<img></img>

29
Q

What are HTML attributes and what do they do?

A

They are used to define additional info about an element. They are allocated inside the opening tag, and usually come in name/value pairs (name = “value”).

All HTML elements have attributes, but we only use them when we need to.

Attributes common to all HTML elements are: class and id attributes