what is HTML and CSS?
what is the general structure of HTML?
what are the 2 main sections of a standard webpage?
what are the most common HTML tags and their functions?
<html> - all code enclosed within these tags is interpretted as HTML<body> - defines content in the main browser content area<head> - defines browser tab/window heading area<title> - defines text that appears with the tab/window heading area<h1>, <h2>, <h3>, etc - heading styles in decreasing sizes<p> - a paragraph separated with line spaces above + below it<img> - self closing image tag with parameters<a> - anchor tag defining a hyperlink with location parameter<ol> - ordered list (numbered)<ul> - unordered list (bulleted)<li> - individual list elementhow can CSS affect a webpage?
can change:
- the style of an entire website
- a single webpage
- a section of a webpage, defined by <div> tags
what is the purpose of the HTML <div> tag?
what are the 3 methods of applying CSS to HTML?
<p style="float:left">...</p><style> tags in <head> section<link> tagwhy might you use an external CSS stylesheet over inline/embedded CSS?
how do you define the styles for an identifier/class selector using CSS?
h1{color:red}
what is the difference between an identifier and class?
how are identifiers and classes defined in CSS?
what is the float property in CSS?
why might you need to clear a floating object and how do you do this?
<div style="clear:both;"><div>what is a web form for?
how can web forms be created using HTML and Javascript?
<form> tagshow do the reset and submit button of a web form work?
what is JavaScript?
what is just in time compilation?
what JavaScript code structures exist?
how can JavaScript code be included in a website?
<script> tagshow can JavaScript be used for inputs to webforms/webpages?
how do you create a variable in JavaScript and manipulate it?
var x = document.getElementById("box");
x.style.fontsize = 30px;
x.style.color = "blue";this sets the value of x to be the HTML element “box”.
then it changes the style of the HTML element
how do you define a function in JavaScript?
<script>
function myFunction() {
..........
}
</script>parameters can be passed into the normal brackets after the name of the function
the actual code should be contained inside the curly brackets
how do you call a JavaScript button on a call press?
<button type="button" onClick = "myFunction()">Click Me!</button>
onClick should contain the name of the function you want to call
every time the button is pressed, myFunction will be executed