Skip to content

Tag: html

Reduce CSS Styles

Is there a way to make the following CSS code more compact and clean? Answer There is no way to make that CSS more compact using pure CSS. However, you can use a framework/plugin such as SASS/SCSS or Less to do so. Frameworks/plugins are the only options, as the CSS you have currently giving different values …

HTML Form onSubmit being bypassed

I’m new to HTML and JS and I’m trying to setup a “Contact” page using GitHub Pages. I am using formspree.io to submit the forms and e-mail to the app mail account. Here is the deal: I’m trying to setup a simple validation just to verify if the form fields aren’t empty (ther…

CodeMirror Doesn’t Display HTML Mode

I am trying to use CodeMirror modes in my web application, but it won’t highlight the words for the mode “htmlmixed”. I don’t understand what is going wrong. The paths to each file are correct because I am not getting any 404 errors. Here is what I did: Any help would be greatly apprec…

post html form results to api as json

I want to submit a form and have the values sent to the api in json format and save the response in a variable. When i try this using the below code i get an ‘Internal Server Error’ message. The parameters the api takes are ‘season’, ‘num_teachers’, ‘num_students&#821…