HTML Terms + Broad HTML Knowledge Flashcards

1
Q

Describe what an HTML Element is

A

The HTML element is everything from the start tag to the end tag:
< tag name> Content goes here… &lt tag name>

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

Describe what an HTML Tag is
What are 2 kinds of tags?
What is a void element?

A

Contains text that defines how the browser will display and format the content.

Opening tag &lh1>
Closing tag &l/h1>

A void element is a self-closing element/tag. They are just pointers to an element that is installed in the page.

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

Nested HTML Elements

A

HTML elements can be nested (this means that elements can contain other elements).All HTML documents consist of nested HTML elements.

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

HREF stands for?
Where is HREF used?
What does HREF do?

A

hypertext reference.

It is an attribute of the &lta> anchor tag

It specifies the URL of the page the link goes to (can be a location within a page)

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

Relative (implicit) and Absolute (explicit) Links

A

Relative: a URL to EXAMPLES.HTML assumes EXAMPLES.HTML is in the same folder as the Web page with the link

Absolute: if it was on another website, a full URL with HTTP:// prefix would be needed.
Absolute file paths ON COMPUTER do not seem to work E:\tiavoj510ru51.jpg

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

HTML attributes

A

Provide additional information about HTML elements.
Locatied after the tag
&lttag attribute>
All HTML elements can have attributes
Attributes provide additional information about elements
Attributes are always specified in the start tag
Attributes usually come in name/value pairs like: name=”value”
There doesn’t need to be a space in between attributes because “” and = separate attributes, not spaces

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

Give an overview of the role of HTML in forms

A

HTML can’t do anything with the input. It can only define that this WILL BE input.
It can’t write the data to a server or anything like that.
To do something with the information you have to use code (python, JS, php etc.)

HTML is like the outer body of the ATM machine asking for an input and showing sending you to the next spot. But if you want money, if you want to check for errors etc. you need to use code.

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

What does HREF stand for?

A

hypertext reference. a reference to

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

What’s an implicit HREF vs explicit HREF

A

implicit links to somewhere within page

explicit links to another page (and needs HTTP)

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

What’s an ancestor/parent/sibling/child/descendent?

A

An element contained within another is the child of the parent container. Siblings together within the same container. Ancestors and descendents for parents and childs more generally and removed

&ltdiv>
A
This is an ancestor of C and D
---&ltdiv>
---B
---This is the parent of C and D
------&ltdiv>
------C
------this is an child of B
------this is a sibling of D
------this is a descendent of A
------&lt/div>
------&ltdiv>
------D
------this is an child of B
------this is a sibling of C
------this is a descendent of A
------&lt/div>
---&lt/div>
&lt/div>
How well did you know this?
1
Not at all
2
3
4
5
Perfectly