I thought I cant mix between form tag and div tag, I’m talking about HTML. In a basic HTML explanation I thought form tag cant be mixed with other tag than form tag itself. Here’s example of form tag from w3c
1 2 3 4 5 6 7 |
But I come across to this theme and realize its’ form theme doesn’t include a form tag, how could it be…
Where I could place action page even the form tag doesn’t included. So it’s easy we just need to warp all form element, with a form tag. here’s an example of div tag in a form tag
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | <form> <div class="grid_16"> <h2>Submit News Article</h2> Something went wronk.</div> <div class="grid_5"> <label for="title">Title <small>Must contain alpha-numeric characters.</small></label> <input name="title" type="text" /></div> <div class="grid_5"> <label for="title">Slug <small>Must contain alpha-numeric characters.</small></label> <input name="title" type="text" /></div> <div class="grid_6"> <label for="title">Category</label> <select> <option>Draft</option> <option>Published</option> <option>Private</option> </select></div> <div class="grid_16"> <label>Summary <small>Will be displayed in search engine results.</small></label> <textarea></textarea></div> <div class="grid_16"> <label>Article <small>Markdown Syntax.</small></label> <textarea class="big"></textarea> <input type="reset" value="Reset" /> <input type="submit" value="Post" /></div> </form> |
I just need to add action attribute and method attribute if necessaries