Shared Flashcard Set

Details

Guide to Strict
HTML 4.01
10
Computer Science
10th Grade
10/21/2008

Additional Computer Science Flashcards

 


 

Cards

Term
The HTML element: Dont leave home without it
Definition
Always start each page with a DOCTYPE, but following that, the HTML element must always be the top, or root, element of your web page. So after the DOCTYPE the HTML tag will start your page and the /HTML tag should end it, with everything else in your page nested inside.
Term
Remember to use both your HEAD and your BODY tags for better HTML.
Definition
Only the HEAD and BODY elements can go directly inside your HTML element. This means taht evey other element must go either inside the HEAD or the BODY element, No exceptions!
Term
What's a HEAD without a TITLE element.
Definition
Always give your HEAD element a TITLE element. It's the law. Failure to do so will result in HTML that isn't compliant. The HEAD element is the only place you should put your TITLE,META,and STYLE elements.
Term
Feed your BODY only wholesome block elements.
Definition
You can put only block elements ( H1,H2..H6, P, BLOCKQUOTES and so on) directly inside your BODY elemen. All inline elements and text need to be inside another blck element before they can go in the BODY element.
Term
Keep block elements out of your inline elements.
Definition
The only things you can put in an inline element are text and other inline elements. Block elements are not allowed under any circumstances.
Term
Keep block elements out of your P element.
Definition
Paragraphs are for text, so keep block elements out pf your paragraphs. Of course it is perfectly fine to use all the inline elements you want in them(EM, A, STRONG, IMG, Q ,and so on).
Term
Lists are for list items.
Definition
Only the LI element is allowed in the UL and OL elements. Why would you want to put anything other than a list item in an unordered or ordered list anyway?
Term
Go ahead, put whatever you want in a list item.
Definition
Webville has very liberal laws when it comes to the LI element: you can put text, inline elements or block elements inside your list items.
Term
Who knew? The BLOCKQUOTE only likes block elements.
Definition
The BLOCKQUOTE element requires one or more bloock elements inside it. While its common to see text directly inside a block quote that isnt up to cose here in Webville. Please always put your text inline elements inside block elements before adding them to a BLOCKQUOTE.
Term
Be careful about nesting an inline element inside another inline element.
Definition
Supporting users have an ad free experience!