Xtml And Style

Submitted By 099599
Words: 5873
Pages: 24

| * XHTML and Styles are the tools used to build today’s web sites * Expression Web is a graphical tool to build web sites using XHTML and Styles * HTML 5 is the "new" version of HTML for modern browsers (Chrome, Firefox, IE9) and will offer advanced capabilities for interaction and video (but we're not learning these additional features) * Tag: core building block of HTML * Every starting tag has an ending tag <html> </html> * Tags are in lower case * Starting tags and ending tags don't cross * <b><i>Bold and Italic</b></i> is wrong! * All your web pages files should go in a separate folder on your computer * Your "home" page should be named index.html * Open the page in a browser to make sure it looks ok * Then upload it to web.bentley.edu (using Filezilla) to publish it to the world * Div * Lets you define a style for a particular section of a page * Breaks paragraphs
Span
* Changes style of the text it encloses * Apply the style to whatever’s in the span, but no paragraph break after * Example: Style a specific word to be red * This word is <span style="color: #FF0000;">red</span> * Your first page needs to be named index.html * All additional pages can have any name you want (except index.html) but must end in .html * Since index.html comes up autmatically when someone opens your site; ALL OTHER PAGES NEED A LINK ON index.html SO VIEWERS CAN GET TO THEM. * The browser looks first where ever index.html was found so when linking to additional pages just the name of the page is required * <a href =“pagetwo.html" >click here</a> * Will bring up a Web page called pagetwo.html if the browser can find it in the same folder as index.html
Remote links * When linking to files on other computers, Web sites, etc. you must use the complete URL including the protocol * <a href="http://www.bentley.edu">click here</a> * Will connect to the Bentley Web page when “click here” is clicked
Imagine
* If the picture is located somewhere other than the server where index.html is located, you need a link to the picture: * <img src="http://www.bostonsearovers.com/wp-content/uploads/2010/12/ballard-bob_11226_600x4501.jpg" alt="Picture of Bob Ballard" /> * This places a picture of Bob Ballard on your page * For images located on your server the tag is the same but only the file name is required (assuming the picture is in the same folder as index.html) * <img src="pict1.png" alt="My Picture" /> * Note that alt is required for all img tags * Picture file name must match file name in tag EXACTLY
Odds and ends * Tag for a space = <br /> * Only one <body> tag per Web page * Every opening tag requires 1 (one) closing tag * All tags must be in lower case (except within quotes in a tag) * Don’t copy & past quotes, always put them in from the keyboard * Bitmap * Pixels * Size = Quality * Common Formats
.bmp, .jpg, .png, .gif * Vector * Objects * Scalable * Common Formats
.svg, .eps, .ai * Images are made up of pixels * “Short for Picture Element, a pixel is a single point in a graphic image. Graphics monitors display pictures by dividing the display screen into thousands (or millions) of pixels, arranged in rows and columns. The pixels are so close together that they appear connected. The number of bits used to represent each pixel determines how many colors or shades of gray can be displayed…” - http://webopedia.com * Higher the resolution, better the quality * Advantages of GIF files * GIF is the most widely supported graphics format on the Web * GIFs of diagrammatic images look better than JPEGs * Solid colors or no gradations * Advantages of JPEG images