HTML Flashcards

1
Q

<meta></meta>

A

Provides metadata about the document, such as character encoding, viewport settings, or page description.

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

section

A

Defines a section of content with a heading that groups related content.

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

article

A

Represents self-contained content, such as blog posts or news articles.

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

input type=”checkbox”

A

Allows users to select multiple options in a form.

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

body

A

Holds all the content to be displayed on the page.

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

pre

A

preformatted text

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

head

A

contains elements for the browser, search engines and robots such as metadata and titles.

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

Give examples of inline and block elements:

A

block = div, article, h1, footer, header;
inline = img, span, script, br, code

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

What are attributes?

A

They define the behavior, linkage and functionality of elements. Ex.: class, id, style, title, lang.

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

Write an HTML link to “uni.lu” to the section “about us”.

A

a href=”https://uni.lu/#about-us” target=_self

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

What is this link called?
<a> </a>

A

It is an absolute link with a link fragment (points to a certain section of a page).

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

What are ARIA role attributes?

A

They are attributes that provide information on the document structure to assistive technologies, when native HTML tags are unavailable. Ex.: document structure role (tooltip, feed) or widget role (scrollbar, slider) or landmark roles (nav, main, banner).

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

How would you embed an image?

A

img src=”image.png” alt=”img” width=”100” height=”100”

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

How do you create a list that is not ordered?

A

<nav>
<ul>
<li>Element 1<li>
<li>Element 2</li>
</ul>
</nav>
</li></li></ul></nav>

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

Make a description list.

A

<dl>
<div>
<dt>Author</dt>
<dd>John Green</dd>
</div>
</dl>

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

What is a form element used for?

A

Interact with the website, validate the information, submit the information. Ex.:
form>
label for=”dish”>What is your favorite dish?</label
input required type=”text” id=”dish” name=”dish”
button>Save</button
</from

16
Q

How do you make a table?

A

<table>
<tr>
<th>title1</th>
<th>title2</th>
</tr>
<tr>
<td>cell1</td>
<td>cell2</td>
</tr>
</table>