HTML, CSS, and Javascript for Web Developers Practice Exam

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/54

flashcard set

Earn XP

Description and Tags

Flashcards covering the fundamentals of HTML, CSS, and Javascript for web development based on lecture notes and exam prep questions.

Last updated 9:27 PM on 5/8/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

55 Terms

1
New cards

In order to install Browser Sync, what must be installed first?

NodeJs

2
New cards

What is the core purpose of HTML that distinguishes it from a pure text file?

To communicate the structure of the content

3
New cards

Is the W3C (World Wide Web Consortium) the only organization that dictates how browsers should implement HTML5?

False

4
New cards

How does WHATWG approach the versioning of HTML?

They do not version HTML; for them, it is not HTML5, it's just HTML.

5
New cards

What is the only requirement for an HTML5 element?

It must have an opening tag.

6
New cards

List three valid ways to specify an HTML5 document declaration.

<!DOCTYPEhtml><!DOCTYPE html>, <!doctypehtml><!doctype html>, and <!DocTyPehtML><!DocTyPe htML >

7
New cards

What happens if a developer does not specify the HTML5 declaration in a document?

The page will be interpreted in quirks mode

8
New cards

True or False: Browsers always interpret HTML sequentially from top to bottom.

True

9
New cards

Do meta tags communicate information about the browser to the web server?

False

10
New cards

What does 'Quirks Mode' signify in a web browser?

The browser assumes the page does not follow modern HTML/CSS standards and uses legacy behavior for rendering.

11
New cards

How many lines of text will be shown in the browser for the snippet provided (from 'Dear all' to 'Definitely not Yaakov')?

44

12
New cards

Why is the snippet 'I love

gardening
' considered invalid?

A block-level element (<div><div>) is nested inside an inline-level element (<span><span>).

13
New cards

What is one primary purpose of HTML Character Entity References?

To allow the browser to display characters that would otherwise be interpreted as HTML code.

14
New cards

Using only HTML, how can you ensure three words always appear together on one line regardless of word-wrapping?

Place the   entity reference after the first and second words with no spaces between words and the entity.

15
New cards

How do you force a browser to open a link in a new window or tab?

Include the target=blanktarget='_blank' attribute within the <a><a> tag.

16
New cards

True or False: Using an ID attribute on an element, such as

, allows a direct link to that specific section of the page.

True

17
New cards

Is it considered good practice to use width and height attributes on an 'img' tag even if they are not required?

True

18
New cards

What is the definition of a stylesheet?

A collection of CSS rules

19
New cards

True or False: CSS rules are restricted to only one property/value pair.

False

20
New cards

True or False: A CSS rule can only be applied to one selector at a time.

False

21
New cards

How much horizontal space does a block-level element attempt to occupy by default?

As much horizontal space as its containing element will allow.

22
New cards

What is the primary benefit of placing CSS styles in an external file?

It allows the same styles to be shared across multiple HTML pages.

23
New cards

Are pixels classified as absolute or relative units of measurement?

Absolute

24
New cards

If the body font-size is set to 30px30px and a div inside it is set to 3em3em, what is the resulting pixel size of the div text?

90px90px

25
New cards

Calculate the rendered width (including padding and border) of a div with: padding 10px10px, margin 10px10px, width 100px100px, and border 10px10px.

140px140px

26
New cards

What is the rendered width of the same div (padding 10px10px, margin 10px10px, width 100px100px, border 10px10px) if box-sizing is set to border-box?

100px100px

27
New cards

True or False: A right margin of one element touching a left margin of another results in a combined margin equal to the sum of both.

False

28
New cards

What is the resulting margin between two divs where the top div has margin-bottom: 10px10px and the bottom div has margin-top: 20px20px?

20px20px

29
New cards

What is the result of using 'background-color: blue;' followed by the shorthand 'background: url('mypicture.jpg');' on the same element?

Just the image will be seen.

30
New cards

Does floating an element remove it from the regular document flow?

True

31
New cards

What does the CSS rule 'section { clear: right; }' dictate?

It signifies that none of the section elements should allow anything to float to the right of them.

32
New cards

Does setting 'position: relative;' on an element take it out of the regular document flow?

False

33
New cards

True or False: By default, ALL HTML elements have their position property set to static.

False

34
New cards

Will the styles within '@media (min-width: 768px) and (max-width: 991px)' apply if the browser window is exactly 991px991px wide?

False

35
New cards

True or False: The standard approach to media queries involves providing base styling and then adding/changing them within each query.

False

36
New cards

How many columns are typically used in responsive framework grid layouts?

1212

37
New cards

In a 12-grid layout, what is the width percentage of a single cell?

8.33%8.33\% (100/12100 / 12)

38
New cards

What is the function of the meta tag with 'name="viewport"' and 'initial-scale=1'?

It tells the browser to treat the device width as the real screen width and sets the zoom level to 100%100\%, preventing automatic zooming.

39
New cards

What does the Bootstrap class 'col-md-6' represent?

The element stretches to 50%50\% of the screen width and collapses/stacks below the 'md' (medium) transition width.

40
New cards

Is the Bootstrap Grid required to be defined inside a parent with the class 'container' or 'container-fluid'?

True

41
New cards

True or False: In a website project, you should move to coding HTML/CSS immediately and then show the views to the client for approval.

False

42
New cards

How does the 'container-fluid' class behave regarding browser width?

It stretches to the full width of the browser window (minus margins) and adjusts dynamically as the window width changes.

43
New cards

In a Bootstrap collapse component, what must the 'id' of the menu div match to be triggered by a button with 'data-target="#collapsable-nav"'?

collapsable-nav

44
New cards

If a Bootstrap row contains three divs with the class 'col-md-4 col-sm-6', how many columns will be produced on a 1,000px1,000px wide screen?

33

45
New cards

What Bootstrap class is used to show an element only when the browser width is below 768px768px (extra small)?

visible-xs

46
New cards

True or False: Javascript is always executed sequentially.

True

47
New cards

Is the tag '

No, it is missing a closing tag, which must always be present.

48
New cards

What is a Javascript object?

A collection of name/value pairs.

49
New cards

What is the primary difference between the strict equality operator (======) and the regular equality operator (====)?

Strict equality checks if the types are the same first; if not, it returns false without trying to coerce the values.

50
New cards

How many times will 'Hello' be logged if the condition is: '( (null) || (console.log("Hello")) || x > 5 )' where x is 10 and the block also contains console.log("Hello")?

22

51
New cards

Is defining a variable as an Object Literal generally faster and easier than using 'new Object()'?

True

52
New cards

What is the result of a Javascript closure where a multiplier of 1010 is passed to a function that later multiplies its input by that value, and the input provided is 1010?

100100

53
New cards

True or False: Javascript doesn't allow anything to be passed by reference.

False

54
New cards

What is the value of 'y' if 'var x = 5; var y = x; x = 10;' is executed?

55

55
New cards

In Javascript, if 'Max' is passed as the name to a Dog constructor and bark is added to Dog.prototype, what is the output of max.bark()?

Max likes barking! Bark!