3. HTML 2 Flashcards
What are HTML structures? (+ 3 ex)
Collection of different elements
- tables
- forms
- lists
Order of embeddedness in structures?
Is always the same
How is embeddedness applied?
By including a certain element, or certain multiple elements, in the inner HTML of the parent element
Unordered list code?
<ul>
<li>Item 1</li>
<li>Item 2</li>
</ul>
Ordered list code?
<ol>
<li>First Item</li>
<li>Second Item</li>
</ol>
Table code?
<table>
<tr>
<th></th>
<td></td>
</tr>
</table>
Table with 3 rows code?
<table>
<tr>
<th>Header 1</th>
<th>Header 2</th>
</tr>
<tr>
<td>Row 1, Col 1</td>
<td>Row 1, Col 2</td>
</tr>
<tr>
<td>Row 2, Col 1</td>
<td>Row 2, Col 2</td>
</tr>
</table>
What does type=”text” refer to?
A single-line text input.
What does type=”radio” refer to?
A radio button for selecting one option in a group.
What does type=”checkbox”” refer to?
A checkbox for multiple selections.
What does type=”submit” refer to?
A button to submit the form.
What does type=”button” refer to?
A regular button
Form format?
<form>
<label></label>
<input></input>
<input></input>
<input></input>
<input></input>
<input></input>
<select>
<option></option>
</select>
</form>
How to ask someone for first and last name?
Voir photos cell
See powerpoint session 14
See powerpoint session 14