Basics Flashcards

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

A

{ }

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
Q

What attribute is used to make an html page responsive ?

A

Metaname = “view port”

26
Q

Hex color value example

A

f

27
Q

Rbg color value example

A

Rbg (255,255,255)

28
Q

How is html text centered

A

Using the style = “text align : center” attribute

29
Q

What is the “div” tag used for ?

A

To make divisions of content on a web page

30
Q

How do you create a line break in html ?

A

The <br></br> tag this is an empty tag

31
Q

Example of hr element styling ?

A

< hr style = width: “50%” color = “black”

32
Q

How do you draw a line in html

A

The < hr / > tag. This is an empty tag

33
Q

What is a block level element

A

An element that creates a horizontal boundary block and always starts on a new line. (On the browser)

34
Q

What are in line elements ?

A

Elements that don’t create new lines on the browser.

35
Q

Block level element output example

A

Hello

Iam

A sentence

36
Q

What are html sections and what elements are used for them ?

A

Html sections Group different html elements. The Div and span elements are used to do this

37
Q

Difference between div and span ?

A

Div is a block level element used to group large groups of elements. and span is an inline element used for smaller groups

38
Q

What are the semantic elements and do you have to use them ?

A

Nav, main, header, footer, and no but they’re good for seo

39
Q

What is the point of the alt attribute

A

Providing an alternative image attribute in case the src attribute doesn’t work

40
Q

How do we resize an image in html ?

A

The lengtha and width attribute

41
Q

How do we float an image ?

A

The style = “float”:right or left attribute

42
Q

How would you code the div element different than the span element?

A

Paragraphs elements are nested inside the div element, and the span element nests inside the paragraph element

43
Q

How do we create images ?

A

With the <img></img>