CSS - Forms/Tables/Nested Lists/ Cropping Images Flashcards

1
Q

Where can you find the measurements of an image from local computer in a code file?

A

At the bottom, in blue - says ‘Whole Image’

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

How to adjust size of local image on laptop?

A

Click on image, open it, and click tools - adjust size

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

<a>Click here to visit Example.com</a> What Target Blank mean?

A

It will open in a new tab

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

How do you get a link to open in the same tab - replacing the current page.

A

<a>Link to Example Website</a>

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

What if I wanted to have text below and above another text

A

< sup > and < sub >

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

What is the difference between strong and em?

A

one is bold one is italics

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

In a table element what element do we use for table rows?

Table columns and table heading?

A

tr - table rows.
td - table columns
th - table heading

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

How would we use it in a code - create a table heading of NAME and AGE in a row. Then nest row write Nikki Kam, then next row Laura Kam

A

<table>
<tr>
<th>NAMe</th>
<th>AGE</th></tr>
<tr>
<td>Nikki</td>
<td>Kam</td>
</tr>
<tr>
<td>Laura</td>
<td>Kam</td>
</tr>
</table>

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

In a form in html what other element do you need to nest inside?

A

input

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

What attributes does ‘form’ element need?

A

< form action = “action_page.php” method = “post”>
< /form >

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

What attributes does input element need?

A

<!-- Input fields go here -->

< input type = “text” name = “fname”><br></br>
< input type= “email” name = “email”><br></br>

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

What attribute does the submit button need?

A

< input type=”submit” value = “Submit”>

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

What does ‘action’ and ‘method’ attribute mean in a form?

A

action: This attribute specifies where to send the form data when it is submitted. This can be a URL or a script on the server that processes the data.

method: This attribute specifies the HTTP method to be used when submitting the form. The two most common methods are GET and POST.

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

What are some other input types apart from submit? Name 4.

A

text, email, password, radio, textarea, date, number etc

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

What does label mean?

A

associate a label with a form control, such as an input field or a checkbox. The label provides a description or a caption - helpful for accessibility

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

If an input type is a password, what will appear on screen?

A

password: ****

17
Q

Why is it useful to have a type ‘email’ in email input?

A

Comes up with an error if no @ symbol