Dont understand spacing


#1


https://www.codecademy.com/pt/courses/web-beginner-en-9x6JW/0/7?curriculum_id=50579fb998b470000202dc8b


Saids that i am coding correctly, but the spacing after "im..19 yrs of age" is a problem. Somebody mentioned that i should use "span" to make it work better, but i am just beginning to code and haven;t learned that yet...im beginning unit 3


<!DOCTYPE html>
<html>
	<head>
		<title>Adalid Aparicio Cespedes</title>
	</head>
	<body>
	<img src="http://theroostmag.com.au/wp-content/uploads/2013/01/2012-18-150x150.jpg"/>
	<p>Hi, im <p style="font-size:22px"><em>19</em></p>yrs of age and was born in<p style="font-family:Copperplate">Mexico City</p>.I am a male Hispanic and like riding my MTB.</p>
	   <ul>
	     <li><p style="color:blue">Interest</li>
	      <ol><li><strong>working hard</strong></li>
	      <li>seeing my girlfriend</li>
	      <li>driving</li></ul>
	     <ul><li>Favorite foods</li>
	     <ol><li>tortas cubana</li>
	     <li>enchiladas</li>
	     <li>tacos</li></ul>
	     <ul><li>Jobs</li>
	     <ol><li>programming</li>
	     <li>lanscaping</li>
	     <li>line cook</li></ul>
	     <ul><li>Shoes</li>
	     <ul><li>Work shoes</li>
	     <li>Airmax</li>
	     <li>Jordans</li></ul>
	</body>
</html>


#2

may be the font size that is causing the 19 to not fit on the same line with"Hi, im...."


#3

Hi,

You put it in another paragraph thus it goes on another line..

If you want to style a few words from a paragraph as you said someone told you to use span that is correct.

Here's an example:

<p> My name is:  <span style="color: blue">James </span>and I am 99 years old </p>

#4

ok that makes a lot of sense, Wow i tried it and it worked! thanks, weird that i havent been tought that by now(span style)


#5

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.