HTML Flashcards

1
Q

What does the tag represent?

A

The visible part of the HTML document

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

What is an element?

A

Everything between opening tag and closing tag . Including text and other child elements

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

Two parts of an element’s attributes?

A

name and value

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

What Attribute is available for all elements?

A

ID and lang

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

what do <b> and <i> tags do?</i></b>

A

make bold and italic, but now mainly used for emphasis. You can also use <strong> for bold and <em> for italic</em></strong>

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

what do and tags do?

A

subscript and superscript. although this is better done in CSS

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

define “empty element”

A

an element without text content

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

what is the <hr> tag?

A

Horizontal rule

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

How do you indent a whole section of text?

A

<blockquote></blockquote>

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

Two other tags to show bold and italic

A

<strong> and <em></em></strong>

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

what element does “cite” attribute go on?

A

a quote. Can be used to direct to the quotation’s source

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

How do you set an Acronym apart?

A

with the <abbr> tag. The title=”something” attribute of the abbr tag can then be used to explain the abbreviation when the user hovers over the text</abbr>

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

Tags to strike through and underline text?

A

<del> - strikethrough. <ins> - underline</ins></del>

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

how do you create multi-tiered lists

A

with <ul> or </ul><ol> tags within the <li> tag - which is always within an outer <ul> or </ul><ol></ol></li></ol>

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

Two types of Markup?

A
  1. structural - layout 2. semantic - inline. defining text format
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

word for full URL?

A

Absolute reference

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

opposite of full URL

A

Relative Reference

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

name for main folder of website?

A

Root folder

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

attribute of <a> that tells it to open in new window?</a>

A

target=_blank

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

What <img></img> attribute gives user info when they hover?

A

title=”something”

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

Two ways to display content elements?

A

block (takes own line) and inline (shares line with other elements)

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

three places to put images in markup?

A

before (outside), at start of or within text content

23
Q

Name of vector image format?

A

SVG - Scalable Vector Graphics

24
Q

Two tags for associating an image and caption

A
  • outside tag. -within figure tag
25
Q

Reasons to use GIF, PNG, or JPG?

A

GIF and PNG for simple graphics. PNG for simple graphics with transparency. JPG for more complex images (pictures)

26
Q

<img></img> attribute that is being phased out?

A

size. Use CSS now

27
Q

Default alignment for a text

A

center

28
Q

keywords to have across multiple cells?

A

colspan=”numberOfColumns” and rowspan=”numberOfRows”

29
Q

what tags surround the row?

A
30
Q

what tags surround the body of a table?

A
31
Q

what tags surround the footer of a table?

A
32
Q

reasons for tags?

A

more accessible for screen readers. Also allows different styling in CSS for top and bottom of form

33
Q

attributes of element?

A

action=”someScript.script” method=”getOrPost”

34
Q

Reasons to use Get vs Post when submitting a form?

A

Get is good for sending small amounts of data (like a search term) to get info from the server. Post is good if you are sending a long string or more in depth or complex data (like an image)

35
Q

default method of form submission?

A

get

36
Q

Attribute to not use on new forms?

A

size. better to use CSS

37
Q

Possible attributes of text input

A

type, id, name, placeholder

38
Q

What should be the same and different for radio buttons?

A

Radio buttons in a group need to have the same name=”sameName” so that the code know they are associated (and that only one can be chosen). however, they need to have different values so that the code know what the user selected

39
Q

How do you know if a radio button or checkbox is selected?

A

the checked= attribute is set to “checked”

40
Q

Tags for a dropdown list?

A
  • this would be a two-option dropdown
41
Q

tags for file upload

A
42
Q

what is the difference between and tags?

A

input is an empty element (can’t have other elements inside it) whereas a button can encompass other elements and text inside it (like an image)

43
Q

Attributes for HTML5 form validation

A
  • the last one is a binary attribute telling the browser that the field is required.
44
Q

How do you give an element more than one class?

A

both within same quotation marks, separated by a space: class=”this that”

45
Q

Examples of block and inline elements

A

block: div, paragraph, heading. inline: image, form elements

46
Q

Difference between div and span

A

div is a block item. span is inline

47
Q

Attributes of an iframe

A

src, height, width

48
Q

How to tell search engines not to index page?

A
49
Q

what is the meta attribute pair?

A

either name/content or http-equiv/content

50
Q

what are some common Meta Tags

A

name=”description”/content=”theDescription”, name=”keywords”/content=”theKeywords”, name=”robots”/content=”noindex”, http-equiv=”pragma”/content=”nocache”, http-equiv=”author”/content=”author’sName”

51
Q

Ten escape characters (characters that you can’t put in HTML text because the browser might think it was code)

A
&amp; = &amp;
" or ' = “  ”  ‘  ’
multiply or divide symbols = ÷  ×
copyright symbol = ©
trademark symbol = ™
greater than symbol = >
less than symbol - <
52
Q

How do you begin and end writing an escape character?

A

start with & and end with ; For instance: > is >

53
Q

what does in the first part of the document do?

A

It tells the browser what version of HTML the document is.