HTML, CSS and JAVASCRIPT Flashcards

(15 cards)

1
Q

what is the function of a <html> tag?

A

All code written within these tags is interpreted as HTML.

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

what is the function of a <body> tag?

A

Defines the content in the main content area of the webpage.

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

what is the function of a <link></link> tag?

A

used to link to additional files, including CSS stylesheets.

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

what does the <head> tag do?

A

Defines the browser tab or window heading area.

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

what is the function of <title> tag?</title>

A

Defines the text that appears with the tab or window heading area.

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

what do the <h1>,<h2>… tags mean?

A

Heading styles in decreasing size.

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

what does the <p> tag do?

A

It is used to define a paragraph seperated with a line space above and below.

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

what are <img></img> tags used for? and what are the two attributes that i need to know?

A

this tag is used for images, it is a self closing tag which means it doesn’t have a closing tag. Its attributes are

scr = to the source of the image.
alt = used to have a text describing the image incase the image doesn’t load.

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

what does the <a> tag do?</a>

A

it is used as an anchor tag which is used for hypder linking a text.

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

what HTML tag do we use to open an ordered list and what tag is used to define each item in the list?

A

<ol> is used to define the ordered list.
<li> is used to define each item in the list.
</li></ol>

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

what HTML tag is used to define an unordered list? and what tag is used to define each item in the list?

A

<ul> defines an unordered list.
<li> is used to define each item in the list.
</li></ul>

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

what is the <div> tag used for?

A

It divides a page into seperate areas, each which can be reffered to uniquely by name (using the “id” attribute).

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

how do we attach a CSS link using a <link></link> tag to HTML?

A

<link></link>

</link>

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

What is java script?

A

Javascript is a scripting language which primarily exists to add interactivity to websites. JavaScript is interpreted rather than compiled. Javascript is often used to validate input data on the client computer.

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

how do we input something from HTML to javascript?

A

by using document.getElementbyID()

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