HTML Flashcards

1
Q

What is a markup language?

A

A language that uses tags to identify content.

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

Example of an HTML tag

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

What are HTML tags?

A

it is the closing and opening of an HTML document. example:

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

What does a markup language use to identify content?

A

Tags

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

Each paragraph in the example is formatted differently to demonstrate what each tag does:

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

The browser does not display comments, but they help document the HTML and add descriptions, reminders, and other notes.

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

HTML documents are made up of HTML elements.
An HTML element is written using a start tag and an end tag, and with the content in between.

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

Attributes provide additional information about an element or a tag, while also modifying them. Most attributes have a value; the value modifies the attribute.

A

In this example, the value of “center” indicates that the content within the p element should be aligned to the center:

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

As an example, we can modify the horizontal line so it has a width of 50 pixels.

A

This can be done by using the width attribute:

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

An element’s width can also be defined using percentages:

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

The align attribute is used to specify how the text is aligned.

In the example below, we have a paragraph that is aligned to the center, and a line that is aligned to the right.

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

The HTML image syntax looks like this:

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

You need to put in the image location for the src attribute that is between the quotation marks.

For example, if you have a photo named “tree.jpg” in the same folder as the HTML file, your code should look like this:

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

To define the image size, use the width and height attributes.
The value can be specified in pixels or as a percentage:

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

By default, an image has no borders. Use the border attribute within the image tag to create a border around the image.

A
22
Q

Links are also an integral part of every web page. You can add links to text or images that will enable the user to click on them in order to be directed to another file or webpage.

A

Use the href attribute to define the link’s destination address:

23
Q

The target attribute specifies where to open the linked document.
Giving a _blank value to your attribute will have the link open in a new window or new tab:

A
24
Q
A
25
Q
A
26
Q
A
27
Q
A

Here is an example of a table with one row and three columns:

28
Q

A border can be added using the border attribute:

A
29
Q

To change your table’s position, use the align attribute inside your table tag:

A
30
Q

Use table tags to add a table to your blog that represents your daily learning schedule.

A
31
Q

In HTML, most elements are defined as block level or inline elements.
Block level elements start from a new line.

A
32
Q
A
33
Q
A
34
Q

Use the action attribute to point to a webpage that will load after the user submits the form.

A
35
Q

The method attribute specifies the HTTP method (GET or POST) to be used when forms are submitted (see below for description):

A
36
Q
A
37
Q

If we change the input type to radio, it allows the user select only one of a number of choices:

A
38
Q

If we change the input type to radio, it allows the user select only one of a number of choices:

A
39
Q

The type “checkbox” allows the user to select more than one option:

A
40
Q

The submit button submits a form to its action attribute:

A
41
Q

Create a Contact Form for your blog. The form will include Name, Email, and Message fields. We’ll also add a Submit button.
Check out the code:

A

This is just a static HTML page, so it won’t work to actually submit the form. You’d need to create the server-side code in order to submit a real form and process the data. To learn how, complete SoloLearn’s PHP course once you’ve completed the HTML and CSS courses.

42
Q

HTML colors are expressed as hexadecimal values.

0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F

A

As you can see, there are 16 values there, 0 through F. Zero represents the lowest value, and F represents the highest.

43
Q

Colors are displayed in combinations of red, green, and blue light (RGB).

Hex values are written using the hashtag symbol (#), followed by either three or six hex characters.
As shown in the picture below, the circles overlap, forming new colors:

A

RGB color values are supported in all browsers.

44
Q

All of the possible red, green, and blue combinations potentially number over 16 million.

A

Here are only a few of them:

45
Q

We can mix the colors to form additional colors:
Orange and red mix:

A

Hexadecimal color values are supported in all browsers.

46
Q

The bgcolor attribute can be used to change the web page’s background color.

This example would produce a dark blue background with a white headline:

A
47
Q

A page can be divided into frames using a special frame document.

A
48
Q
A
49
Q
A
50
Q

Frame content should be defined using the src attribute.

A
51
Q
A
52
Q

To finalize our blog, we’ll use a frame to embed a YouTube video. We’ll also create a Follow Mesection that includes links at the end of the page.
Check out the final code:

A