Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML

hikeem sosa
hikeem sosa
870 Points

why can't i see my code without tags and such when i run it?

hi there, i am a person who is currently studying basic HTML type code. (read, learn, code then test) i test my code on text editors such as: github and atom. atom broke (the live server thingy) so i then copy my code back to github and it's not showing the way i wish to see it. but my other code is so hmm?

<!Doctype html>
<html>
<head>
  <title>Ragna the Bloodedge</title>
</head>
<body>
  <p>fangs</p><img src="http://pm1.narvii.com/5678/0007c21d901555c88f75ac98bb1f7901d9ad132e_hq.jpg">
<p>i want this to be a slideshow and maybe smaller.</p>
<img src="http://pre04.deviantart.net/32a3/th/pre/f/2013/334/2/0/ragna_the_bloodedge_wallpaper_by_raze808-d6w6zl1.png">
<footer>
</footer></body>
</html>

this is when i use the webs source of the location to the images assuming it matters.

<!Doctype html>
<html>
<head>
  <title>Ragna the Bloodedge</title>
</head>
<body>
  <p>fangs</p><img src="0007c21d901555c88f75ac98bb1f7901d9ad132e_hq.jpg">
<p>i want this to be a slideshow and maybe smaller.</p>
<img src="ragna_the_bloodedge_wallpaper_by_raze808-d6w6zl1.png">
<footer>
</footer></body>
</html>```
now this is when i download the images into the file area and they gain a new name from doing so and none of this code registers again.
```<!DOCTYPE HTML>
<html>
<head>
<title>a1 html code testing h numbers
</title>
</head>
<body>
<img src="https://upload.wikimedia.org/wikipedia/en/thumb/2/2d/A1_Telekom_Austria_logo.svg/1200px-A1_Telekom_Austria_logo.svg.png">
<h1>hi there im h1</h1>
<h2>hi there im h2</h2>
<h3>hi im h3</h3>
<h4>hi im h4</h4>
<h5>hi im h5</h5>
<h6>hi im h6 and should be the last</h6>
</body>
</html>

now here is another basic html code of mine that does run properly. thanks for your help also.

1 Answer

Try using <!DOCTYPE html> (all caps) to start off with. Sometimes all caps in this matters.

You should wrap your text in tags because that allows the HTML document to interpret the text for what it is, text. If you don't, it might get read as potential code and mess up what you're trying to do. Pardon me if this paragraph isn't what you're asking, as I had a little bit of difficulty understanding your question.

If this doesn't help, please try to specify your question a little more clearly.