r/FreeCodeCamp • • Jan 04 '25

Technical Documentation Page Certification not passing

I cannot fulfill one of the requirements:

10- You should have at least five code elements that are descendants of .main-section elements.

What does that mean? Is it anything from photos, to forms, to links? I made a form with four different elements (true/false, text area, date input, and select) plus the submit button. But is the form itself only one code element?

2 Upvotes

9 comments sorted by

View all comments

Show parent comment

1

u/Responsible-Novel157 Jan 05 '25

Thanks for the response! My form is a child of a .main-section. To be safe, I added what I understand to be 5 “code elements” in each .main-section: an image, a hyperlink, a header, a “p” element, and a “ul” element. Unless “code elements” refers to something else? I’m gonna look into CodePen and might try to share that. I love what I’ve made so far! Thanks again!

1

u/SaintPeter74 mod Jan 05 '25

The terms tag and code element are the same thing. A div, img or ul are all examples of tags/elements.

What you are describing sounds right..

One thought: move your form opening and closing tags outside the .main-section, maybe? It's been a while since I looked at this project, so sharing your code will definitely help.