The basics Flashcards

1
Q

What is a html element?

A

(A opening tag) (Content) (A closing tag)
e.g. <p>Hello!<p>

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

What is one of the key HTML tags we use to build a webpage?

A

The <body> </body> tag.
ALL CODE MUST GO INBETWEEN THE <BODY> TAGS!!!!!

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

When an element is contained inside another element, it is considered the child of the element.

A

<body>
<p>This paragraph is a child of the body</p>
</body>

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

What are the 6 different html headings?

A

<h1></h1>

(used for main headings - rest are for subheadings.)

<h2></h2>

<h3></h3>

<h4></h4>

<h5></h5>

<h6></h6>

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

What is the <div> tag used for?

A

<div> is short for “division” or a container that divides the page into sections.
These sections are very useful for grouping elements in your HTML together.
</div>

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

What are attributes in html?

A

Attributes are content added to the opening tag of an element and can be used in several different ways, from providing information to changing styling.
e.g. <div id="introduction"> </div>

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

What are the <p> and <span> tags used for?</span>

A

Paragraphs (<p>) contain a block of plain text.
<span> contains short pieces of text or other HTML. They are used to separate small pieces of content that are on the same line as other content.</span>

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

What are the <em> and <strong> tags used for?</strong></em>

A

The <em> tag will generally render as italic emphasis.
The <strong> will generally render as bold emphasis.</strong></em>

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

What is the html’s line break element? And how is it unique?

A

<br></br>
The line break element is unique because it is only composed of a starting tag.

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

How do you make an unordered list?
And what is it?

A

<ul>
<li>Limes</li>
<li>Tortillas</li>
<li>Chicken</li>
</ul>

An unordered list outlines individual list items with a bullet point.

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

How do you make an ordered list?
And what is it?

A

<ol>
<li>Russia</li>
<li>United States</li>
<li>Canada</li>
</ol>

Ordered lists (<ol>) are like unordered lists, except that each list item is numbered.

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

What tag allows you to insert an image onto a webpage?
And what is the required attribute?

A

<img></img>
it is also a self closing tag.
src is the required attribute.

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

What is the alt attribute and use it in an example!

A

The alt attribute brings meaning to the images on our sites.
<img></img>
If an image fails to load then the user can hover over the image for a description.
Visually impaired users can use screen reading software to make it read it out loud.

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

What tag allows you to insert a video onto the webpage?
And what is the required attributes?
And what does the controls attribute do?

A

<video> </video>

src is the required attribute to link.
Width and height can be used but not required.
The controls attribute instructs the browser to include basic video controls such as pausing and playing.

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