Shared Flashcard Set

Details

Strict HTML 4.01 Rules
N/A
10
Computer Science
10th Grade
10/21/2008

Additional Computer Science Flashcards

 


 

Cards

Term
Rule 1
Definition
Always start each page with a DOCTYPE, but following that, the HTML element must be on top.
Term
Rule 2
Definition
Only the head and body elements can go directly inside your html element. This means every other element must go in either the head or body elements.
Term
Rule 3
Definition
Always give your head element a title element.
Term
Rule 4
Definition
You can put only block elelemnts directly inside your body element. All inline elements and text need to a block element before they go in the body element.
Term
Rule 5
Definition
The only things you can put in an inline element are text and other inline elements. Block elements are not allowed.
Term
Rule 6
Definition
Keep block elements out of your p tags. Paragraphs are for text and inline elements.
Term
Rule 7
Definition
Lists are for list items. Only the li element is allowed in the ul and ol elements.
Term
Rule 8
Definition
You can put text, inline elements, or block elements inside your list items, but make sure you add li tags.
Term
Rule 9
Definition
The blockquote tag only likes block elements. Always put your text and inline elements inside block elements before adding them to blockquote.
Term
Rule 10
Definition
Even though you can nest just about any inline element in another, never nest an a element inside another element. Empty elements like img provide no way to nest other inline elements within them.
Supporting users have an ad free experience!