i went back to creating catphotoapp after seeing the new html. in step six ,i was told to indent h2, comment and p but i don’t know how to. please someone should put me through.
indenting is simply adding spaces before something to place it further into the code than something else. It looks like this:
<body>
<!-- This line and the line below are indented 2 spaces -->
<h1>A Header :0</h1>
</body>
Does that make sense?
please is it by using enter to create the space or commenting?
it’s using the space, not the enter key
i used the space and on checking my code,its showing me this:
Your h2
element should be below the main
element’s opening tag and its opening tag should start 6 spaces over from the start of the line.
count how many white spaces are present at the start of the line, make sure there are six!
<h2>Cat Photos</h2>
<!-- TODO: Add link to cat photos -->
<p>Click here to view more cat photos.</p>
please take a look at the above. i counted six spaces at the start of the line that is before ‘h2’, comment and ‘p’ and it gave me this:
Your h2
element should be below the main
element’s opening tag and its opening tag should start 6 spaces over from the start of the line.
what do you think?
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.