Forms

This is my reading notes for Code Fellows.

Forms

Traditionally, the term ‘form’ has referred to a printed document that contains spaces for you to fill in information

<form>

Form controls live inside a <form> element. This element should always carry the action attribute and will usually have a method and id attribute too

action

Every <form> element requires an action attribute. Its value is the URL for the page on the server that will receive the information in the form when it is submitted. method Forms can be sent using one of two methods: get or post. With the get method, the values from the form are added to the end of the URL specified in the action attribute.


Lists.

The list-style-type property allows you to control the shape or style of a bullet point (also known as a marker). It can be used on rules that apply to the <ol>, <ul>, and <li> elements. Unordered Lists For an unordered list you can use the following values: none disc circle square Ordered Lists For an ordered (numbered) list you can use the following values: decimal 1 2 3 decimal-leading-zero 01 02 03 lower-alpha a b c upper-alpha A B C lower-roman i. ii. iii. upper-roman I II III

Events

W hen you browse the web, your browser registers different types of events. It’s the browser’s way of saying, “Hey, this just happened.” Your script can then respond to these events.

Home