Html BASICS please help!


#1

<!DOCTYPE html>
<html>
	<head>
		<title></title>
	</head>
	<body>
	
     	<img src="https://s3.amazonaws.com/codecademy-blog/assets/f3a16fb6.jpg"/>
     	
     	<img src="http://www.elamyslahjat.fi/blogi/wp-content/uploads/2015/01/syd%C3%A4n.png"align=bottom/>
    </body>
</html>

SO MY PROBLEM IS i need to know how to get my second pic below the first one!

PLEASE HELP!!!!!


#2

Only supported in CSS i think, sry .


#3

But why do you need it which exercise ?


#4

You can insert a simple break:

<img src="#"><br>
<img src="#">

<br> is obviously the break. This is a simple trick, try not to use it when making a layout for your page


#5

I don't understand well what you want to do . In your case , the second picture should be automatically below the first one.


#6

@dubstepshadow, this is html basic exercise 11 (link), it isn't needed, kukkanam just wants something which is not part of the exercise

@chaoki, images are inline elements. They will sit beside each other rather then above/below each other.


#7

THANK U!! i spend half an hour looking for how in H**** to do that


#8

@stetim94
Ah i already thought why not use CSS, because that makes it a bit better, and in my opinion easier.


#9

break is also pretty simple? But yes, you can use css:

<style>
  img { display: block; }
</style>

or you can wrap your images in block elements:

<div>
  <img src="#">
</div>
<div>
  <img src="#">
</div>

There are so many options, but there is no css covered at this point in the track, so then quit a lot of explaining is required, while break is pretty self explaining.


#10

i thought that was the problem cos i cudnt get pass this exercise but it didnt work! do u guys see what iam doing wrong with my code..? :confused:


#11

No, the exercise wants you to use xml syntax, include a space between .jpg" and /> in both images


#12

easier to get it perfect.. didn't finish my sentence. :smile:


#13

yes, css gives you more control, so you can perfect it, which you can't do with a break.

But then again, quit a bit of explanation would be required


#14

THANK U! stetim94! awesome to get help so fast here!!


#17

Well, if you do want our help please create a new topic with your code + error message + question. There is nothing we can do with: I don't know how to finish