Html + javascript + CSS can't get passed 13


Can anyone see where I’ve gone wrong?

These are my instructions: "Add a second text input field with an id of “resultField” and a label that says "Result:"
I believe I have done it, but an error keeps popping up and I can’t get passed this lesson.

    <script type="text/javascript" src="script.js"></script>

    <form name="tempForm">
        <input type="button" value="Convert" onclick="processForm()">
        <label for="temp">Temperature:</label>
        <input type="text" id="temp" />
        <label for="resultField">Result: </label>
        <input type="text" id="resultField" />

Oops, try again. Make sure your label for resultField is ‘Result:’.


For some reason it works now…I didn’t change anything…


You’ll need to remove the space between Result and /label,

label for=“resultField”>Result:</label


Is it really necessary to have JS in HTML? This is sooo old. Unobtrusive behavior is totally achievable.


This topic was automatically closed after 7 days. New replies are no longer allowed.