Basics Flashcards

(43 cards)

1
Q

What is basic html format ?

A

<!DOCUMENT html>

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

What is a html tag ?

A

An element name surrounded by a bracket

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

What makes up an html element?

A

A start tag, element content, and an end tag

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

What do you call an element that Is inside another element ?

A

A nested element

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

What is an empty element?

A

An element that has no element content or end tag. You close them with a foward slash on the open tag

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

What makes up an html attribute?

A

An attribute name, an equal sign, and a value within quotation marks

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

What is the lang attribute for ?

A

To define the language of an html file

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

How do we create links in html ?

A

We use the <a> element which defines links, and the href attribute which tells a browser where to go</a>

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

What is the title attribute for ?

A

It provides a tool tip for html elements / text that appears when something is hovered over

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

What is the style attribute for ?

A

Adjusting size font and color

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

What are the I’d and class attributes for ?

A

They give reference to attributes inside an element

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

What is special about the class attribute ?

A

Multiple elements can have the same class value

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

What’s special about the I’d attribute

A

It must be unique for every element

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

What are html comments and their purpose ?

A

Text or phrases inside an html file which help developers organize code

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

What makes up an internal style sheet ?

A

One or more css ( cascading style sheet) rule sets

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

What makes up a css rule set ?

A

A selector and declaration block surrounded by curly/pelican brackets with css declarations separated by semi colons

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

Example of a selector

A

P { }

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

Example of a declaration block

19
Q

Example of a css declaration

A

Font size: 14px;

20
Q

What does each css declaration include ?

A

A css property name and value

21
Q

What elements always contain a css rule aet ?

A

The head and style elements

22
Q

What is the difference between internal and inline styling ?

A

Internal styling is for meta data. Inclined styling is for what you will see on your web browser

23
Q

How are html colors defined?

A

hex color value, rbg color value, color name

24
Q

What do rgb color value numbers represent?

A

The intensity of the colors

25
What attribute is used to make an html page responsive ?
Metaname = "view port"
26
Hex color value example
#f
27
Rbg color value example
Rbg (255,255,255)
28
How is html text centered
Using the style = "text align : center" attribute
29
What is the "div" tag used for ?
To make divisions of content on a web page
30
How do you create a line break in html ?
The
tag this is an empty tag
31
Example of hr element styling ?
< hr style = width: "50%" color = "black"
32
How do you draw a line in html
The < hr / > tag. This is an empty tag
33
What is a block level element
An element that creates a horizontal boundary block and always starts on a new line. (On the browser)
34
What are in line elements ?
Elements that don't create new lines on the browser.
35
Block level element output example
Hello Iam A sentence
36
What are html sections and what elements are used for them ?
Html sections Group different html elements. The Div and span elements are used to do this
37
Difference between div and span ?
Div is a block level element used to group large groups of elements. and span is an inline element used for smaller groups
38
What are the semantic elements and do you have to use them ?
Nav, main, header, footer, and no but they're good for seo
39
What is the point of the alt attribute
Providing an alternative image attribute in case the src attribute doesn't work
40
How do we resize an image in html ?
The lengtha and width attribute
41
How do we float an image ?
The style = "float":right or left attribute
42
How would you code the div element different than the span element?
Paragraphs elements are nested inside the div element, and the span element nests inside the paragraph element
43
How do we create images ?
With the