exam review module 8 Flashcards
style syntax
style=”property: value”
example of properties
font-weight
font-size
<b>bold</b> word and this is an <i>italic</i> word.
gives:
This is a bold word and this is an italic word.
<span> tag </span>
used to stylize text within a sentence.
created to help style web pages.
for elements that flow horizontally
This is some <span>text within a span</span> inside of a sentence.
<div> </div>
stacked vertically
more flexible than a paragraph because you can nest a <div> inside of another <div>
can contain non textual elements such as images or tables
can contain margin properties - as shown above - left, right, bottom, top
</div></div>
classes and cascading style sheets
Young children should always <span>look both ways</span> before crossing the street, and only proceed if they are <span>holding hands</span> with an adult.
HTML style classes
used to reduce tediousness of styles
inside of the tag, style classes can be defined