100 likes | 118 Views
<html> This tag is used to begin each html document. Html means HyperText Markup Language. BASIC HTML PROGRAMMING ETEC 562 Facilitated by ROBERT CALVERY. Every webpage must include the following in order to be displayed in a browser. <html> <head> <title> </title> <body> </body> </head>
E N D
<html> This tag is used to begin each html document. Html means HyperText Markup Language
BASIC HTML PROGRAMMING ETEC 562 Facilitated by ROBERT CALVERY
Every webpage must include the following in order to be displayed in a browser. <html> <head> <title> </title> <body> </body> </head> </html>
Not all of the tags have to use an ending tag. Examples that do not require an ending tag are: <img src> Tells the browser where to find the the image to be displayed on the webpage. <frame> Creates a split section in a webpage. <br> Creates a break in a line of text. <p> Creates a paragraph break. <hr> Creates a horizontal line on the page.
When you have multiple tags you must close them in last created -- first closed order. Example: <b> <i> This is bold and italicized text. </i> </b>
Creating an EMAIL LINK <body> <p>My email address is <a href = "mailto:robert_7_calvery@yahoo.com"> Robert Calvery </a> . Click the address and your browser will open an e-mail message and address it to me. </p> </body>
HEADER SIZES <body> <h1>Level 1 Header</h1> <h2>Level 2 header</h2> <h3>Level 3 header</h3> <h4>Level 4 header</h4> <h5>Level 5 header</h5> <h6>Level 6 header</h6> </body>
Counter-Controlled Repetition with for structure. <html xmlns = "http://www.w3.org/1999/xhtml"> <head> <title>Counter-Controlled Repetition</title> <script type = "text/javascript"> for ( var counter = 1; counter <= 7; ++counter ) document.writeln( "<p style = \"font-size: " + counter + "ex\">XHTML font size " + counter + "ex</p>" ); </script> </head> <body></body> </html>
Creating HYPERLINKS <body> <h1>Here are my favorite sites</h1> <p><b>Click a name to go to that page.</b></p> <p><a href = "http://www.dogpile.com">Dogpile</a></p> <p><a href = "http://www.prenhall.com">Prentice Hall</a></p> <p><a href = "http://www.yahoo.com">Yahoo!</a></p> <p><a href = "http://www.usatoday.com">USA Today</a></p> </body>
Using Images as Navigation Buttons <body> <p> <a href = "links.html"> <img src = "buttons/links.jpg" width = "65" height = "50" alt = "Links Page" /> </a><br /> <a href = "list.html"> <img src = "buttons/list.jpg" width = "65" height = "50" alt = "List Example Page" /> </a><br />