ITP104_Week2

ITP104_Week2 - ITP 104 Week 2 Basic HTML Trina Gregory...

Info iconThis preview shows pages 1–7. Sign up to view the full content.

View Full Document Right Arrow Icon
ITP 104 Week 2 Basic HTML Trina Gregory Spring 2010
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
HTML H yper t ext M arkup L anguage • Consists of 2 components – Text • Content of the page – Tags • Instructions for how to format and display web pages • Examples – Format text in certain styles and colors – Insert media such as images, sounds, videos, Flash, etc. – Create divisions and containers in the page – Administrative details of the page including scripting
Background image of page 2
Tags • The majority of HTML tags define "states" or modes that you turn on and off. – For instance, the "b" tag turns the display "bold" mode on and off. • HTML: "Hello <b>World</b>." • Display: "Hello World ." • All tags are defined or delineated by greater- than and less-than brackets. – Most tags are started with their core tag (e.g. <b>) and then ended or "closed" by having their core tag repeated with a slash before it (e.g. </b>)
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Tags Tags that insert items do not have modes but rather are one-time instructions. – Examples: images, horizontal lines <hr>, line breaks <br> – Do not technically “close” because they are complete when first called. There is a higher Web standard called XHTML that requires all tags to be closed. – Good habit to end tags that do not close with a slash at the end. – “Hello<br>World” “Hello”<br />World” • Both create the same Web page result. • Better practice to do the one on the right. – Never internally close a tag that is modal or closes itself. • <b /> would be incorrect because the bold tag will close itself eventually using </b>
Background image of page 4
HTML & XHTML • HTML is not case-sensitive (tags, not content) – Ex. <Body> = <BODY> = <body> • XHTML is case-sensitive – Ex. <Body> <BODY> <body> • Good practice to use all lowercase when writing HTML code – Will be compatible with XHTML validation
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
HTML Tags HTML tags are made of up two components – Core "tag" or name – Additional attributes • Consist of an attribute name followed by an equal sign followed
Background image of page 6
Image of page 7
This is the end of the preview. Sign up to access the rest of the document.

This document was uploaded on 05/25/2010.

Page1 / 22

ITP104_Week2 - ITP 104 Week 2 Basic HTML Trina Gregory...

This preview shows document pages 1 - 7. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online