HTML Flashcards
<p></p>
creates a paragraph
<!-- -->
creates a comment
HTML attributes
special words used inside the opening tag of an element to control the element’s behavior
alt
if an image fails to load it will display a text instead
anchor (a) element
can link to another page using href
target= _blank
it is an anchor (a) element’s opening tag, so that the link opens in a new tab.
<ul> </ul>
unordered list
<li></li>
creates items inside of list
figure element
represents self-contained content and will allow you to associate an image with a caption.
<figcaption> </figcaption>
add a caption to describe the image contained within the figure element.
<em> </em>
this emphasizes text using italic
<ol> </ol>
list items in an ordered list are numbered when displayed.
<strong> </strong>
some text is of strong importance or urgent. in bold text
<form> </form>
web form to collect information from users.
action attribute
indicates where form data should be sent.
are input element self closing?
Yes
<input></input>
element allows you several ways to collect data from a web form.
type=”text”
Create a text field to get text input from a user
name attribute
a form’s data to be accessed in the action attribute
placeholder attribute
give people a hint about what kind of information to enter into an input