Skip to content
🌐

Web Development

150 exercises

Practice exercises for web development.

  1. 1

    HTML Heading Tag Quiz

    Test your knowledge of HTML heading tags and their visual hierarchy.

    Multiple Choice Beginner
  2. 2

    Complete the HTML Document

    Fill in the missing HTML tag that wraps all visible page content.

    Fill in the Blank Beginner
  3. 3

    What Does CSS Do?

    Check your understanding of the role CSS plays in web development.

    Concept Check Beginner
  4. 4

    HTTP Methods Quiz

    Test your knowledge of HTTP request methods and their intended use cases.

    Multiple Choice Easy
  5. 5

    Predict the HTTP Status Code

    Predict the HTTP status code returned for a successful page request.

    Predict Output Easy
  6. 6

    Complete the JSON Object

    Fill in the missing JSON syntax to create a valid key-value pair.

    Fill in the Blank Beginner
  7. 7

    Predict JSON Parsing Output

    Predict what JSON.parse returns for a valid JSON string.

    Predict Output Easy
  8. 8

    REST API Quiz

    Test your understanding of what an API is and how it works.

    Multiple Choice Beginner
  9. 9

    REST Endpoint Concept

    Check your conceptual understanding of a REST API endpoint.

    Concept Check Easy
  10. 10

    Semantic HTML Tag Quiz

    Test your knowledge of semantic HTML5 tags and their purpose.

    Multiple Choice Beginner
  11. 11

    Article vs Section

    Distinguish between the article and section semantic elements.

    Multiple Choice Easy
  12. 12

    Complete the Form Input

    Fill in the missing attribute to create a required email input.

    Fill in the Blank Beginner
  13. 13

    Form Submission Method

    Test your knowledge of HTML form methods and their behavior.

    Multiple Choice Easy
  14. 14

    Find the HTML Mistake

    Spot the error in this HTML list structure.

    Find the Mistake Beginner
  15. 15

    Accessibility: alt Text

    Check your understanding of the alt attribute and accessibility.

    Concept Check Beginner
  16. 16

    Label Association Quiz

    Test how to properly associate a label with a form input.

    Multiple Choice Easy
  17. 17

    Complete the Semantic Tag

    Fill in the semantic tag that wraps the dominant page content.

    Fill in the Blank Beginner
  18. 18

    CSS Selector Specificity

    Test your knowledge of CSS selector specificity and the cascade.

    Multiple Choice Medium
  19. 19

    Predict the Box Model Width

    Predict the total rendered width of an element with box-sizing.

    Predict Output Easy
  20. 20

    Predict Content-Box Width

    Predict the total width with the default box-sizing.

    Predict Output Easy
  21. 21

    Flexbox Direction Quiz

    Test your knowledge of flexbox direction properties.

    Multiple Choice Easy
  22. 22

    Complete the Flex Centering

    Fill in the property that centers flex items on the cross axis.

    Fill in the Blank Easy
  23. 23

    CSS Grid vs Flexbox

    Check your understanding of when to use Grid vs Flexbox.

    Concept Check Medium
  24. 24

    Media Query Quiz

    Test your knowledge of CSS media queries and breakpoints.

    Multiple Choice Easy
  25. 25

    Predict CSS Variable Output

    Predict the computed value of a CSS custom property.

    Predict Output Easy
  26. 26

    Complete the Animation

    Fill in the CSS property that applies a keyframe animation.

    Fill in the Blank Easy
  27. 27

    Find the CSS Mistake

    Spot the error in this CSS rule that prevents it from applying.

    Find the Mistake Easy
  28. 28

    Inline vs Block Elements

    Test your knowledge of inline and block-level HTML elements.

    Multiple Choice Beginner
  29. 29

    Margin Collapsing Concept

    Check your understanding of vertical margin collapsing.

    Concept Check Medium
  30. 30

    Predict Flex Justify-Content

    Predict the visual result of a flexbox alignment property.

    Predict Output Easy
  31. 31

    Grid Template Columns

    Test your knowledge of CSS Grid column definitions.

    Multiple Choice Easy
  32. 32

    Complete the Media Query

    Fill in the media feature for targeting mobile devices.

    Fill in the Blank Easy
  33. 33

    CSS Transition Quiz

    Test your knowledge of CSS transitions and their properties.

    Multiple Choice Easy
  34. 34

    Find the Flexbox Mistake

    Spot the error that prevents flexbox from working.

    Find the Mistake Easy
  35. 35

    CSS Variables Scope

    Check your understanding of CSS custom property scoping.

    Concept Check Medium
  36. 36

    Predict Which Element Gets Styled

    Predict which elements a descendant selector matches.

    Predict Output Easy
  37. 37

    Grid Gap Quiz

    Test your knowledge of CSS Grid gap properties.

    Multiple Choice Easy
  38. 38

    Complete the Border-Radius

    Fill in the value that creates a fully circular element.

    Fill in the Blank Easy
  39. 39

    CSS Display Property

    Test your knowledge of the CSS display property values.

    Multiple Choice Easy
  40. 40

    Predict Transition Duration

    Predict how long a CSS transition takes to complete.

    Predict Output Easy
  41. 41

    Find the Grid Mistake

    Spot the error in this CSS Grid layout.

    Find the Mistake Medium
  42. 42

    Mobile-First Concept

    Check your understanding of the mobile-first design approach.

    Concept Check Medium
  43. 43

    Pseudo-Class Quiz

    Test your knowledge of CSS pseudo-classes.

    Multiple Choice Easy
  44. 44

    Complete the Position Property

    Fill in the position value for an element relative to the viewport.

    Fill in the Blank Medium
  45. 45

    HTTP Status Code Ranges

    Test your knowledge of HTTP status code categories.

    Multiple Choice Easy
  46. 46

    Predict 404 Status Code

    Predict the HTTP status code for a missing resource.

    Predict Output Easy
  47. 47

    POST vs PUT Quiz

    Test your understanding of POST and PUT HTTP methods.

    Multiple Choice Medium
  48. 48

    Complete the HTTP Header

    Fill in the HTTP header that declares the content type as JSON.

    Fill in the Blank Easy
  49. 49

    HTTPS vs HTTP Concept

    Check your understanding of the difference between HTTP and HTTPS.

    Concept Check Easy
  50. 50

    URL Structure Quiz

    Test your knowledge of URL components.

    Multiple Choice Easy
  51. 51

    Predict URL Encoding

    Predict the percent-encoded form of a URL with special characters.

    Predict Output Medium
  52. 52

    Complete the URL Fragment

    Fill in the URL part that scrolls to a specific section of a page.

    Fill in the Blank Easy
  53. 53

    Browser Rendering Quiz

    Test your knowledge of how browsers render web pages.

    Multiple Choice Medium
  54. 54

    DevTools Network Tab

    Check your understanding of the browser DevTools Network tab.

    Concept Check Easy
  55. 55

    Browser Storage Quiz

    Test your knowledge of client-side storage options.

    Multiple Choice Easy
  56. 56

    Predict localStorage Output

    Predict what localStorage returns after setting and getting a value.

    Predict Output Easy
  57. 57

    Complete the Console Method

    Fill in the console method that outputs an error-level message.

    Fill in the Blank Beginner
  58. 58

    Cookie Attributes Quiz

    Test your knowledge of cookie security attributes.

    Multiple Choice Medium
  59. 59

    Find the URL Mistake

    Spot the error in this URL that would cause a request to fail.

    Find the Mistake Easy
  60. 60

    Browser Event Loop

    Check your understanding of the browser event loop.

    Concept Check Medium
  61. 61

    Session vs Cookie Quiz

    Test your understanding of sessions vs cookies.

    Multiple Choice Medium
  62. 62

    Predict sessionStorage Behavior

    Predict what sessionStorage does when the tab is closed and reopened.

    Predict Output Easy
  63. 63

    REST API Verbs Quiz

    Test your knowledge of REST API HTTP methods and CRUD mapping.

    Multiple Choice Easy
  64. 64

    Predict Fetch Response

    Predict what a fetch call returns initially.

    Predict Output Medium
  65. 65

    Complete the Fetch Call

    Fill in the method to parse a JSON response from fetch.

    Fill in the Blank Easy
  66. 66

    JSON Data Types Quiz

    Test your knowledge of valid JSON data types.

    Multiple Choice Easy
  67. 67

    Predict JSON.stringify Output

    Predict the output of JSON.stringify on a nested object.

    Predict Output Easy
  68. 68

    Find the JSON Mistake

    Spot the syntax error in this JSON string.

    Find the Mistake Easy
  69. 69

    DOM Querying Concept

    Check your understanding of DOM query methods.

    Concept Check Easy
  70. 70

    Predict DOM Manipulation Output

    Predict the text content after a DOM update.

    Predict Output Easy
  71. 71

    Complete the DOM Query

    Fill in the method to get an element by its ID.

    Fill in the Blank Beginner
  72. 72

    Event Listener Quiz

    Test your knowledge of JavaScript event listeners.

    Multiple Choice Easy
  73. 73

    Predict Event Target

    Predict which element is the event target.

    Predict Output Medium
  74. 74

    Find the Event Handling Mistake

    Spot the error in this event listener code.

    Find the Mistake Easy
  75. 75

    Event Bubbling Concept

    Check your understanding of event bubbling in the DOM.

    Concept Check Medium
  76. 76

    Fetch Error Handling Quiz

    Test your knowledge of fetch error handling behavior.

    Multiple Choice Medium
  77. 77

    Complete the POST Request

    Fill in the header name for sending JSON in a POST request.

    Fill in the Blank Medium
  78. 78

    Predict JSON.parse with Nested Data

    Predict the output of accessing nested JSON data.

    Predict Output Easy
  79. 79

    API Authentication Quiz

    Test your knowledge of API authentication methods.

    Multiple Choice Medium
  80. 80

    Find the Fetch Mistake

    Spot the error in this async fetch function.

    Find the Mistake Medium
  81. 81

    innerHTML vs textContent

    Check your understanding of the security implications of innerHTML.

    Concept Check Medium
  82. 82

    Predict Event Prevention

    Predict the behavior when preventDefault is called on a form submit.

    Predict Output Medium
  83. 83

    CORS Concept Quiz

    Test your knowledge of Cross-Origin Resource Sharing.

    Multiple Choice Medium
  84. 84

    Complete the CORS Header

    Fill in the CORS header that allows all origins.

    Fill in the Blank Medium
  85. 85

    XSS Attack Quiz

    Test your knowledge of Cross-Site Scripting (XSS) attacks.

    Multiple Choice Medium
  86. 86

    Content Security Policy

    Check your understanding of Content Security Policy (CSP).

    Concept Check Medium
  87. 87

    Predict HTTPS Behavior

    Predict what happens when an HTTPS page loads an HTTP resource.

    Predict Output Easy
  88. 88

    SEO Meta Tags Quiz

    Test your knowledge of SEO-relevant HTML elements.

    Multiple Choice Easy
  89. 89

    Complete the Meta Description

    Fill in the meta tag name for the page description used by search engines.

    Fill in the Blank Easy
  90. 90

    Web Performance Quiz

    Test your knowledge of web performance optimization.

    Multiple Choice Easy
  91. 91

    Predict Image Lazy Loading

    Predict the effect of lazy loading on initial page load.

    Predict Output Easy
  92. 92

    Find the Performance Mistake

    Spot the performance issue in this HTML.

    Find the Mistake Medium
  93. 93

    PWA Concept Check

    Check your understanding of Progressive Web Apps.

    Concept Check Medium
  94. 94

    Service Worker Quiz

    Test your knowledge of service workers in PWAs.

    Multiple Choice Medium
  95. 95

    Complete the Canonical Link

    Fill in the rel attribute value for a canonical URL.

    Fill in the Blank Medium
  96. 96

    CSRF Attack Quiz

    Test your knowledge of Cross-Site Request Forgery.

    Multiple Choice Medium
  97. 97

    Predict Preflight Request

    Predict when a CORS preflight OPTIONS request is sent.

    Predict Output Medium
  98. 98

    Find the Security Mistake

    Spot the security vulnerability in this code.

    Find the Mistake Medium
  99. 99

    Critical Rendering Path

    Check your understanding of the critical rendering path.

    Concept Check Medium
  100. 100

    How the Web Works Quiz

    Test your fundamental understanding of how the web works.

    Multiple Choice Beginner
  101. 101

    HTML Document Structure

    Identify the correct HTML5 document structure.

    Multiple Choice Beginner
  102. 102

    HTML Paragraph Tag

    Identify the correct tag for paragraphs.

    Multiple Choice Beginner
  103. 103

    CSS Inline Style Syntax

    Understand inline CSS style syntax.

    Multiple Choice Beginner
  104. 104

    CSS Class Selector

    Identify the correct class selector syntax.

    Multiple Choice Beginner
  105. 105

    CSS ID Selector

    Identify the correct ID selector syntax.

    Multiple Choice Beginner
  106. 106

    CSS Box Model Components

    Identify the four components of the CSS box model.

    Multiple Choice Easy
  107. 107

    Flexbox Justify Content

    Understand flexbox alignment properties.

    Multiple Choice Easy
  108. 108

    HTTP GET vs POST

    Distinguish HTTP GET from POST methods.

    Multiple Choice Easy
  109. 109

    HTTP Status Code 404

    Understand HTTP status codes.

    Multiple Choice Easy
  110. 110

    Semantic HTML Nav Tag

    Identify the semantic tag for navigation.

    Multiple Choice Beginner
  111. 111

    CSS Grid Template Columns

    Understand CSS Grid column definitions.

    Multiple Choice Easy
  112. 112

    JSON Data Types

    Identify valid JSON data types.

    Multiple Choice Easy
  113. 113

    REST API Endpoint

    Understand REST API conventions.

    Multiple Choice Easy
  114. 114

    HTML Form Input Type

    Identify the correct input type for email.

    Multiple Choice Easy
  115. 115

    CSS External Stylesheet

    Understand how to link external CSS.

    Multiple Choice Beginner
  116. 116

    DOM Query Selector

    Understand querySelector usage.

    Multiple Choice Easy
  117. 117

    Event Listener Syntax

    Understand addEventListener parameters.

    Multiple Choice Easy
  118. 118

    Fetch API Return Type

    Understand what fetch() returns.

    Multiple Choice Medium
  119. 119

    CSS Media Query Syntax

    Understand media query syntax.

    Multiple Choice Easy
  120. 120

    CORS Policy Purpose

    Understand why CORS exists.

    Multiple Choice Medium
  121. 121

    LocalStorage vs SessionStorage

    Distinguish localStorage from sessionStorage.

    Multiple Choice Easy
  122. 122

    HTML Image Tag Attributes

    Identify required img tag attributes.

    Multiple Choice Easy
  123. 123

    CSS Transition Property

    Understand CSS transition syntax.

    Multiple Choice Medium
  124. 124

    HTTPS vs HTTP

    Understand the difference between HTTP and HTTPS.

    Multiple Choice Easy
  125. 125

    SEO Meta Description

    Understand the purpose of meta description.

    Multiple Choice Medium
  126. 126

    Semantic Article Tag

    Understand the article element.

    Multiple Choice Easy
  127. 127

    Box Sizing Border Box

    Understand box-sizing: border-box.

    Multiple Choice Medium
  128. 128

    Flex Direction Column

    Understand flex-direction: column.

    Multiple Choice Easy
  129. 129

    DOM Event Bubbling

    Understand event bubbling.

    Multiple Choice Medium
  130. 130

    XSS Attack Prevention

    Understand XSS prevention.

    Multiple Choice Medium
  131. 131

    HTML Nested Elements

    Predict the rendered text from nested HTML.

    Predict Output Beginner
  132. 132

    CSS Color Property

    Predict the text color after CSS rules.

    Predict Output Beginner
  133. 133

    CSS Specificity Order

    Predict which style wins in a specificity conflict.

    Predict Output Beginner
  134. 134

    CSS Margin Shorthand

    Predict margin values from shorthand.

    Predict Output Easy
  135. 135

    JSON Parse Result

    Predict the result of JSON.parse.

    Predict Output Easy
  136. 136

    DOM Text Content

    Predict the result of textContent.

    Predict Output Easy
  137. 137

    Flex Container Display

    Predict flex item behavior.

    Predict Output Easy
  138. 138

    HTTP Response Header

    Predict the content type from a header.

    Predict Output Easy
  139. 139

    HTML Form Method

    Predict the HTTP method from a form.

    Predict Output Easy
  140. 140

    Grid Area Placement

    Predict grid item placement.

    Predict Output Medium
  141. 141

    LocalStorage Set Get

    Predict localStorage behavior.

    Predict Output Easy
  142. 142

    Event Target Element

    Predict event.target in a click handler.

    Predict Output Medium
  143. 143

    CSS Transform Scale

    Predict the visual effect of transform.

    Predict Output Medium
  144. 144

    JSON Stringify Output

    Predict JSON.stringify output.

    Predict Output Easy
  145. 145

    CSS Descendant Selector

    Predict which elements are styled.

    Predict Output Medium
  146. 146

    Semantic Section Tag

    Predict the rendering of a section.

    Predict Output Easy
  147. 147

    Fetch JSON Parsing

    Predict the data from a fetch chain.

    Predict Output Medium
  148. 148

    Media Query Application

    Predict which styles apply at a given width.

    Predict Output Easy
  149. 149

    DOM Class List Toggle

    Predict classList.toggle behavior.

    Predict Output Medium
  150. 150

    HTTP Redirect Chain

    Predict the final URL after redirects.

    Predict Output Medium

Build real projects

Apply what you learned by building guided projects with starter code and solutions.

View projects