2.2 html Flashcards
Name three important HTML markups.
“Lists
How are ordered lists created in HTML?
“Using the <ol>
tag”
What are the possible values for the ‘type’ attribute in an ordered list?
“1 (numbers)
How are unordered lists created in HTML?
“Using the <ul>
tag”
What are some common list item markers for unordered lists?
“disc (bullet
How can the list item marker be set using inline styles?
“Using the list-style-type
property within the <ul>
tag”
How are definition lists created in HTML?
“Using the <dl>
tag with <dt>
for terms and <dd>
for descriptions”
How are tables created in HTML?
“Using the <table>
tag”
How can table borders be styled using CSS?
“Using the border
property in the <style>
tag”
How can table borders be collapsed into a single border?
“Using the border-collapse: collapse;
property in CSS”
How can the background color of table cells be styled?
“Using the background-color
property in CSS for <th>
and <td>
elements”
What are the colspan
and rowspan
attributes used for in tables?
“To create irregular tables where cells span multiple columns or rows”
How can text be aligned horizontally in table cells?
“Using the text-align
style property with values like left
How can text be aligned vertically in table cells?
“Using the vertical-align
style property with values like top
How can spacing between table cells be adjusted?
“Using the border-spacing
style property of the <table>
”
How can padding be added inside table cells?
“Using the padding
style property of <th>
and <td>
elements”
What is the purpose of the <form>
element?
“For gathering information from the browser to the server”
What are widgets (or controls) in HTML forms?
“Text fields
What is the purpose of the ‘action’ attribute in a <form>
tag?
“Specifies the URL where the form data should be sent for processing”
What is the purpose of the ‘method’ attribute in a <form>
tag?
“Specifies the HTTP method (e.g.
What are the two actions of a submit button in a form?
“Encode the data of the form and request that the server execute the server-resident program”
How are text fields created in HTML forms?
“Using the <input type='text'>
tag”
How are password fields created in HTML forms?
“Using the <input type='password'>
tag”
How are radio buttons created in HTML forms?
“Using the <input type='radio'>
tag”