Chapter 4_HTML Tags (Tables, Forms, Videos, and Audios)

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/92

flashcard set

Earn XP

Description and Tags

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

93 Terms

1
New cards

table

  • is an arrangement of data in rows and columns, or possibly in a more complex structure.

  • widely used in communication, research, and data analysis.

2
New cards

table

  • useful for various tasks such as presenting text information and numerical data.

  • can be used to compare two or more items in tabular form layout.

  • used to create databases

3
New cards

table

An HTML table is defined with the "_____" tag.

4
New cards

tr

Each table row is defined with the "__" tag.

5
New cards

th

A table header is defined with the "__" tag.

6
New cards

Bold, centered

By default, table headings are ____ and _________.

7
New cards

td

A table data/cell is defined with the "__" tag

8
New cards

border

A border is set using the CSS ______ property.

9
New cards

Without borders

If you do not specify a border for the table, it will be displayed _______ _______

10
New cards

border-collapse

For borders to collapse into one border, add the CSS ______-________ property

11
New cards

Cell padding

  • specifies the space between the cell content and its borders.

  • If we do not specify such, the table cells will be displayed without it.

12
New cards

Text-align

  • By default the table headings are bold and centered.

  • To left-align the table headings, we must use the CSS ____-_____ property

13
New cards

Border spacing

specifies the space between the cells

14
New cards

Border-spacing

To set the border spacing for a table, we must use the CSS ______-_______ property

15
New cards

colspan

To make a cell span more than one column, we must use the _______ attribute

16
New cards

Rowspan

To make a cell span more than one row, we must use the _______ attribute

17
New cards

Caption

To add a caption to a table, we must use the "_______" tag

18
New cards

Background-color

A color can be added as a background in HTML table using the "__________-_____" option

19
New cards

Nesting

  • _______ tables simply means making a Table inside another Table.

  • Such tables can lead to complex tables layouts, which are visually interesting and have the potential of introducing errors

20
New cards

HTML Forms

are required, when you want to collect some data from the site visitor. For example, during user registration you would like to collect information such as name, email address, credit card, etc.

21
New cards

Input

A form will take _____ from the site visitor and then will post it to a back-end application such as CGI, ASP Script or PHP script etc.

22
New cards

Form elements

There are various ____ ________ available like text fields, textarea fields, drop-down menus, radio buttons, checkboxes, etc

23
New cards

Text Input Controls

There are three types of ____ _____ ________ used on forms: single line, password, multi-line

24
New cards

Single-line text input controls

This control is used for items that require only one line of user input, such as search boxes or names.

25
New cards

Input

Single-line text input controls are created using HTML <_____> tag.

26
New cards

Type

in Single-line text input controls. Indicates the type of input control and for text input control it will be set to text.

27
New cards

Name

in Single-line text input controls. Used to give a name to the control which is sent to the server to be recognized and get the value.

28
New cards

Value

in Single-line text input controls. This can be used to provide an initial value inside the control.

29
New cards

Size

in Single-line text input controls. Allows to specify the width of the text-input control in terms of characters.

30
New cards

Maxlength

in Single-line text input controls. Allows to specify the maximum number of characters a user can enter into the text box

31
New cards

Password Input Controls

This is also a single-line text input but it masks the character as soon as a user enters it.

32
New cards

Password

Password Input Controls are also created using HTML tag but type attribute is set to ________

33
New cards

Multi-Line Text Input Controls

This is used when the user is required to give details that may be longer than a single sentence.

34
New cards

Textarea

Multi-line input controls are created using HTML <________> tag

35
New cards

Name

in Multi-Line Text Input Controls. Used to give a name to the control which is sent to the server to be recognized and get the value.

36
New cards

Rows

in Multi-Line Text Input Controls. Indicates the number of rows of text area box.

37
New cards

Cols

in Multi-Line Text Input Controls. Indicates the number of columns of text area box

38
New cards

Checkboxes

are used when more than one option is required to be selected.

39
New cards

checkbox

Checkboxes are also created using HTML tag but type attribute is set to ________

40
New cards

Type

in checkboxes. Indicates the type of input control and for checkbox input control it will be set to checkbox.

41
New cards

Name

in checkboxes. Used to give a name to the control which is sent to the server to be recognized and get the value.

42
New cards

Value

in checkboxes. The value that will be used if the checkbox is selected

43
New cards

Checked

in checkboxes. Set to _______ if you want to select it by default

44
New cards

Radio buttons

are used when out of many options, just one option is required to be selected.

45
New cards

radio

Radio buttons are also created using HTML tag but type attribute is set to _____.

46
New cards

Type

in radio buttons. Indicates the type of input control and for checkboxinput control it will be set to radio.

47
New cards

Name

in radio buttons. Used to give a name to the control which is sent to the server to be recognized and get the value.

