theA parent element is a more specific type of ancestor element.bodyelement is an ancestor of allpelements.
attribute_name="attribute_value". There are a number of special types of attributes:
href, which requires the text to be a hyperlink.p element, which is used to create paragraphs.trueor
false. In JavaScript,
true and false are predefined values, and conditions for while loops and if statements are always ultimately boolean in nature. In HTML, boolean attributes are true if included, and false if omitted. They have one possible value, which is exactly the same as their name (for example, checked="checked", nohref="nohref", defer="defer").&) and ending with a semicolon (
;) that refers to a character, usually used for characters that do not appear on the keyboard the coder is using. There are two types of character references:
#for decimal codes and
#xfor hexadecimal codes.
p elements can only have inline elements as child elements. Likewise, ol and ul elements must have li elements as child elements.codeusually refers to HTML, CSS, or JavaScript.
| Language | Starts With | Ends With |
|---|---|---|
| HTML | <!-- |
--> |
| CSS | /* |
*/ |
| JavaScript | /* |
*/ |
//.
+.
var to tell the browser that a JavaScript variable now exists. A value may or may not be assigned.declarethe type of markup language being used. The HTML 4.01 Strict Doctype is:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
HTML documentor
CSS document.
chartor
mapof a webpage's elements, nesting, attributes, and contents.
wordmade up of letters (and sometimes numbers as well) that identify element's type. Examples in HTML are
p(for a paragraph),
ul(for an unordered list), and
h1(for a first-level header).
1.2emis equal to 11/5 the length of a single em-box.
mailto:followed by an email address. This kind of hyperlink usually launches an email program.
onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, and onkeyupx.
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F. Hexadecimal (Hex for short) is used in UNICODE codes (which means its used for special characters in HTML, CSS, and JavaScript) and CSS colors.
else if (an alternative based on other conditions) and else (a default alternative). HTML also has an if statement, but that is supported by Internet Explorer only.strong element highlights text, but otherwise has no affect on the text flow.object element.style attribute.innerelement must be contained completely within—that is, begin after and end before—the
outerelement.
0, 1, 2, 3, 4, 5, 6, 7. Octal may be used for special characters in Javascript.
=assigns a value to a variable in JavaScript and many other languages, while
==checks to see whether or not two values are equal.
head element is the parent of a title element.pica, which is 1/6 of an inch.
HyperText Transfer Protocol, which allows webpages to be downloaded by computers.
point, which is 1/72 of an inch.
title Click here for the definition ofin HTML Objects is (or was, if the link is out of date) itself a Rickroll.Rickroll
*. It selects everything.
., and selects according to the
class attribute.#, and selects according to the
id attribute.:, and selects according to aspects outside the DOM.
:in CSS 2.1,
::in CSS 3. Selects
elementsnot found in the document or DOM.
[and ends with
].
em elements are used to emphasize something, but dfn elements are used to denote a definition.head and body elements have the html element for a parent, therefore head and body are sibling elements.style element or in a seperate document referred to through a link element, both children of the head element.<and end with
>. A slash (
/) before the element name makes a tag an end tag. Start tags have no slash.
base element.red).