Week 3 - HTML Part 3 Flashcards
What are the main tags/attributes needed for a html form?
Method (get - submit form and obtain data/post - submit form and store data) & action (URL of where the server to process form goes)
How do C/S relate to forms?
- You request the HTML form using HTTPS over Internet
- Server sends HTML form using HTTPS over Internet
- You submit form over Internet
- The server processes the form and generates a response to show client side.
What are structural elements used for?
Used for more styling and being able to section code so that it’s more accessible
What does a radio button need to function properly?
Types are same, names are same but values are different.
This is because we want a single selection from multiple choices.
What does a checkbox need to function properly?
Types are same, names have [] at end, but values are different.
This is because we want to make an array to accept multiple selection.
What does a dropdown menu need to function properly?
Uses select with name and id tags.
We mark up all of the different options using:
option value = “…”
What does a HTML form do?
Allows for data to be submitted into a webpage and processed by the server to get a response.
(You’ve successfully registered!)
Semantic HTML
The code describes meaning to the browser and developer.
Eg: nav, footer, header, article, section, figure
Non-Semantic HTML
The code doesn’t describe anything about the content, only used for structure.
Eg: span, div, br
div
Block level container used to section off code for further CSS styling.
span
Inline level element used to group other inline elements for further CSS styling.