HTML Flashcards

Basics

1
Q

Which is the language to describe the STRUCTURE of a web page?

A

HTML (Hyper Text Markup Language

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

Which is the language to describe the APPEARANCE of a web page?

A

CSS (Cascading Style Sheets)

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

Phrase for meaning your page responds to the type of device a person is using and displays appropriately on mobile, desktop, and tablet

A

Responsive Degisn

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

What are the building blocks of HTML pages?

A

Elements

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

What are HTML elements represented by?

A

Tags

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

In HTML how are pieces of content such as “heading”, “paragraph”, and “table” labeled?

A

With Tags

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

What element is the root element of an HTML page?

A

the HTML element

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

What element contains meta information about the document?

A

the HEAD element

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

What element specifies a title for the document?

A

The TITLE element

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

What element contains the visible page content?

A

The BODY element

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

What element defines a large heading?

A

,<,h,1><,/,h,1>

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

What element defines a paragraph?

A

,<,p,> ,<,/,p>

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

What is used to define the characteristics of an HTML element and is placed inside the element’s opening tag?

A

An Attribute

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

All attributes are made up of what two parts?

A

A name and a value

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

How many attributes can an element have?

A

More than one; Multiple.

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

Can an element be nested within another element?

A

Yes; True

17
Q

Write code for an href attribute specifying the link’s destination with opening and closing tags.

A

Possible Answer: Visit W3Schools

,<,,a,, href,=,”https://www.w3schools.com,,”,,>,,,,,Visit W3Schools,<,/,a,>

18
Q
A

Headings

19
Q

Are attributes always specified in the 1) Start Tag or 2) Ending Tab?

A

1) Start Tag

20
Q

Write Code for an H1 heading “Hello World” with a background color of blue.

INLINE CODE that is

A

.<.h.1 style=”background-color:Blue;”>Hello World<./.h.1.>

Hello World

21
Q

What is an example of a common self closing tab?

A

Images tag.

22
Q

As opposed to ID’s what is not unique but instead group like content?

A

Classes

23
Q

Write Code to designate an id of “post_1” within the div class of “widget”

A
24
Q

What element contains the metadata about the HTML document?

A

The element

25
Q

Write code for an image file “cat.jpg” within a paragraph.

A
26
Q

Which element contains different information about the document, such as the charset (which defines the character encoding for the document) and the viewport (which gives the browser instructions on how to control the page’s dimensions)?

A

: The meta element

27
Q

What specifies the HIERARCHICAL RELATIONSHIP between elements in a document?

A

HTML is about structuring content, we mean two things. First, we mean that an HTML document specifies each and every one of its elements, but it also specifies the hierarchical relationship between the elements in a document.

28
Q

In the absence of custom style information (in the form of CSS), all modern browsers have default styles they will use to display HTML. In order to cancel out style differences between browsers, frontend developers often use what is called __________ to zero out default styles

A

A CSS Reset

29
Q

Write code to show a comment only (not to be rendered) of “comment text”

A
30
Q

Write code for a video “test.mp4” that will be muted, looped, with controls.

A
31
Q

Write code for an e-mail link with the e-address showing as the link.

A
32
Q

Web browsers display the text in the ___ element in the browser tab. Web crawlers also look to this element to help classify web pages, so it plays an important part in SEO. The ___ element is required for all HTML documents.

A

.<.title.>.

33
Q

The ___ element creates a link between the HTML document and other resources, such as stylesheets (written in CSS).

A

.<.link.>.

34
Q

The ____ element is used to define the frontend JavaScript for a web page. It can either link to an external JS file (which is how we’ll use it in this course) or contain _____ directly in the HTML file.

A

The script element..

scripts

35
Q

The script element can live in the _____ or the _____ depending on which features you want to load first.

A

head

body

36
Q
A