Shared Flashcard Set

Details

html 4.01 rules
rules of html
8
Computer Science
10th Grade
10/21/2008

Additional Computer Science Flashcards

 


 

Cards

Term
the html element: don't leave home without it.
Definition
Always start each page with a doctype, but following thath, the html element must always be the top, or root, elelment of your web page.so, afeter 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 you head tag and your body tag for better html.
Definition
only the head and body elements can go directly inside your html element.this means that every other element must go either inside the head element or the body element. No exceptions
Term
feed you body only wholesome block elements
Definition
you can put only block elements(h1, h2,...,h6, p, blockquote, and so on) directly inside your body element. all inline elements and text need to be inside another block 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 you p element.
Definition
paragraphs are for text, so keep block elemetns out of your pargraphs. 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
list are for list items.
Definition
only the li element is allowed inthe ul and ol elements. why would you want to put anything other thatn a list itme 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 elemetns inside you list items.
Term
what's a head without a title?
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 elem
Supporting users have an ad free experience!