Hi everyone,
I was hoping to get some clarification on a question I just stumbled upon while working through the Introduction to HTML in the Full-Stack Dev career path. So the question is regarding the two spaces of indentation after a parent element. While I was working through the course it asked me to add div tags after which I should indent (two spaces) the tags afterwards, which in this case was an h2 tag. That I understand, however, it later asked me to add p tags under the h2 tags. This is where I got slightly confused should I be indenting the p tags underneath the h2 tags so they are the children tags of the h2 tags or would they be considered sibling tags to the h2 tags? Is there a correct way or is it personal preference? In my mind they should be indented but when I went onto the next lesson then it reformatted the code so that the h2 and p tags were siblings to each other.
I am not sure how to link the exercise I was doing, but it was under the Full-Stack Developer career path > Learn HTML: Elements > Introduction to HTML lesson.
Thanks for the help in advance!
Alex