HTML Flashcards

1
Q

How to make a dead link

A

{a href=”#”}link {/a}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How to make a link open a new page

A

{a href=”www.google.com” target=”_blank”> google

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How do you nest an image into a link where the link is www.google.com and the image is https://bit.ly/image

A

{a href=”www.google.com”} {img src=”http://bit.ly}

{/a}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are the 7 descriptive HTML5 tags

A
main
header
footer
nav
video
article
section
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How do you link to an internal section with id “more_info”

A

{a href=”#more_info”} more info {/a}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is an id tag

A

id is an attribute that uniquely describes an element

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

create unordered list with the following: eat, sleep, sit

A
{ul}
   {li}eat{/li}
   {li}sleep{/li}
   {li}sit{/li}
{/ul}
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

create ordered list with following: bread, milk, eggs

A
{ol}
   {li}bread{/li}
   {li}milk{/li}
   {li}eggs{/li}
{/ol}
-
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

create a text field that accepts input that says “please enter text”

A

{input type=”text” placeholder=”please enter text”}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Create a button that submits an input form

A

{form action=”www.google.com/submit”}
{button type=”submit”} submit {/button}
{/form}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Make your text input required before being able to submit

A

{input type=”text” required}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

create a set of radio buttons that are part of the same group with choices ‘indoor’ and ‘outdoor’

A

{label for=”indoor”}
{input type=”radio” id=”indoor” name=”inout”}Indoor
{/label}
{label for=”outdoor”}
{input type=”radio” id=”outdoor” name=”inout”}Outdoor
{/label}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

create checkbox group with following options: yes, no, maybe

A

{label for=”yes”}
{input type=”checkbox” id=”yes” name=”doyouknow” value=”yes”}Yes
{/label}
{label for=”no”}
{input type=”checkbox” id=”no” name=”doyouknow” value=”no”}No
{/label}
{label for=”maybe”}
{input type=”checkbox” id=”maybe” name=”doyouknow” value=”maybe”}Maybe
{/label}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is the default value if you do not include it in radios or checkboxes

A

on

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is the attribute for a radio or check box to be selected by default

A

checked

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

what is the general purpose container for other elements

A

div

17
Q

How do you tell the browser which type of HTML you are using

A

{!DOCTYPE html}
{html}

{/html}

18
Q

Where does the page meta data go

A

{head}

{/head]

19
Q

What are some metadata elements

A

link
title
meta
style

20
Q

Where does the content of the page go (what users see)

A

{body}

{/body}

21
Q

How do you add an horizontal line under an element

A

{hr}

22
Q

How do you underline text

A

{u}text{/u}

23
Q

How do you strike through text

A

{s} text {/s}

24
Q

How do you make text bold

A

{b} text {/b}

25
Q

How do you italicize text

A

{i} text {/i}