CSS - Forms/Tables/Nested Lists/ Cropping Images Flashcards
Where can you find the measurements of an image from local computer in a code file?
At the bottom, in blue - says ‘Whole Image’
How to adjust size of local image on laptop?
Click on image, open it, and click tools - adjust size
<a>Click here to visit Example.com</a> What Target Blank mean?
It will open in a new tab
How do you get a link to open in the same tab - replacing the current page.
<a>Link to Example Website</a>
What if I wanted to have text below and above another text
< sup > and < sub >
What is the difference between strong and em?
one is bold one is italics
In a table element what element do we use for table rows?
Table columns and table heading?
tr - table rows.
td - table columns
th - table heading
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
<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>
In a form in html what other element do you need to nest inside?
input
What attributes does ‘form’ element need?
< form action = “action_page.php” method = “post”>
< /form >
What attributes does input element need?
<!-- Input fields go here -->
< input type = “text” name = “fname”><br></br>
< input type= “email” name = “email”><br></br>
What attribute does the submit button need?
< input type=”submit” value = “Submit”>
What does ‘action’ and ‘method’ attribute mean in a form?
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.
What are some other input types apart from submit? Name 4.
text, email, password, radio, textarea, date, number etc
What does label mean?
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