1 / 5

HTML Programming

HTML Programming. More HTML Hyperlinks Image. Hyperlinks. perhaps the most important HTML element is the hyperlink, or ANCHOR <a href=" URL ">…</a> where URL is the Web address of the page to be displayed when the user clicks on the link

dholt
Download Presentation

HTML Programming

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. HTML Programming • More HTML • Hyperlinks • Image

  2. Hyperlinks perhaps the most important HTML element is the hyperlink, or ANCHOR • <a href="URL">…</a> where URL is the Web address of the page to be displayed when the user clicks on the link if the page is accessed over the Web, must start with http:// if not there, the browser will assume it is the name of a local file • <a href="URL" target="_blank">…</a> causes the page to be loaded in a new window <html> <!-- page12.html --> <head> <title>Title for Page</title> </head> <body> <p> <a href="http://www.unikom.ac.id"> Open UNIKOM Website</a> <br> <a href="page11.html" target="_blank"> Open page11 in a new window</a> </p> </body> </html>

  3. Hyperlinks (cont.) <html> <!-- page11.html --> <head> <title>Title for Page</title> </head> <body> <p align="center"> [ <a href="#HTML">HTML</a> | <a href="#HTTP">HTTP</a> | <a href="#IP">IP</a> | <a href="#TCP">TCP</a> ] </p> <p> Computer acronyms: <dl> <a name="HTML"></a><dt>HTML <dd>HyperText Markup Language <a name="HTTP"></a><dt>HTTP <dd>HyperText Transfer Protocol <a name="IP"></a><dt>IP <dd>Internet Protocol <a name="TCP"></a><dt>TCP <dd>Transfer Control Protocol </p> </body> </html> for long documents, you can even have links to other locations in that document • <a name="ident">…</a> where ident is a variable for identifying this location • <a href="#ident">…</a> will then jump to that location within the file • <a href="URL#ident">…</a> can jump into the middle of another file just as easily

  4. Images can include images using IMG • by default, browsers can display GIF and JPEG files • other image formats may require plug-in applications for display <img src="filename" alt="alternate text" /> again, if file is to be accessed over the Web, must start with http:// (if not, will assume local file) <html> <!-- page12.html --> <head> <title>Title for Page</title> </head> <body> <div style="text-align:center" <p><img border="0" src="heckerb.jpg" width="362" height="539"></p> <p>Barbara Hecker</p> </div> </body> </html>

  5. End of LectureNext time, more HTML

More Related