Create a new Topic
hi, doing the calorie counter project. no help button on this step. using jaws for windows 2025 screen reader. so doing step 12 and did add the div output hide in the editor and on my local html file in vs code, but theres a bug with the fcc editor. so will paste the step, the code i have, the error message and the tests. so i do have the correct code, and no spaces outside the tag, unless theres invisable characters or hidden trailers, but as i cannot see, so cannot tell whether it is there. so pasting my code below.
marvin.
ps: pasting now.
Code:
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet" href="styles.css">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Calorie Counter</title>
</head>
<body>
<main>
<h1>Calorie Counter</h1>
<form id="calorie-counter">
<label for="budget">Budget</label>
<input type="number" id="budget" min="0" placeholder="Daily calorie budget" required>
<fieldset id="breakfast">
<legend>Breakfast</legend>
<div class="input-container"></div>
</fieldset>
<fieldset id="lunch">
<legend>Lunch</legend>
<div class="input-container"></div>
</fieldset>
<fieldset id="dinner">
<legend>Dinner</legend>
<div class="input-container"></div>
</fieldset>
<fieldset id="snacks">
<legend>Snacks</legend>
<div class="input-container"></div>
</fieldset>
<fieldset id="exercise">
<legend>Exercise</legend>
<div class="input-container"></div>
</fieldset>
<div class="controls">
<label for="entry-dropdown">Add food or exercise:</label>
<select id="entry-dropdown" name="options">
<option value="breakfast" selected>Breakfast</option>
<option value="lunch">Lunch</option>
<option value="dinner">Dinner</option>
<option value="snacks">Snacks</option>
<option value="exercise">Exercise</option>
</select>
<button type="button" id="add-entry">Add Entry</button>
</div>
<button type="submit" id="submit">Calculate Remaining Calories</button>
<button type="button" id="clear">Clear</button>
</form>
<div id="output" class="output hide"></div>
</main>
<script src="script.js"></script>
</body>
</html>
step:
https://www.freecodecamp.org/learn/full-stack-developer/workshop-calorie-counter/step-12
Errors:
You should add a div element after your form.
1. You should add a div element after your form.
2. Your new div element should have an id set to output.
3. Your new div element should have the class values of output and hide.
4. Your new div should be empty.
// tests completed
ps::: i have reset the lesson multiple times, have tried on multiple browsers like chrome, firefox, edge. also tried with multiple screen readers, jaws, nvda, windows narrator. so theres a bug in the fcc cache, and no easy way to delete that, do you know of a tool to delete the cache from the fcc editor as a stadn alone tool. so will be doing the other steps and then come back to step 12, down the track or the end of the project. also will let quincy larson know of this issue if you cannot replicate it.
thank you.
marvin.
apachebashcppcsscoffeescriptdiffxmlhttpinijsonjavajavascriptmakefilemarkdownnginxobjectivecrubyperlphppythonsqlhandlebarstypescriptrustcmatlab
Create TopicDiscard