48
New cards

Value

in radio buttons. The value that will be used if the radio box is selected

49
New cards

Checked

in radio buttons. Set to _______ if you want to select it by default

50
New cards

select box

A ______ ___, also called drop down box which provides option to list down various options in the form of drop down list, from where a user can select one or more options

51
New cards

Name

in select box, attribute of /tag. Used to give a name to the control which is sent to the server to be recognized and get the value

52
New cards

Size

in select box, attribute of /tag. This can be used to present a scrolling list box

53
New cards

Multiple

in select box, attribute of /tag. If set to "multiple" then allows a user to select multiple items from the menu

54
New cards

Value

in select box, attribute of /tag. The value that will be used if an option in the select box is selected

55
New cards

Selected

in select box, attribute of /tag. Specifies that this option should be the initially selected value when the page loads

56
New cards

Label

in select box, attribute of /tag. An alternative way of labeling options

57
New cards

file upload box

  • If you want to allow a user to upload a file to your web site, you will need to use a ____ ______ ___, also known as a file select box.

  • This is also created using the element but type attribute is set to file

58
New cards

Button controls

There are various ways in HTML to create clickable buttons.

59
New cards

Button

You can also create a clickable button using /tag by setting its type attribute to ______.

60
New cards

Hidden form controls

  • are used to hide data inside the page which later on can be pushed to the server.

  • This control hides inside the code and does not appear on the actual page.

  • For example, following hidden form is being used to keep current page number

61
New cards

Video

The HTML <_____> tag is used to embed video into your webpage and has several video sources

62
New cards

autoplay

video attribute. Specifies that the video will play automatically

63
New cards

controls

video attribute. Specifies that the video controls gets displayed

64
New cards

height

video attribute. in pixels. Specifies the height

65
New cards

loop

video attribute. Specifies that the video will start again every time after finish

66
New cards

muted

video attribute. Specifies that the audio should be muted

67
New cards

poster

video attribute. in url. Specifies the image to be shown while the video is downloading

68
New cards

preload

video attribute. either auto, metadata, or none. Specifies what author thinks will lead to user experience at its best.

69
New cards

src

video attribute. Specifies the URL

70
New cards

width

video attribute. Specifies the width

71
New cards

Audio

HTML supports <_____> tag which is used to embed sound content in an HTML or XHTML document as follows

72
New cards

HTML5

The current _____ draft specification does not specify which audio formats browsers should support in the audio tag. But most commonly used audio formats are ogg, mp3 and wav.

73
New cards

autoplay

audio attribute. this boolean attribute, if specified, will make the audio automatically begin to play back as soon as it can do so without stopping to finish loading the data

74
New cards

autobuffer

audio attribute. this boolean attribute, if specified, will make the audio automatically begin buffering even if it's not set to autoplay

75
New cards

controls

audio attribute. if present, it will allow the user to control audio playback, including volume, seeking, and pause/resume playback

76
New cards

loop

audio attribute. this boolean attribute, if specified, will allow audio to automatically seek back to the start after reaching the end

77
New cards

preload

audio attribute. specifies that the audio will be loaded at page load, and ready to run. ignored if autoplay is present

78
New cards

src

audio attribute. The url of the audio to be embedded. This is optional as you can also use the element within the block to specify it.

79
New cards

abort

html audio and video event tag attribute (handling media event). This event is generated when playback is aborted

80
New cards

canplay

html audio and video event tag attribute (handling media event). Generated when enough data is available that the media can be played

81
New cards

ended

html audio and video event tag attribute (handling media event). Generated when playback completes

82
New cards

error

html audio and video event tag attribute (handling media event). Generated when an error occurs

83
New cards

loadeddata

html audio and video event tag attribute (handling media event). Generated when the first frame of the media has finished loading

84
New cards

loadstart

html audio and video event tag attribute (handling media event). Generated when loading of the media begins

85
New cards

pause

html audio and video event tag attribute (handling media event). Generated when playback is paused

86
New cards

play

html audio and video event tag attribute (handling media event). Generated when playback starts or resumes

87
New cards

progress

html audio and video event tag attribute (handling media event). Generated periodically to inform the progress of the downloading of the media

88
New cards

ratechange

html audio and video event tag attribute (handling media event). Generated when the playback speed changes

89
New cards

seeked

html audio and video event tag attribute (handling media event). Generated when a seek operation completes

90
New cards

seeking

html audio and video event tag attribute (handling media event). Generated when a seek operation begins

91
New cards

suspend

html audio and video event tag attribute (handling media event). Generated when loading of the media is suspended

92
New cards

volumechange

html audio and video event tag attribute (handling media event). Generated when the audio volume changes

93
New cards

waiting

html audio and video event tag attribute (handling media event). Generated when the requested action (such as playback) is delayed pending the completion of another operation (such as seek)