HTML Quiz

0.0(0)
studied byStudied by 1 person
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/28

flashcard set

Earn XP

Description and Tags

from w3schools chapter quizzes

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

29 Terms

1
New cards

Which of the following is a correct syntax for using an HTML attribute?

2
New cards

What HTML tags that will preserve all spaces and linebreaks when the element is displayed.

<pre> </pre> called preformatted

3
New cards

CSS to remove the underline from the link

style="text-decoration:none”

4
New cards

Add a line through (strikeout) the letters "blue" in the text

<del> blue </blue>

5
New cards

Highlight the word "FUN" in the text

<mark>FUN</mark>

6
New cards

how to add a horizontal rule? explain why

<hr>
is a void element in HTML — meaning it does not need a closing tag.

</hr> You should not write (that’s invalid in modern HTML).

7
New cards

Add a link to a bookmark, on the same page, with the id="mytext".

<a href ="#mytext ">Jump to new text</a>

8
New cards

The letters "WHO" in the text below is an abbreviation of "World Health Organization". Use an HTML element to provide the specified abbreviation of "WHO".

<p>

The < abbr title= "World Health Organization">

WHO</abbr> was founded in 1948.

</p>

9
New cards

Specify an alternate text for the image.

Alternate text is useful when the image cannot be displayed, like when the page is read by a screen reader.

<img src=”w3schools.png" alt="w3schools Logo">

10
New cards

Insert the HSLA value to make a color with no hue, 100% saturation, 50%

lightness, and 50% transparency.

<p style="color:hsla(0,100%,50%,0.5 )">This is a paragraph.</p>

11
New cards

HSL color values will result in a black color?

hsl(0, 100% ,0)

12
New cards

What is a correct syntax for linking to a bookmark named C4 on another page?

<a href= 'demo. html#C4' >Jump to Chapter 4</a>

13
New cards

What is a correct syntax for linking to an external stylesheet?

<link rel="stylesheet" href="styles.css">
Why it's correct:

  • is the correct tag for linking external resources like stylesheets.

  • rel="stylesheet" tells the browser the relationship is a stylesheet.

  • href="styles.css" specifies the path to the CSS file.

14
New cards

One of these elements is NOT a legal HTML element, which one?

image (invalid, correct answer)

picture valid (used for responsive images)

source valid (used inside , , )

15
New cards

Two of the following HTML elements makes the text bold, which two?

<strong> semantic emphasis, bold by default

<b> stylistic bold

<em> italic emphasis, not bold

<big> enlarges text, not bold

<mark> highlights text, not bold

Correct: <strong> and <b>

16
New cards

What is a correct way to add a background color to an HTML document?

<body style='background-color:pink; '> correct inline CSS

17
New cards

To add a background image on an entrire HTML page, on which element

should you specify the background image?

<body> correct element to style

18
New cards

Which type of elements takes up the full width available?

Block elements (e.g., <div> ,<p>, <h1>)

Inline elements X (e.g., <span>, <a>)

19
New cards

What is a correct HTML markup for the document type declaration?

< ! DOCTYPE html>

20
New cards

Which one of the following will result in a grey color?

  • #A0A0A0 grey shade

  • #FF00FF magenta

  • #00FF00 bright green

21
New cards

Which of the following headers is the largest and most important header?

<h1>

22
New cards

What HTML attribute is used to create a bookmark?

  • id correct (you can link to it with #id)

23
New cards

Which of the following is NOT a quotation element (in fact, not an HTML element at all)?

- <q> inline quote element

- <blockquote> block-level quote element

- <quote> not a valid HTML element

24
New cards

What does HTML stand for?

Hyper Text Markup Language

25
New cards

Who invented HTML?

Tim Berners-Lee

26
New cards

Examples of empty elements

Some HTML elements have no content (like the <br> element). These elements are called empty elements. Empty elements do not have an end tag!

27
New cards

What do you call <h1> and </h1> as tags?

start tags and end tags

28
New cards

are html tags case sensitive?

HTML tags are not case sensitive: <P> means the same as <p>.

The HTML standard does not require lowercase tags, but W3C recommends lowercase in HTML, and demands lowercase for stricter document types like XHTML.

29
New cards

Defines the root of an HTML document

<html>