HTML Flashcards

Study HTML code

1
Q

What does HTML stand for?

A

Hypertext Markup Language

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

What is the purpose of HTML?

A

HTML is used to design and organize information and web pages on the internet.

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

What is the opening tag in HTML?

A

The opening tag is the tag that begins an element. It begins with a less-than sign ( < ) and ends with a more-than sign ( > )

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

What is the closing tag in HTML?

A

The closing tag is what closes an element. It begins with a less-than ( < ) and ends with a more-than sign ( > ). Before the content is a slash ( / ).

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

What is the content in an HTML element?

A

The content is the text between the opening and closing tabs.

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

What is an HTML element?

A

An element is everything from the opening tab to the closing tab.

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

This root HTML element defines the whole HTML document.

A

<html></html>

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

This root HTML element makes elements within this one invisible on the front end of the webpage. It is sort of like “behind-the-scenes”

A

<head></head>

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

This element is for internal CSS and is in the <head></head> section.

A

<style></style>

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

This element is used to give a title to a webpage and is in the <head></head> section.

A

<title></title>

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

This tag defines the relationship between a document and an external source, often for stylesheets or favicons. It contains the href and rel attributes.

A

<link>

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

Which elements are used for headings?

A
<h1></h1>
<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
13
Q

Which element is used for paragraphs?

A

<p></p>

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

Why should you use <!DOCTYPE html>?

A

It helps the browser to interpret the HTML code and display it correctly.

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

Which element is used for links?

A
<a href = ""><a>

The <a> tag is for hyperlinks. The href attribute specifies the link’s URL.

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

Which tag is used for displaying images?

A
<img src = "">

The <img> tag is for images. The src attribute specifies the path to the image or its address.

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

Which attribute is for specifying an alternative text for an image that cannot be displayed?

A

alt

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

Which attribute is for decorating an element?

A

style

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

Which attribute declares the language of a web page or an element?

A

lang

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

Which attribute defines extra information about an element?

A

title
Fun fact: if you hover over an element with a title, the title will display around the cursor.

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

Which element makes text bold without adding importance?

A

<b></b>

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

Which element defines a text with strong importance while also bolding it?

A

<strong></strong>

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

Which element italicizes text for visual effect (character thoughts, scientific names, etc.)?

A

<i></i>

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

Which element emphasizes (stresses) text and makes it important?

A

<em></em>

25
Q

Which element makes text smaller?

A

<small></small>

26
Q

Which element makes texts marked or highlighted?

A

<mark></mark>

27
Q

Which element deletes and also strikes a line through text?

A

<del></del>

28
Q

Which element inserts and also underlines text?

A

<ins></ins>

29
Q

Which element makes text subscript?

A

<sub></sub>

30
Q

Which element makes text superscript?

A

<sup></sup>

31
Q

Which element defines a quote from another source?

A
<blockquote></blockquote>

When adding a blockquote, include the cite attribute to cite your source.
~~~

<blockquote></blockquote>

~~~

32
Q

Which element defines short quotations?

A

<q></q>

33
Q

Which element defines an abbreviation?

A

<abbr></abbr>

34
Q

Which element defines contact information (name, address, email, etc.)?

A

<address></address>

35
Q

Which element defines the title of a creative work (artwork, book, movie, painting, poem, sculpture, etc.)?

A

<cite></cite>

36
Q

Which tag defines a comment? They can be used to hide content temporarily or for ideas and reminders.

A

<!-- -->

37
Q

Which attribute opens a linked page on the same tab it was clicked on?

A

_self
This is used in the target attribute.

38
Q

Which attribute opens the page in a new document or tab when clicking a link?

A

_blank
This is used in the target attribute.

39
Q

Which attribute opens the document in a parent frame?

A

_parent
This is used in the target attribute.

40
Q

Which element displays the page in the full body of the window?

A

_top
This is used in the target attribute.

41
Q

Which href link allows the user to send an email?

A

mailto
This is used in the href attribute.

42
Q

Which element creates an unordered list?

A

<ul></ul>
Tip: Unordered List = ul

43
Q

Which element creates an ordered list?

A

<ol></ol>
Tip: Oordered List

44
Q

Which element defines a description list?
Tip: A description list is a list of items, each one having a description

A

<dl></dl>
Tip: Description List

45
Q

Which element defines a term in a description list?

A

<dt></dt>
Tip: Description Term

46
Q

Which element defines a description in a description list?

A

<dd></dd>
Tip: Description List Description

47
Q

Which element defines a term in a regular list?

A

<li></li>

48
Q

Which attribute defines a list item marker in an ordered list?

A

type
Types of types:
type = “1”– List will be numbered
type = “A”– List will be numbered with uppercase letters
type = “a”– List will be numbered with lowercase letters
type = “I”– List will be numbered with uppercase Roman numerals.
type = “i”– List will be numbered with lowercase Roman numerals.

49
Q

Which attribute will begin a list with a specific number?

A

start

50
Q

What is a block element?

A

A block element always begins on a new line and takes up as much width as possible.
Two commonly used block elements are <p></p> and <div></div>

51
Q

What is an inline element?

A

An inline element, unlike a block element, does NOT start on a new line. It takes up as much width as possible.
An example of an inline element is <span></span>

52
Q

Which element divides and contains other HTML elements?

A

<div></div>

53
Q

Which element is used to mark up or often style a part of a text or document?

A

<span></span>

54
Q

Which attribute specifies a class for an HTML element?

A

class

55
Q

What is the syntax for class?

A

.(class name)

56
Q

How do you define multiple classes in an HTML element?

A

Separate the class names with a space in the value of the class attribute.

57
Q

Which attribute specifies a specific identity for an HTML element?

A

id

58
Q

What is the syntax for id?

A

(id name)

59
Q

What is the difference between class and id?

A

Class is used for multiple elements.
Id is used for one.