| View previous topic :: View next topic |
| Author |
Message |
Brewster Pilot
Joined: 25 Feb 2006 Posts: 604 Location: Helsinki, Finland
|
Posted: Wed Mar 22, 2006 2:42 pm Post subject: |
|
|
| Gizzmoe wrote: | | ChokerSandwich wrote: | The imageshack html code i just posted. Just a screenie of what it looks like would be nice. |
Why don´t you check it yourself? Paste the HTML code from your first post into Notepad, replace the first part from <a href=... to </a> with the new code, save it as test.html, then open it with your browser. |
Didn't know I could do that, thanks! |
|
| Back to top |
|
 |
Brewster Pilot
Joined: 25 Feb 2006 Posts: 604 Location: Helsinki, Finland
|
Posted: Wed Mar 22, 2006 2:46 pm Post subject: |
|
|
It looks like this and the image is not clickable. What did I do wrong?
 |
|
| Back to top |
|
 |
Gizzmoe
Joined: 22 Mar 2005 Posts: 3011 Location: Düsseldorf, Germany
|
Posted: Wed Mar 22, 2006 2:50 pm Post subject: |
|
|
| ChokerSandwich wrote: | | It looks like this and the image is not clickable. What did I do wrong? |
Wrong copy/paste I would say... Try again!  |
|
| Back to top |
|
 |
Jesper
Joined: 14 Sep 2002 Posts: 2063 Location: Denmark (GMT+01.00)
|
Posted: Wed Mar 22, 2006 3:22 pm Post subject: |
|
|
Each document in HTML language must have a !DOCTYPE declaration and it must be in the top.
| Code: | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
There must be a <head></head> section that contains:
| Code: | <head>
<title>Some title of your page</title>
</head> |
There should only be one set of <body></body> and inside that is where you place all your html code
All documents must end with </html>
All <img> tags must have the attribute alt=""
Here is an example of a valid webpage:
| Code: | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Some title of your page</title>
<style type="text/css">
.img{width:200px;height:150px;border-style:none}
</style>
</head>
<body>
<h1>Click on the image to open a high-resolution version</h1>
<a href="http://img145.imageshack.us/img145/7782/grab00017rh7co.jpg"><img src="http://img145.imageshack.us/img145/3951/grab00017rh8od.jpg" alt="Some Alt. Text" /><br />Click on the Image to Enlarge it</a>
</body>
</html> |
Learn HTML here
Last edited by Jesper on Wed Mar 22, 2006 3:26 pm; edited 2 times in total |
|
| Back to top |
|
 |
Brewster Pilot
Joined: 25 Feb 2006 Posts: 604 Location: Helsinki, Finland
|
Posted: Wed Mar 22, 2006 3:23 pm Post subject: |
|
|
| Tack Jesper! |
|
| Back to top |
|
 |
Jesper
Joined: 14 Sep 2002 Posts: 2063 Location: Denmark (GMT+01.00)
|
Posted: Wed Mar 22, 2006 3:27 pm Post subject: |
|
|
Ingen årsag (Most Welcome)  |
|
| Back to top |
|
 |
|