Using Attributes Flashcards
How to add 200 width and 130 height to an image?
<imgsrc=”URL” width=”200” height=”130”>
How to add text to an image?
<imgsrc=”URL” desc=”description”>
Tag used to create links inside of pages.
<nav>
</nav>
Add 3 pages to a page: Home, About, Contact
<nav>
<ahref="index.html">Home</a>
<ahref="about.html">About</a>
<ahref="contact.html">Contact</a>
</nav>
How to add different sections to a single page?
<nav>
<ahref="#s1">s1</a>
<ahref="#s2">s2</a>
</nav>
<pid=”s1”>s1</p>
<pid=”s2”>s2</p>
3 types of form
Text, radio, checkbox
Tag for forms
<form>
</form>
Tag for labels in forms
<labelfor=”id”>Name</label>
Tag used for inputs
<inputtype=”checkbox” id=”for”>
Form: Notification preferences
Choice: Email, Push (after the input space)
<form>
<inputtype="checkbox" id="box1">
<labelfor="box1">Email</label>
<inputtype="checkbox" id="box2">
<labelfor="box2">Email</label>
</form>
Attributes for labels
for
Attributes for inputs
id
Add text input
<form>
<inputtype="text">
</form>
Create a form for one-choice survey.
<form>
<inputtype="radio">
</form>
Create a form for checkboxes.
<form>
<inputtype="checkbox">
</form>