Saw this on the project example. The />
part.
<input type="email" id="email" placeholder="placeholder text"/>
<input type="submit" id="submit" class="btn"></input>
Does this work if the same tags are together?
Saw this on the project example. The />
part.
<input type="email" id="email" placeholder="placeholder text"/>
<input type="submit" id="submit" class="btn"></input>
Does this work if the same tags are together?
not sure need the REST OF THE CODE, BUT, I think -
This is terminated and not going to do much I think:
this will put a blank button on the page with “submit” available for calls
okay, now that we have some context, it makes more sense -
it’s part of the form tags so it will function if there’s an email server and the appropriate code to process/validate the form. It looks like there’s no scripting to process this, so it is not functional at the moment.
Check here http://www.w3schools.com/html/html_form_input_types.asp for more info on forms and scripting needed.
<form id="form" action="https://www.freecodecamp.com/email-submit">
<input name="email" id="email" type="email" placeholder="Enter your email address" required/>
<input id="submit" type="submit" value="Get Started" class="btn"></input>
</form>
BTW, my console shows a BOATLOAD of errors when that loads -
[Warning] Invalid CSS property declaration at: * (www-embed-player-vfl_GjYBW.css, line 1)
[Warning] Invalid CSS property declaration at: * (www-embed-player-vfl_GjYBW.css, line 1)
[Error] Blocked a frame with origin "https://www.youtube-nocookie.com" from accessing a frame with origin "http://s.codepen.io". The frame requesting access has a protocol of "https", the frame being accessed has a protocol of "http". Protocols must match.
AE (base.js:2099)
(anonymous function) (base.js:5499:749)
Global Code (base.js:7383:232)
[Warning] mocha not loaded yet (console_runner-5710c30fb566082d9fcb6e7d97ee7e3f2a326128c9f334a4231b6fd752b29965.js, line 1)
[Error] XMLHttpRequest cannot load https://googleads.g.doubleclick.net/pagead/id. Origin https://www.youtube-nocookie.com is not allowed by Access-Control-Allow-Origin. (x3)
[Error] Refused to display 'https://www.freecodecamp.com/' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'.