Module 3: HTML, CSS, JS Basics Flashcards
1
Q
What is CSS for?
A
Design/Looks
2
Q
What is HTML for?
A
Layout/Structure
3
Q
JavaScript
A
Client-side functionality
4
Q
PHP
A
Server-side functionality
5
Q
(T/F) All HTML elements, except for empty HTML elements, must have a closing tag
A
True
6
Q
(T/F) JavaScript and CSS use the same selectors (for the most part)
A
True
7
Q
(T/F) In JavaScript, using the window keyword is optional for things like window.alert(), window.addEventListener(), window.prompt(), etc.
A
True
8
Q
When a <form> is submitted, what are all the options that’d make an input eligible to send data for that submission?
A
- Input element must be a child of the form (if another specific condition isn’t met)
- Input element must have a name attribute
- Input element must have a form attribute if not a child of the form
- If provided, the form attribute ‘onsubmit’ must receive/return true
9
Q
What languages will properly run on a page that has a .html extension?
A
- HTML
- CSS
- JavaScript