Shared Flashcard Set

Details

Guide to Strict HTML 4.01
Rules for writing code to Strict HTML 4.01 standards
10
Computer Science
10th Grade
10/21/2008

Additional Computer Science Flashcards

 


 

Cards

Term
List items should only be put in ordered and unordered lists.
Definition
Only the 'li' element is allowed in teh 'ul' and 'ol' elements. Why would you want to put anything other than a list item in an unordered or ordered list anyway?
Term
Nest inlines elements in other inline elements carefully.
Definition
while you can nest just about any inline element in another, there are a couple of case that don't make sense. Never nest an 'a' element inside another 'a' element because that wouldb e too confusing for our visitors. Also, empty elements like 'img' provide no way to nest other inline elements within them.
Term
The 'blockquote' element requires one or more block elements inside it.
Definition
While it's common to see text directly inside a block quote, that isn't up to code. Please always put your text and inline elements inside block elements before adding them to 'blockquote'.
Term
Put whatever you want in a list item.
Definition
You can put text, inline elements, or block elements inside your list items!
Term
Keep block elements out of the 'p' element.
Definition
Paragraphs are for text, so keep block elements out of the 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
Always start each page with a DOCTYPE, but following that, the 'html' element must always be the root element of your Web page.
Definition
So, after the DOCTYPE, the 'html' tage will start your page and the '/html' tag should end it, with everything else in your page nested inside.
Term
Only the 'head' and 'body' elements can go directly inside your 'html' element.
Definition
This means that every other element must go inside the 'head' or the 'body' element.
Term
Always give your 'head' element a 'title' element.
Definition
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
You can put only block elements ('h1', 'h2'...'h6', 'p', 'blockquote', and so on) directly inside you 'body' element.
Definition
All inline elements and text need to be inside another block element before they can go in the 'body' element.
Term
The only things you can put in an inline element are text and other inline elements.
Definition
Block elements are not allowed under any circumstance.
Supporting users have an ad free experience!