HTML Document Standards Flashcards

1
Q

What do you put at the beginning of every HTML5 code

A

< !DOCTYPE html >

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

< html > tag

A

Adds HTML structure and context

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

What gets interpreted as HTML code?

A

Anything between < html > and < /html >

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

Metadata

A

Information about the page that is not displaced directly on the page

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

< head > tag

A

Tells the page what the heading is

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

< title > tag

A

always the child of the title tag, you put the title inside it

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

Where will the title appear?

A

On the thing that is at the top of websites

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

< a > tag

A

anchor element, adds links to a webpage

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

What does the anchor element need?

A

the href attribute

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

What does href stand for?

A

Hyperlink Reference

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

How would you link wikipedia?

A

< a href=”wikipedia-link”>wikipedia< /a >

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

Target element

A

Tells how a link should be opened

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

Where do you add the target attribute

A

In the opening anchor tag, just like the href attribute

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

_blank

A

Goes in the target attribute, will open the link in a new tab

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

Where are files stored?

A

The root directory (main folder)

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

What tells the browser to look for a file in the current folder

A

./

Example: ./index.html

17
Q

Relative path vs. Absolute path

A

Relative path - path to a local file

Absolute path - path to file in a different folder

18
Q

Wrapping

A

Putting an element inside another element, usually used for making hyperlink on things other than text

19
Q

How to make an image hyperlink

A

wrap anchor element onto the image element

20
Q

What is the purpose of putting an ID in an element

A

To allow you to add an anchor element which scrolls to it when clicked
EX: < a href=”#ID-NAME” >Bottom< /a >

21
Q

What is white space?

A

White space is adding space in the html file to make it easier to read. The computer does not render white space

22
Q

What is indentation

A

Making indents with the space or tab button to make code easier, the W3C recommends that you do 2 spaces of indentation for each child element.

23
Q

What are comments

A

Text in the code that you can see but no one else can.

24
Q

How do you make a comment?

A

Start with < ! – and end with – >