HTML and CSS Flashcards
1
Q
HTML
A
- Hypertext Markup Language
- consists of entirely of tags
- files usually end in .html or .htm
2
Q
Absolute filepaths
A
point directly to a file using a full path to its direction
3
Q
Relative filepath
A
how to get to the file relative to the HTML file containing that link
eg. images/apple.jpg
4
Q
what are the attributes to
img src=’picnic.jpg’ width=’200’/
A
src and width are attributes to img
5
Q
b
A
bold text
6
Q
i
A
italicized text
7
Q
ul
A
unordered list
8
Q
ol
A
ordered list
9
Q
li
A
adds a list item to <ul> or <ol>
10
Q
div
A
create layouts w/o a table
11
Q
Input attributes
A
- name: ID for the input
- value: text displayed on/in the input
- placeholder: temporary, descriptive text
- tabindex: gives an order to the elements for users to “tab” through them
12
Q
label for=” “
A
- associated filed becomes focused
- field becomes activated so that the user can begin typing in it
- reference field by its ID attribute
13
Q
Captcha
A
- prevents bots from automatically filling out web forms
- eg. Google’s reCaptcha
14
Q
In HTML, which attribute is used to specify that an input field must be filled out?
A
required
15
Q
attribute to limit how many characters can be entered
A
“maxlength”
16
Q
Server processing for form validation
A
- PHP is a common server-side language
- databases/external files
- processing orders (e-commerce)
- functions involving security
- anything that the host needs to know about or track
17
Q
Client processing for form validation
A
- JavaScript is used for client side coding
- interactivity/animations
- non-secure form processing
- receiving user input in real-time
- loading or changing elements that appear on a user’s device
18
Q
CSS
A
- Cascading Style Sheets
- only to style websites