<html>
<body>
<main> <h1>CatPhotoApp</h1> <h2>Cat Photos</h2> <p>Click here to view more cat photos.</p>
<h1>CatPhotoApp</h1>
<h2>Cat Photos</h2>
<!-- TODO: Add link to cat photos -->
<p>Click here to view more cat photos.</p>
</main>
</body>
</html>
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36
Challenge: Learn HTML by Building a Cat Photo App - Step 6
<html>
<body>
<main>
<h1>CatPhotoApp</h1>
<h2>Cat Photos</h2>
<!-- TODO: Add link to cat photos -->
<p>Click here to view more cat photos.</p>
</main>
</body>
</html>
If you notice over here h1 and h2 tag have 6 spaces(blank space) before them but the p tag have only 4 spaces(blank space) before it and is not aligned properly.
Just add 2 more spaces before the p tag by spaces i mean put the cursor before p tag and hit the space key on your keyboard twice so that the p tag is aligned same as the h1 and h2 tag.
as part of best practice and for easy readability, it is good to indent your codes.
for example you have an html element, and within it a head element and within it you have a p element. this can be written as:
<html>
<body>
<p>
</p>
</body>
<html>
which is fine, however best practices is to have it this way: