This forum is now read-only. Please use our new forums at discuss.codecademy.com.

HTML Basics Forum

View Course

978 points
51649d3b4cdb759392000d3e_193280166
Submitted by
Linda Liukas
over 4 years ago

Tips and tricks to HTML Basics

  • Did you spell all your tags correctly?
  • Did you include <body>,<head> and <html> tags?
  • Make sure you remember to close the tags in the right order. They should nest, so the most recent one opened should be the first one closed: {()} rather than {(}).
  • Make sure your image titles have the correct name and extension (.jpg, .png). The proper format is this: <a href = "the URL goes here"> <img src = "the URL of the image goes here"/> </a>

Think it's a technical error?

Please go through the Troubleshooting Guide.

  • Did you update your browser to the latest Chrome or Firefox? (We don't support IE or Safari)
  • Did you clear your cache?
  • Did you make sure you're not accidentally zoomed in/out (click ctrl+0 or cmd+0)?

4 votes

permalink

Are the ' " ' and closing ' / ' necessary to render the img and url tags? Or is it just people-friendly formatting?

571 points
513c5a5eb30e3ba63f005fa5_120471070
Submitted by
Christopher
over 4 years ago

6 Comments

51649d3b4cdb759392000d3e_193280166 Linda Liukas over 4 years ago

Yup, they are necessary :)

54e1100895e378b4e60072dd_948028441 Wrytam over 4 years ago

I tried running a small code without /, except that the closing tag requires one.... what is the reason for this?

B991bfea775ee34abc262fbf62c3744e?s=140&d=retro niche989 over 4 years ago

Thank You !

Picture Makgotso Mokiti over 4 years ago

Awesome! That is good advice! Thank so much! :):):):):):):):):):):):):):):):):):):)

522dd2b880ff33133300a876_452648582 naldy sanggalang about 4 years ago

your website really help us thank you for helping us to encode

52cb10b27c82cabe0b00b35b_416566150 Jacob Gadea almost 2 years ago

Thank you


3 votes

permalink

Ok guys try this:

<a href="your link here"><img src="Your local/html link here"/></a>

191 points
51c547f99c4e9d8028008f16_680577081
Submitted by
Asim Poptani
about 4 years ago


2 votes

permalink

If any one is interested in creating their own website, ik of a great free webhost. They don't require you to have ads and stuff on your site, I made my website with them

My website: http://www.ambiguousnet.co.nr

check them out: http://www.000webhost.com

329 points
516d6e1bafa3ed07510002b5_247374750
Submitted by
RH
about 4 years ago

7 Comments

C70bc3c15dbed020b1cd35c272c293f8?s=140&d=retro eugeneharmon4gmail.com about 4 years ago

thanks..........

0ffd4c3021636c652a3efa4835d2c060?s=140&d=retro Safoku almost 4 years ago

No offense, but I personally like x10hosting.

0b0a2da949819b85a2e0b362cbd70e90?s=140&d=retro niggyyy over 3 years ago

whTS the difference between a pic url and web url

Picture Ahmad imran almost 3 years ago

what is wrong here??/ im stuck

Picture Ahmad imran almost 3 years ago

it says to add description

516d6e1bafa3ed07510002b5_247374750 RH over 2 years ago

x10Hosting is good too lol 1 year later

Picture Ritwik Bajaj about 2 years ago


0 votes

permalink

I'm stuck here:

<!DOCTYPE html>




<img src="http://p.globalsources.com/IMAGES/PDT/B1049026720/Soccer-Ball.jpg"/>

<a href="http://http://www.dreamstime.com/"><img src="http://thumbs.dreamstime.com/z/basketball-ball-24490843.jpg" /></a>


</body>

133 points
20afaea5fc1fd02517ddb66e98ab5224?s=140&d=retro
Submitted by
carlos94587
about 4 years ago

4 Comments

363412cabdc7773e2690c62e4f4090fc?s=140&d=retro cepaov92xx almost 2 years ago

me too

363412cabdc7773e2690c62e4f4090fc?s=140&d=retro cepaov92xx almost 2 years ago

I put that but it ask me to close the tag

363412cabdc7773e2690c62e4f4090fc?s=140&d=retro cepaov92xx almost 2 years ago

Maybe I used wrongly the syntax

B9378cabc2d58864fef66a04797f988b?s=140&d=retro SuperFireW4ll almost 2 years ago

From what I have tested, it should work as normal but I did delete the space from <image src= " and ran <image src=" which shows both pictures.

So it could be a bug or there might be something weird with both lines of code.


0 votes

permalink

<!DOCTYPE html>






</body>

What am I doing wrong? It doesn't let me move onto the next stage?

