HTML Flashcards

1
Q

Attributes?

A

ttributes are content added to the opening tag of an element and can be used in several different ways, from providing information to changing styling. Attributes are made up of the following two parts:

The name of the attribute
The value of the attribute

<div>
<h1>Introduction</h1>
</div>

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

How to display text?

A

If you want to display text in HTML, you can use a paragraph or span:

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></p>
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is best practice how to use span?

A

It’s best to use a <span> element when you want to target a specific piece of content that is inline, or on the same line as other text. If you want to divide your content into blocks, it’s better to use a <div>.</div></span>

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

How to italicize?

A

<em></em>

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

How to bold?

A

<strong></strong>

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

Line Breaks

A

<br></br>

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

Unordered Lists

A
<ul>
  <li>Limes</li>
  <li>Tortillas</li>
  <li>Chicken</li>
</ul>
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Ordered Lists

A

Ordered lists (<ol>) are like unordered lists, except that each list item is numbered. They are useful when you need to list different steps in a process or rank items for first to last.

<ol>
<li>Preheat the oven to 350 degrees.</li>
<li>Mix whole wheat flour, baking soda, and salt.</li>
<li>Cream the butter, sugar in separate bowl.</li>
<li>Add eggs and vanilla extract to bowl.</li>
</ol>

</ol>

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

Add Images

A

The <img></img> tag allows you to add an image to a web page. Most elements require both opening and closing tags, but the <img></img> tag is a self-closing tag. Note that the end of the <img></img> tag has a forward slash /. Self-closing tags may include or omit the final slash — both will render properly.

<img></img>

The <img></img> tag has a required attribute called src. The src attribute must be set to the image’s source, or the location of the image. In this case, the value of src must be the uniform resource locator (URL) of the image. A URL is the web address or local address where a file is stored.

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

Image Alts

A

The alt attribute, which means alternative text, brings meaning to the images on our sites. The alt attribute can be added to the image tag just like the src attribute. The value of alt should be a description of the image.

<img></img>

The alt attribute also serves the following purposes:

If an image fails to load on a web page, a user can mouse over the area originally intended for the image and read a brief description of the image. This is made possible by the description you provide in the alt attribute.
Visually impaired users often browse the web with the aid of screen reading software. When you include the alt attribute, the screen reading software can read the image’s description out loud to the visually impaired user.
The alt attribute also plays a role in Search Engine Optimization (SEO), because search engines cannot “see” the images on websites as they crawl the internet. Having descriptive alt attributes can improve the ranking of your site.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Videos

A

Video not supported

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

document type declaration

A

The declaration looks like this:

This declaration is an instruction, and it must be the first line of code in your HTML document. It tells the browser what type of document to expect, along with what version of HTML is being used in the document. For now, the browser will correctly assume that the html in is referring to HTML5, as it is the current standard.

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

The Head

A

The element contains the metadata for a web page. Metadata is information about the page that isn’t displayed directly on the web page. Unlike the information inside of the tag, the metadata in the head is information about the page itself.

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

Page Titles

A

My Coding Journal

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

Linking to Other Web Pages

A

<a>This Is A Link To Wikipedia</a>

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

What does href stand for?

A

hyperlink reference