BASIC HTML Flashcards

1
Q

WHAT IS CODE EDITOR?

A

EMBEDDED ON WEBPAGE

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

WHAT DO HTML ELEMENTS HAVE <>

A

OPEN/CLOSE TAG

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

<h1>

| self closing or no?</h1>

A

heading

no

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

<h2>

| self closing or no?</h2>

A

sub heading

no

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

what is a common placeholder?

A

lorem ipsum

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

what is this and definition

A

commenting leaves comments for other coders without affecting the live text
you can use this when you want to leave a comment for other coders

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

what are main HTML tags?

A

main header footer nav video article sectors

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

what is a tag

A

gives descriptive structure to HTML TAGS help to read better

accessible for search engines

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

what is main tag for?

A

it helps search engines find the main content

use main tag with child elements

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

<p>

| self closing or no?</p>

A

paragraph

no <p></p>

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

how to add an image how to code

self closing or no?

A

<img></img>

yes self closing

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

<img></img>

A

element to add image

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

src

A

to point to a specific image url attribute or a pointer

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

alt

A

all image elements must obtain alt attribute
used to improve accessibility if image fails to load
for decorative you can just leave it empty

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

a
how to code
self closing or no?

A

anchor element to link content to somewhere else on the page or another tab
<a> add text </a>
not self closing

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

how to link to another part of page

A

your element requires an id
the id will correspond to the element
use a hash symbol to link #

<a>contact</a>
Header

this will link to the element that the id corresponds to

17
Q

nesting

A

to put in between two elements

<p><a> </a></p>

18
Q

target

how to code

A

an anchor tag that specifies where to open link

< a href=”https://www.freecodecamp.com” target=”blank”>