HTML Flashcards

(31 cards)

1
Q

Where do you put non-visible content about the HTML document?

A

inside head tags

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

Where do you put visible content about the HTML document?

A

inside body tag

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

Where do the and tags go in a valid HTML document?

A

Under !DOCTYPE html declaration
Under HTML opening tag
head 1st
body 2nd

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

What is the purpose of a declaration?

A

The DOCTYPE declaration is an instruction to the web browser about what version of HTML the page is written in.

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

Give five examples of HTML element tags.

A

html, head, body, h1, p tags etc.

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

What is the purpose of HTML attributes?

A

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

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

Give an example of an HTML entity (escape character).

A

http://www.htmlandcssbook.com/extras/html-escape-codes/

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

How do block-level elements affect the document flow?

A

By default, block-level elements are laid out in the block flow direction. Each one will appear on a new line below the last one, and they will be separated by any margin that is set on them.

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

How do inline elements affect the document flow?

A

They don’t appear on new lines; instead, they sit on the same line as one another and any adjacent (or wrapped) text content

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

What are the default width and height of a block-level element?

A

a block level element’s content is 100% of the width of its parent element, and as tall as its content.

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

What are the default width and height of an inline element?

A

Inline elements are as tall as their content, and as wide as their content. You can’t set width or height on inline elements — they just sit inside the content of block level elements.

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

What is the difference between an ordered list and an unordered list in HTML?

A

In an ordered list the order in which items are presented is important and will be marked with a number.
An unordered list is simply a list of related items whose order does not matter and will be marked with bullet points.

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

Is an HTML list a block element or an inline element?

A

They are a block-level tag.

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

What HTML tag is used to link to another website?

A

anchor tag - hyperlink

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

What is an absolute URL?

A

it’s the full URL of the page that you linking to.

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

What is a relative URL?

A

a relative URL assumes that the link you add is on the same site and is part of the same root domain

17
Q

How do you indicate the relative link to a parent directory?

A

href=”../index.html”

18
Q

How do you indicate the relative link to a child directory?

A

href=”directory/index.html”

19
Q

How do you indicate the relative link to a grand parent directory?

A

”../../index.html”

20
Q

How do you indicate the relative link to the same directory?

A

“index.html”

21
Q

What is the purpose of an HTML form element?

A

element represents a document section containing interactive controls for submitting information.

22
Q

Give five examples of form control elements.

A
  • text input
  • radio selector
  • check box
  • drop down
  • submit button
23
Q

Give three examples of type attributes for HTML elements.

A
button	
checkbox	
date	
email	
file
24
Q

Is an HTML element a block element or an inline element?

25
What are the six primary HTML elements for creating tables?
``` Table headers Table Rows Table Columns Table Thead ```
26
What purpose do the thead and tbody elements serve?
thead column headings (head) | tbody the information in the columns (body)
27
Give two examples of data that would lend itself well to being displayed in a table.
customer information | financials
28
What are the names of the individual pieces of a CSS rule?
The first part of the rule is the type of selector whether it be an html selector, a class, or an ID. The selector is followed by a space and then a beginning curly brace. Within the curly brace will be the property. It is followed by a colon.
29
In CSS, how do you select elements by their class attribute?
a period.and a class name
30
In CSS, how do you select elements by their type?
using the element characters within a element tag
31
In CSS, how do you select an element by its id attribute?
hastag # and class name