reading-notes

Read 09 in 201


From the Duckett HTML book:


  1. Chapter 7: “Forms”
    • Traditionally, the term ‘form’ has referred to a printed document that contains spaces for you to fill in information.
    • There are several types of form controls that you can use to collect information from visitors to your site
    1. Adding tEXt
    2. making Choices
    3. submittgng Forms
    4. uploading FIlEs * 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.

img

img

  1. Chapter 14: “Lists, Tables & Forms” (pp.330-357)
    • There are several CSS properties that were created to work with specific types of HTML elements, such as lists, tables, and forms.
    • The list-style-type property allows you to control the shape or style of a bullet point (also known as a marker)
    • You can specify an image to act as a bullet point using the list-style-image property
    • Lists are indented into the page by default and the list-styleposition property indicates whether the marker should appear on the inside or the outside of the box containing the main points.

img

img




From the Duckett HTML book:


  1. Chapter 6: “Events” (pp.243-292)
    • When 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
    • When an event occurs, the event object tells you information about the event, and the element it happened upon
    • Creating event listeners for a lot of elements can slow down a page, but event flow allows you to listen for an event on a parent element
    • The event object has methods that change: the default behavior of an element and how the element’s ancestors respond to the event.
    • The mouse events are fired when the mouse is moved and also when its buttons are clicked.

      img