120 likes | 275 Views
chapter 4. MARKING UP WITH HTML. A Hypertext Markup Language Primer. HTML Summary. HTML tag’s meaning, not their form give the form of Web pages, … white space is ignored Tags mostly come in pairs; use lower case. Start tag End tag Meaning
E N D
chapter4 MARKING UP WITH HTML A Hypertext Markup Language Primer
HTML Summary • HTML tag’s meaning, not their form give the form of Web pages, … white space is ignored • Tags mostly come in pairs; use lower case Start tag End tag Meaning <html> </html> Surround document <title> </title> Contents of title bar <head> </head> Preliminary material <body> </body> Surrounds main content <p> </p> Surrounds paragraphs <h1>… </h1>… Headings up to 8 <b> </b> Bold <i> </i> Italic <a href='fn'> </a> Anchor reference for link <img src='fn'> Image source reference <br> Break
The Web page resulting from interpreting the file paradoxes.html by a browser
Pathnames for Anchor and Image Tags • Two kinds of paths • Absolute: <a href='http://www.moma.org/index.htm'> • Relative: <a href='magrittebio.html'> • Path names can refer to files at • Same level, <a href='mirobio.html'> • Deeper levels, <a href='artists/20thC/mirobio.html'> • Higher levels, <a href='../../catalog.html'> Use relative paths for files on same site as the page