Documentation page :python

need feedback
https://codepen.io/akashsagar2805/pen/vYyEjrj

Hi @akashsagar2805 !

I think your page looks good.

Just a couple of things
You have a couple of errors in your html.
Run your code through the html validator
https://validator.w3.org/

The same goes for your css.
Use the css codepen analyzer

Keep up the good work!

Your page looks good @akashsagar2805. Some things to revisit;

  • Codepen provides the boilerplate for you. It only expects the code you’d put within the body element in the HTML editor. (No need to include the body tags). For anything you want to add to the <head> element click on the ‘Settings’ button, then HTML and add it into the ‘Stuff for <head>’ box.
    • For instance links to fonts go in the box labeled ‘Stuff for <head>’ (Noticed you have ‘Open Sans’ for the body element in CSS but you don’t link to it.)
  • Do not use the <br> element to force line breaks or spacing. That’s what CSS is for.
    • Reference MDN Docs
    • Nest multi-line <code> snippets in <pre> </pre> tags in HTML to preserve whitespace and line breaks.
      Or skip the pre element and do the following in CSS;
      code {
        white-space: pre-line;
      }
      
1 Like

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