Section 2 - Introduction to HTML Flashcards

1
Q

Websites are made with what 3 rendered files?

A
  1. HTML
  2. CSS
  3. JavaScript
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What’s the one type of file that you can use alone to create a website?

A

an HTML file (earliest webpages were made with this)

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

What does HTML define for a website?

A

the content and structure

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

What are 4 examples of things that HTML is responsible for on a site?

A
  1. text
  2. images
  3. buttons
  4. links
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is CSS responsible for on a website?

A

the styling

(background color, rounded button corners, etc)

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

What is JavaScript responsible for?

A

it’s the code that adds functionality to the website to do things

(send an email, post on Instagram, type in a search box)

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

What is HyperText?

A

text you can click that links to other pages

(also called HyperLinks)

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

What is Markup Language?

A

markings like bold, italics, underline, etc

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

What are tags?

A

Anything inside the angle brackets < >

Example <h1> </h1>

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

Do you use a forward slash or backslash to close tags?

A

Forward

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

What are the 2 types of tags?

A

Opening and closing tags

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

What is an element?

A

The entire thing (content, opening and closing tags)

Makes up the HTML element

“This heading element”

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

How many levels of headings are there?

A

1-6

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

What happens if you don’t add paragraph tags to your text?

A

There’s no formatting, they’re on the same line, hard to see where one sentence ends and another begins

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

What do the paragraph tags look like?

A

<p> </p>

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

Can you have more than 1 h1 heading?

A

No, it’s bad practice to have more than one

17
Q

What are void elements?(????)

A

You are forbidden from putting any content inside the tag

18
Q

What does a break element and horizontal rule element look like?(brainscape is messing up the code)

A

<hr></hr>

<br></br>

19
Q

What does a horizontal break look like in the preview?

A

a horizontal line

20
Q

How do you type out a horizontal break? (Horizontal Rule Element)

21
Q

How do you type out a void break? Brainscape messing up my code

A

<br></br>
<br forward slash greater than

22
Q

What are 2 void elements?

A
  1. Horizontal rule break
  2. Break
23
Q

When would you use a horizontal rule element?

A

When separating paragraphs

24
Q

When would you use the break element?

A

When you need to have lines of text on separate lines

(addresses, poems, etc)

25
What do you normally use to separate paragraphs?

at the beginning and end of each paragraph
26
What are alternate ways you can write the horizontal break and break element? Brainscape is messing up the code


(No forward slash) (yes, no space needed to take the place of the missing forward slash)