Fledge

Daily practice for the aspiring web developer

Write HTML, CSS, and JavaScript code to test your front-end knowledge.

See your code output as you write in real time.

Get instant, automatically graded feedback.

Create your own questions to challenge yourself or other front-end developers.

Editor is loading...

Task:

Add an h1 with the word 'Hello' inside (without the quotes).

Feedback:

Preview:

Hints

Create an HTML Question


Starter Code

The CSS written here will be hidden.

Editor is loading...
Editor is loading...
Preview:

Question text

Checks

1

Check for child elements or an element's text content.

1

selector
type
children

HTML

Known Testing Capabilities

  • Test for matching textContent within a specific element with the 'text' type.
  • Test for matching children and textContent with the 'children' type
  • Check for multiple children by providing comma separated elements.

Known Restrictions

  • Order matters when using the 'children' testing type. When creating a question, the child elements you expect should be written in the exact order that you expect them to be in.

Editor is loading...
Editor is loading...

Task:

Write CSS to give only square number 2 a green background.

Feedback:

Preview:

Hints

Create an HTML + CSS Question


Starter Code

The CSS written here will be hidden.

Editor is loading...
Editor is loading...
Preview:

Question text

Checks

2

These must be true for a correct answer.

1

selector
property
value

2

selector
property
value

HTML + CSS

Known Testing Capabilities

    CSS Values

  • pixels
  • colors
  • rgb, hex, and keyword
  • display values
  • flex, grid, center, space-between, space-around, etc.
  • position values
  • relative, inline, inline-block, etc.
  • fonts
  • available options are shown when viewing the autofill option for the font-family property

    CSS Properties

  • color
  • background-color
  • margin*
  • padding*
  • font-size
  • font-family
  • position
  • display
  • justify-content
  • align-items
  • place-items
  • width
  • height
  • box-shadow*
* see restrictions

Known Restrictions

  • If you are using padding and margin, and the values for top and bottom are different from the values for left and right, use ‑inline for left and right and ‑block for top and bottom. Feel free to be more specific if necessary.
  • The testing that happens behind the scenes will return true if, for example, the solution margin should be: #selector { margin: 16px 32px; } and the submitted code has those values swapped: #selector { margin: 32px 16px; }this will result in a correct submission even though it is wrong. However, if the solution was instead written as: #selector { margin-block: 16px; margin-inline: 32px; }then the previously submitted answer would instead be marked as incorrect, but this:#selector { margin: 16px 32px; } would register as a correct answer.
  • The box-shadow property has a similar restriction as padding and margin for the individual properties. This only works if both the solution and the person answering the question use all four pixel properties.

Editor is loading...

Task:

Change the code on line 1 so that the carrot emoji is printed to the console.
    

Feedback:

Console:

Hints

Under Construction!🚧

This feature should be available soon.

Under Construction!🚧

This feature should be available soon.

Under Construction!🚧

This feature should be available soon.