Shaz

23 points
B623cdb546af194ef41d39274478bd04?s=140&d=retro
Submitted by
khansq
almost 4 years ago


0 votes

permalink

<!DOCTYPE html>


Ninja's and Ducks




331 points
54f7373895e3783d9d002536_37095792
Submitted by
Hill Dong
over 2 years ago

2 Comments

54f7373895e3783d9d002536_37095792 Hill Dong over 2 years ago

<!DOCTYPE html>


Ninja's and Ducks




Picture Antonio Lima about 2 years ago

valeu!


0 votes

permalink

I cant do it... it wont even let me check anymore if I'm right or wrong, it has the little settings symbol...

26 points
9c5a4206192b0142924ba32a39be8e2f?s=140&d=retro
Submitted by
NellyNell
almost 2 years ago


-1 votes

permalink

where is the URL image thing on a website?????!?!?

30 points
51be61b452f863593e024fd8_692808463
Submitted by
Andrew0616
about 4 years ago

4 Comments

Picture Joakim Nygård Skjellerud almost 4 years ago

Right click and copy URL image :)

51be61b452f863593e024fd8_692808463 Andrew0616 almost 4 years ago

oh now I get it thx!

Picture Erlan Seisembai almost 2 years ago

what am i doing wrong here?

Picture Erlan Seisembai almost 2 years ago

is it correct?


-2 votes

permalink

not working

24 points
Fab6d0a8584e96267e7b81f3b9f6c411?s=140&d=retro
Submitted by
virus316
over 4 years ago


-2 votes

permalink

I fixed already... Thanks guys...

133 points
20afaea5fc1fd02517ddb66e98ab5224?s=140&d=retro
Submitted by
carlos94587
about 4 years ago

1 Comment

A041326ef3843b206023192c9ecba55c?s=140&d=retro Miguel Ramirez about 2 years ago

i dont under stand it


-3 votes

permalink

<!DOCTYPE html>




<img src="http://www.urbandead.com/im/dead.gif"/>
<a href="http://www.urbandead.com/im/dead.gif">Click here</a>






</body>

//It is still telling me this is wrong? Am I missing something? The first image pops up fine but I think the problem is with Click here It shows up as a link that says Click Here and it opens properly. But the Lesson still says I have an error. I have no clue what I'm doing wrong. Any help would be appreciated.

311 points
Picture
Submitted by
Michael Owens
over 4 years ago

14 Comments

5139a7badede5e22a20013bb_686401821 मिल्टन नीहोरा over 4 years ago

I am facing the same issue. Please let us know what we are doing wrong

Fa0ee9406011b4f0dad1614ea7139193?s=140&d=retro N/A over 4 years ago

Go back to the assignment that you already did this in, copy and paste.

513e5d6b27de02beae000b17_869736427 Nazrul over 4 years ago

this should work...

4fad361039b4440003015392_654630594 Kim over 4 years ago

well this is my code but they keep telling me that its wrong

<img src=" http://s3.amazonaws.com/codecademy-production/profile_thumbnail/4fd2c0e23b6fcb0003000209_567678169.jpg" />
I've tried many times but still its not working

08182c620c06614bd33c361f7bc147ac?s=140&d=retro Thomas Gundelund Jensen over 4 years ago

Thx for that one

54bada5551b887c6ef0021a3_967752727 Tim Saunders over 4 years ago

@IGN--Naz_lamp - your first tag shouldn't have a slash "/" in it, a slash indicates that the tag is closed eg code here

54bada5551b887c6ef0021a3_967752727 Tim Saunders over 4 years ago

@Michael Owens, it looks like you're missing some of your html tags. Reset the code in the lesson and try again, most of the tags you need are there when you start.

5191e91d470736f68e0019d1_857584848 Seongmin Hong over 4 years ago

I have the same issue.

Fab6d0a8584e96267e7b81f3b9f6c411?s=140&d=retro virus316 over 4 years ago

do an example dode

51f78d179c4e9d6d7c0025ee_985617656 A yee sha sha over 4 years ago

yes plz

Picture Jeremy Law about 4 years ago

Hi. The problem is that you are supposed to have 2 images (1 that is normal, and one that links) and then AFTER that, you also have to have one link that is text. Hope this helps :)

079aba1f58359926e40711b0ba75a5ac?s=140&d=retro Lorenzo Dela Rama about 4 years ago

whats the text

Picture Michael Owens about 4 years ago

Thanks for the replies everyone but I finally figured out what I was doing wrong.

51d35ec7282ae3f1150043d6_394602701 ManjuRD about 4 years ago

Guys try this it will help you to execute