Creating An HTML Form with Bootstrap
Last updated
Last updated
Forms are everywhere on the web and we will need some for our project as well. Rather than walk you through this step by step, we're going to practice taking some HTML snippets from the Bootstrap docs and creating our page so that our design matches the Bootstrap examples.
Our form is going to be in the /manage/manageArticles.bxm
page and needs the following elements. Style them after the floating labels examples at
A text input with the label Title
A textarea with the label Body
A checkbox with the label Active
Here is a rough outline to get your started. Because /manage/manageArticles.bxm is included in /manage/index.bxm, the links to the Bootstrap library are already there. Only put the form on that page and no <html>, <head>, <body> tags.
<form> <input type="text"> <textarea> </textarea> <input type="checkbox" /> <button type="submit">Save</button> </form>