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

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

1/55

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

56 Terms

1
New cards

table

An HTML table is defined with the “____’” tag. Each table row is defined with the “tr” tag.

2
New cards

th

A table header is defined with the “__” tag. By default, table headings are bold and centered.

3
New cards

td

A table data/cell is defined with the “__” tag.

4
New cards

table

A ____ is an arrangement of data in rows and columns, or possibly in a more complex structure. Tables are widely used in communication, research, and data analysis.

5
New cards

text information, numerical data

Tables are useful for various tasks such as presenting ____ and ____.

6
New cards

tabular

Tables can be used to compare two or more items in ____ form layout.

7
New cards

databases

Tables are used to create ____.

8
New cards
<p>border</p>

border

A ____ is set using the CSS border property. If you do not specify a border for the table, it will be displayed without borders.

9
New cards
<p>CSS border-collapse property</p>

CSS border-collapse property

For borders to collapse into one border, add the ____.

10
New cards
<p>Cell padding</p>

Cell padding

____ specifies the space between the cell content and its borders. If we do not specify a padding, the table cells will be displayed without padding.

11
New cards
<p><span style="font-family: &quot;Century Gothic&quot;, sans-serif;">CSS text-align property</span></p>

CSS text-align property

By default the table headings are bold and centered. To left-align the table headings, we must use the ____. 

12
New cards
<p><span style="font-family: &quot;Century Gothic&quot;, sans-serif;">CSS border-spacing property</span></p>

CSS border-spacing property

Border spacing specifies the space between the cells. To set the border spacing for a table, we must use the .

13
New cards
<p><span><sup>colspan</sup></span></p>

colspan

Adding Cells that Span Many Columns in HTMl Tables 

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

14
New cards
<p>rowspan</p>

rowspan

Adding Cells that Span Many Rows in HTML Tables:

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

15
New cards
<p>caption</p>

caption

To add a caption to a table, we must use the “____” tag.

16
New cards
<p>background-color</p>

background-color

A color can be added as a background in HTML table using the “____” option.

17
New cards
<p><span>Nesting tables </span></p>

Nesting tables

____ simply means making a Table inside another Table. 

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

18
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.

19
New cards

back-end

A form will take input from the site visitor and then will post it to ____ application such as CGI, ASP Script or PHP script etc.

20
New cards

text fields, textarea fields, drop-down menus, radio buttons, checkboxes, etc.

There are various form elements available like ____ (5)

21
New cards

<form action = "Script URL" method = "GET|POST">

form elements like input, textarea etc.

</form>

HTML Forms syntax

22
New cards
  • Text Input Controls

  • Checkboxes Controls

  • Radio Box Controls

  • Select Box Controls

  • File Select boxes

  • Hidden Controls

  • Clickable Buttons

  • Submit and Reset Button

HTML Form Controls (8)

23
New cards
  • Single-line text input controls 

  • Password input controls 

  • Multi-line text input controls 

There are three types of text input used on forms

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. They are created using HTML <input> tag.

25
New cards

type

indicates the type of input control and for text input control it will be set to text.

26
New cards

name

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

27
New cards

value

This can be used to provide an initial value inside the control

28
New cards

size

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

29
New cards

maxlength

Allows to specify the maximum number of characters a user can enter into the text box

30
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. They are also created using HTML <input>tag but type attribute is set to password.

31
New cards

Multiple-Line Text Input Controls

This is used when the user is required to give details that may be longer than a single sentence. Multi-line input controls are created using HTML <textarea> tag.

32
New cards

rows

Indicates the number of rows of text area box

33
New cards

cols

Indicates the number of columns of text area box

34
New cards

Checkbox Control

are used when more than one option is required to be selected. They are also created using HTML <input> tag but type attribute is set to checkbox.

35
New cards

value

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

36
New cards

checked

Set to checked if you want to select it by default.

37
New cards

Radio Button Control

are used when out of many options, just one option is required to be selected. They are also created using HTML <input> tag but type attribute is set to radio.

38
New cards

Select Box Control

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.

39
New cards

multiple

If set to “____" then allows a user to select multiple items from the menu.

40
New cards

value

The value that will be used if an option in the select box box is selected.

41
New cards

selected

Specifies that this option should be the initially selected value when the page loads.

42
New cards

label

An alternative way of labeling options

43
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 file upload box, also known as a file select box. This is also created using the <input> element but type attribute is set to file.

44
New cards

accept

Specifies the types of files that the server accepts.

45
New cards

button

There are various ways in HTML to create clickable buttons. You can also create a clickable button using <input>tag by setting its type attribute to button

46
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. 

47
New cards

The HTML <video> tag

 is used to embed video into your web page, it has several video sources.

48
New cards

autoplay

Specifies that the video will play automatically.

49
New cards

controls

Specifies that the video controls gets displayed.

50
New cards

height pixels

Specifies the height

51
New cards

loop

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

52
New cards

muted

Specifies that the audio should be muted

53
New cards

poster URL

Specifies the image to be shown while the video is downloading.

54
New cards

auto
metadata
none

Specifies what author thinks will lead to user experience at its best.

55
New cards

src URL

Specifies the URL

56
New cards

width pixels

Specifies the width