HTML Flashcards

1
Q

Doctype

A

Information about the document for the browser

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

Two Parts of HTML Skeleton

A

Head - brower info and metadata

Body - the content that will be displayed online

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

Accessibility

A

Including practice ensuring there are no access barriers to those with disabilities or restrictions.

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

CDN

A

Content Delivery Nietwork - provides service with high availability and performance to users

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

Local Resource

A

an asseet that your webpage depends on thast is stored on your local machine

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

Navbar

A

Navigation bar often at the top of website

Often made using unordered lists

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

Remote resource

A

an asset that your webpage depends on that is stored on a remote machine - often just on the internet

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

Tag attributes

A

Characteristics or properties of elements such as width, height of an image.

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

3 elements of a table

A

Header (thead)
kind of like a table- bolded and centered
Body (tbody)
tr is used to define each row of the table
td is used to fill in the table
each tr defines a new row
Footer (tfoot)
it’s a footer. it looks weird without CSS - slides talk abot using (colspan) to merge cells

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

Block vs. Inline

A

div - block element
always starts on a new line, takes up whole
width of parent, repects padding and margins
span - inline element
continues on the same line, doesn’t repect
padding and margins

use “display: inline-block” to get the best of both worlds

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

Adding audio or video to HTML

A

replace ( with < in your code.

(audio controls)
(source src=”” type=”audio/mp3”)
(/audio)

You can place as many different types of file as you want. The browser will choose one that works.

You can also use “autoplay loop instead of controls

replace “audio” with “video” for video files

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

iframes

A

Embedding content that has iframe links - i.e. YouTube videos.

When clicking “share” on youtube, select embed and copy and paste link into your code

iframes are not the SAFEST way to embed things to your site!

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

Subtitles and closed captioning

A

link WebVTT files for subtitles

replace ( with < in your code
 (video controls)
   (source src="")
   (track
       src=".vtt"
       kind="subtitles"
       srclang="en"
       lable="English"
    )
 (/video)

in the WebVTT file you can add timestamps

00:00:00.000 –> 00:00:02.500
This is the text that will show up during this time
00:00:02.500 –> 00:00:05.500
This is the next bit of text. You should try to only show two lines of text at once if you can. Three is okay, but don’t overdo it.

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

When to use subtitles?

A

Pretty much always!!! US accessibility laws almost always require them.

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

What are forms?

A

Forms collect information from usersx

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

Input tags

A

Use input tags in your HTML so the form knows what kind of content is acceptable i.e.

replace ( with < in your code

(form)
Your Name:
(input type=”text”)
(/form)

17
Q

Action and Method

A

Action: where a form sends data
Method: GET or POST
GET passes data in the URL, there are size
restriction, requests data
POST is for adding or modifying data, does
not appear in URL, no size restrictions

18
Q

Submit Buttons

A

“submit” can be used as an input type to create a submit button that sends the users posted data

replace ( with < in your code

(form method="GET" action="result.html")
  (div)
      YOUR NAME:
      (input type="text" value="name")
  (/div)
 (input type="submit" value="make your choice")
(/form)
19
Q

Radio Buttons

A

Like multiple choice bubbles! But you can only select one

replace ( with < in your code

(form method="GET" action="result.html")
  (div)
      (label)Coke(/lablel)
      (input type="radio" value="coke" 
      name="soda")
  (/div)
  (div)
      (label)Pepsi(/lablel)
      (input type="radio" value="pepsi" 
      name="soda")
  (/div)
 (input type="submit" value="make your choice")
(/form)
20
Q

Checkboxes

A

Like multiple choice bubbles but you can choose as many options as you want!

replace ( with < in your code

(form method="GET" action="result.html")
  (div)
      (label)Coke(/lablel)
      (input type="checkbox" value="coke" 
      name="soda")
  (/div)
  (div)
      (label)Pepsi(/lablel)
      (input type="checkbox" value="pepsi" 
      name="soda")
  (/div)
  (div)
       (label)Mt Dew(/lablel)
       (input type="checkbox" value="dew" 
       name="soda")
  (/div)
 (input type="submit" value="make your choice")
(/form)
21
Q

Dropdown Lists

A

Creates a clickable down arrow that brings up a list of choices for the user. User can choose one

replace ( with < in your code

(form method="GET" action="results.html")
    (select name="state")
        (option value=AK)Alaska(/option)
    (/select)
    (input type="submit" value="submit")
(/form)
22
Q

Why labels?

A

Labels help screen readers understand how to prompt the user. Add labels to connect the input ids to attributes

23
Q

Boolean Attributes

A

some examples are “readonly” and “required”

Boolean Attributes are like an OFF and ON switch

24
Q

Semantic Input Types

A

some examples are “number” “date” “time” “email” “url” or “tel”

These tell the computer what kind of response you’re expecting. Like if you use “email” it won’t let the user submit the form without a properly formated email which includes the @ symbol and some sort of .com, .net, etc.

25
Q

Length Contraints, Minimums, and Maximums

A

You can add perameters to how you want the form formatted by using the following:

These will require the user to input between 5 and 20 characters
minlength=”5”
maxlength=”20”

or

This will require the user to input a number between 5 and 20
min=”5”
max=”20”

26
Q

Pattern Attribute

A

pattern=”{a-z}{5}”

This would require the user to input a 5 letter lowercase word

27
Q

Query String

A

The part of a GET request that is in the URL. comes after “?”

28
Q

WCAG and W3C

A

Web Content Accessibility Guidelines
World Wide Web Consortium

the first one is the gold standard of web accessibility right now - we are currently in version 2.1

29
Q

WCAG Grading system

A

A - minimul level
AA- standard
AAA- exceptional!

There are 23 criteria to meet to achieve AA - 50 to acheive AAA (including the 23 above)

30
Q

Alt Text

A

Descriptive text for screen readers (also good in case the link breaks and no image appears)

31
Q

Identifiable Link Text

A

avoid “click here” and use more specific terms like “see the full recipe here” so it’s easier for users to understand where they are being directed and they know it’s an intentional link

32
Q

ARIA

A

Accessible Rich Internet Applications - adds attributes to HTML elements to help identify their purpose

replace ( with < in your code

(div role="tablist")
    (button role="tab" id="one")
        TAB ONE
    (/button)
    (button role="tab" id="two")
        TAB TWO
    (/button)
(/div)
(div role="tabpanel"
    aria-labelledby="one")
    CONTENT OF TAB ONE
(/div)
(div role="tabpanel"
    aria-labelledby="two")
    CONTENT OF TAB TWO
(/div)