Exercise 11/14 add white space; How do I do this? Does it want me to just break up the lines and where?


#1

<!DOCTYPE html>
<html>
<body><h1>Whitespace</h1>
    
<p>Whitespace and indentation make html documents easier to read.</p>
  
</body>
</html>

https://www.codecademy.com/courses/freelance-one-unit-1/lessons/intro-html/exercises/white-space?program_content_id=9fd8c313390d1fa8fdc304ed1a6924f9&program_id=3331580ca1c8b6a581b7e7b14893e36c


#2

Nvm figured it out just needed to space out the rest of the elements.


#3

Basically as it says to make it easier to read.

For example take this bit of code:

<html><head></head><body>
<p> I am a paragraph, hello world </p> <img src="https://s3.amazonaws.com/codecademy-images/CC_Symbol_Blue.png"></body></html>

The above could is not really easy to read, looks messy and not neat.

Look at the below:

<html>
<head>

</head>
<body>
   <p> I am a paragraph, hello world </p> 
   <img src="https://s3.amazonaws.com/codecademy-images/CC_Symbol_Blue.png">
</body>
</html>

Compare the two.


Edit:

Typed answer out & posted then saw your reply


#4

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