Lesson 3 - HTML Formatting
Text Formatting Tags TagDescription Defines bold text Defines big text Defines emphasized text Defines italic text Defines small text Defines strong text Defines subscripted text Defines superscripted text
Text Formatting Tags (cont..)
Changing the Font You can type, where fontname2 is your second choice of fonts, should the user not have the first font installed on his system. Size=n, where n is a number from 1 to 7. The default is 3. Values 1 to 7 for basefont correspond to 8, 10, 12, 14, 18, 24, 36 points respectively.
HTML Background The tag has two attributes where you can specify backgrounds. The background can be a color or an image. Bgcolor The bgcolor attribute specifies a background-color for an HTML page. Background The background attribute specifies a background-image for an HTML page. If the image is smaller than the browser window, the image will repeat itself until it fills the entire browser window.
HTML Images In HTML, images are defined with the tag. To display an image on a page, you need to use the src attribute. The value of the src attribute is the URL of the image you want to display on your page. The alt attribute is used to define an "alternate text" for an image. The "alt" attribute tells the reader what he or she is missing on a page if the browser can't load images.
HTML Images (cont..)
Embedding Multimedia One of the things that has made the Web so popular is the fact that you can add graphics, sound, animations, and movies to your Web pages.
HTML Colors HTML colors can be defined as a hexadecimal notation for the combination of Red, Green, and Blue color values (RGB). The lowest value that can be given to one light source is 0 (hex #00) and the highest value is 255 (hex #FF).
Lists Unordered List : the list items are marked with bullets (typically small black circles). An unordered list starts with the tag. Each list item starts with the tag. Ordered List : The list items are marked with numbers. An ordered list starts with the tag. Each list item starts with the tag.
Lists (cont..) Definition List : This is a list of terms and explanation of the terms. A definition list starts with the tag. Each definition-list term starts with the tag. Each definition-list definition starts with the tag. Inside a unordered list, ordered list, and definition-list definition you can put paragraphs, line breaks, images, links, other lists, etc.
Different Types of Ordered & Unordered List Ordered Lists Unordered Lists 1. Text A. Text a. Text I. Text i. Text Text o Text Text
Nested List
Lesson 3 - Table
Table Tables are defined with the tag. A table is divided into rows (with the tag), and each row is divided into data cells (with the tag). A data cell can contain text, images, lists, paragraphs, forms, horizontal rules, tables, etc.
Table (cont..) Headings in a table Empty cells is a table
Table With No Border
Spanning a Cell Across Columns and Rows
Controlling Space In and Around Cells Cell spacing adds space between cells, making the table bigger without changing the size of individual cells. Cell padding adds space around the contents of a cell, in effect, pushing the walls of the cell outward.
Cell Spacing
Cell Padding
Add a Background to a Table
Align The Content in a Table Cell
Tags Inside a Table
Creating Table Using Macromedia Tools
Changing Table Properties Table Properties Row/column properties