Intro to Programming Flashcards

1
Q

Defines that this document is an HTML5 document.

A

<!DOCTYPE html>

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

This is the root element of an HTML page

A

<html>
</html>

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

It specifies a title for the HTML page (which is shown in the browser’s title bar or in the page’s tab).

A

<title>
</title>

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

It defines the document’s body, and is a container for all the visible contents, such as headings, paragraphs, images, hyperlinks, tables, lists, etc.

A

<body>
</body>

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

This element defines a large heading.

A

<h1>
</h1>

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

This element defines a paragraph.

A

<p>
</p>

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

It is defined by a start tag, some content, and an end tag

<tagname> content goes here.. </tagname>

A

HTML element

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

Provides additional information about HTML elements.

A

HTML attributes

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

Are always specified in the start tag and usually come in name/value pairs like: name=”value”

A

attributes

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

Specifies the URL of the page the link goes to.

A

href attribute

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

This tag defines a hyperlink.

A

<a></a>

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

This tag is used to embed an image in an HTML page.

A

<img></img>

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

This attribute specifies the path to the image to be displayed.

A

src

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

What are the two ways to specify the URL in the src attribute?

A
  1. Absolute URL
  2. Relative URL
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Links an external image that is hosted on another website.

Example: src:”https;//www.w3schools.com/images/img_girl.jpg:.

A

Absolute URL

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

Links to an image that is hosted within the website. Here, the URL does not include the domain name.

A

Relative URL

17
Q

If the URL begins without a slash, it will be relative to the _____ page.

Example: src=”img_girl.jpg.”

A

current

18
Q

If the URL begins with a slash, it will be relative to the _____.

Example: src=”/images/img_girl.jpg”.

A

domain

19
Q

It can control the layout of multiple web pages all at once.

A

CSS

20
Q

A style applied to a parent element will also apply to all children elements within the parent.

A

cascading

21
Q

CSS can be added to HTML documents in 3 ways. What are these?

A
  1. Inline
  2. Internal
  3. External
22
Q

By using the style attribute inside the HTML elements.

A

Inline

23
Q

By using a <style> element in the <head> section.</style>

A

Internal

24
Q

By using the <link></link> element to link an external CSS file.

A

External

25
Q

Is used to apply a unique style to a single HTML element and uses the style attribute.

A

Inline CSS

26
Q

Is used to define a style for a single HTML page and is defined in the <head> section of an HTML page, within a <style> element.</style>

A

Internal CSS

27
Q

Used to define the style for many HTML pages. When used, add a link to it in the <head> section of each HTML page.

A

External CSS