HTML Code HTML can be written on the simplest text programs. A web page is defined by the tag
Tags The commands that make HTML work are called tags Tags are distinguished by their characters. Any time you open a tag you have to close it
Try this My coding example I’ve written this page with code Hello, World Wide Web! Please visit my home page Composed with care by: Keith © 2008 and beyond
Proper Nesting Tags must be properly “nested.” End tags by starting with the most recent and work your way back out. “First in, last out” A link, some of which is emphasized
Special Features Character Entities t.htm t.htm Background Color
Separating Sections divides the document into separate, distinct sections. Can be labeled for reference for other tags, for example with the id attribute. signals the start of a new paragraph, giving a blank line plus extra vertical space. Separate paragraphs can be aligned differently. is a simple line break.
Text Elements Size. H ey! –Can be value from 1 – 7 Color. Sunny skies Horizontal Line. –Can be adjusted.
Images The code must reference the image source. Images can be aligned with code. And then write text that will wrap around it. You can choose to make it a link, with or without a border.
Lists Unordered Lists one example second example third example is nested Ordered Lists Capital letters is type A lowercase is type a Capital Roman is type I lowercase roman is type i
XHTML Needs All elements nested correctly End tags for all tags, including empty elements Case sensitivity. A is not a Quoted attribute values Make use of special character entities