HTML Flashcards

(23 cards)

1
Q

<meta></meta>

A

Represents metadata that cannot be represented by other HTML meta-related elements, like <base></base>, <link></link>,

, <style> and <title>. Usually in the header</title></style>
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How to apply an external stylesheet to a document

A

The <link></link> HTML element specifies relationships between the current document and an external resource.

<link></link>

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

How to apply internal styling to a document

A

<style>

  p {
    color: #26b72b;
  }
</style>
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

<aside>
</aside>

A

Represents a portion of a document whose content is only indirectly related to the document’s main content. Asides are frequently presented as sidebars or call-out boxes.

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

<dl>
</dl>

A

Represents a description list. The element encloses a list of groups of terms (specified using the <dt> element) and descriptions (provided by <dd> elements). Common uses for this element are to implement a glossary or to display metadata (a list of key-value pairs).

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

<hr></hr>

A

A line that separates two different pieces of content

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

Three types of <li>

A

ordered list (<ol>), an unordered list (<ul>), or a menu (<menu>). In menus and unordered lists, list items are usually displayed using bullet points. In ordered lists, they are usually displayed with an ascending counter on the left, such as a number or letter.

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

<a></a>

A

Together with its href attribute, creates a hyperlink to web pages, files, email addresses, locations within the current page, or anything else a URL can address.

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

<br></br>`

A

Produces a line break in text (carriage-return). It is useful for writing a poem or an address, where the division of lines is significant.

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

Web server

A

computer that is connected to the internet and hosts a website. return websites to the user\

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

What provides additional information about the content of an element

A

attribute

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

attribute

A

extra information in an element

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

<title>
</title>

A

placed in the head tag, determines what the title is in the browser

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

What does HTML stand for

A

HTML pages are text
HyperText - you can create links to other pages
Markup Language - You can annotate text

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

A

used for superscript like 2 to the power of 2

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

how to make a p tag break to a new line

17
Q

ordered vs unordered list

A

ordered has numbers and unordered has bullets

19
Q

How to create a link titled “google” that links to google.com

A

<a href=“google.com’>google</a>

20
Q

Create a link that emails an email

A

<a href=“mailto:john@gmail.com>

21
Q

What are the four different target attributes that can be used for a link tag?

A

The target="_blank" attribute in an anchor tag (<a>) opens the linked document in a new browser tab or window. Other values for the target attribute include:

  1. _self: Opens the linked document in the same frame or window.
  2. _parent: Opens the linked document in the parent frame.
  3. _top: Opens the linked document in the full body of the window.
  4. Custom names: Opens the linked document in a named frame or window, allowing multiple links to target the same frame or window.
22
Q

What are form controls

A
  1. hese are the elements within the <form> that allow users to input data. Common form controls include:
    • <input>: For various types of user input like text, password, email, etc.
    • <textarea>: For multi-line text input.
    • <select>: For dropdown menus, often used with <option> elements.
    • <button>: For submitting the form or triggering other actions.