Presentation is loading. Please wait.

Presentation is loading. Please wait.

Formatting Text with HTML and CSS. Summary block-level elements. Character-level elements Logical and physical style Special elements: hr,address, quotation.

Similar presentations


Presentation on theme: "Formatting Text with HTML and CSS. Summary block-level elements. Character-level elements Logical and physical style Special elements: hr,address, quotation."— Presentation transcript:

1 Formatting Text with HTML and CSS

2 Summary block-level elements. Character-level elements Logical and physical style Special elements: hr,address, quotation Text alignment Font size and font face Nobr and wbr Using CSS and span

3 Physical Styles physical style tags to change the actual presentation style Bold Italic Monospaced typewriter font Bigger print than the surrounding text Smaller print Subscript Superscript

4 Logical style Logical style tags describe the meaning of the text within the tag, not how it should be presented. strangest left turn #include "trans.h"

5 Horizontal Rules … … Quotation and space

6 Text Alignment Aligning Individual Elements We don't just paint the town red. Aligning Blocks of Elements Serendipity Products Who We Are What We Do

7 Continue… Left aligned text. Right aligned text. Centered text. This text is justified. I'm adding some extra text for padding so that you can see exactly how the justification works. As you can see, the text is expanded so that it is aligned with both the left and right margins.

8 Fonts and Font Sizes Bored with your plain old font? Change it. Relative font: Change the Font size again.

9 Changing the Font Face Sans Serif fonts are fonts without the small "ticks" on the strokes of the characters.

10 Modifying Fonts Using CSS This text will appear in the Georgia font, or, if that font is not installed, the browser's default font. This text is normal sized, and this text is twice that size. This text is 12 pixels tall.

11 and The... element is the opposite of the tag. The text inside the tags always remains on one line, even if it would have wrapped to two more lines without the. The tag (word break) indicates an appropriate breaking point within a line

12 Character Formatting Using CSS Here is some underlined text. Here is some blinking text.

13 Font Properties Here's some italicized text. This Text Uses Small Caps.

14 CSS Properties text-decoration underline, overline, line-through, blink, and none. font-style The three values are normal, italic, and oblique. font-weight Options are normal, bold, bolder, lighter, and 100 - 900. font-family font-variant Sets the font variant to normal or small-caps. text-align Specifies how text is aligned: left, right, center, or justify. font-size


Download ppt "Formatting Text with HTML and CSS. Summary block-level elements. Character-level elements Logical and physical style Special elements: hr,address, quotation."

Similar presentations


Ads by Google