do you have any tips for someone relearning html? my classmates are begging me for some but i can't tell them it's "just instinct" to know how gkdhhfhshf
Hello! yes, I do have some tips! I'm glad you asked 😀
First, you're going to want to make sure that all your code is in proper syntax. It's easy to open tags ( <p> ), but it's also easier to forget about closing tags ( </p> ) properly. Since you said it's a relearning process, I'm sure that will be compensated for by your muscle memory.
Keep in mind that unique elements like images ( <img> ), line breaks ( <br> ), and horizontal dividers ( <hr> ) do not require a separate closing tag!
Somethihg useful, use ( <!-- comment --> ) to leave notes for yourself or others; these stay invisible on the live webpage. Like this, you can organise your thoughts without worrying at all!
This is important! Always start your file with ( <!DOCTYPE html> ) so modern browsers know to render it using the latest HTML5 standards! That way you won't have any unnecessary headaches!
If you're aiming for a more consistent webpage code, you can also define your target audience's language inside the root element by writing ( <html lang="en"> )! It provides more clarity to the system!
Don't forget to place character encoding ( <meta charset="UTF-8"> ) inside your ( <head> ) block to prevent text rendering glitches!! This is something many forget (including me when I was a beginner 😅) and is honestly kind of a headache to figure out when you don't realise what's going on.
And! Keep metadata, stylesheets, and page titles in the ( <head> ) section, and place all viewable page content in the ( <body> ). It may not look like it matters much, but this is coding! Even a little hyphen can cause a lot of trouble!
Lastly, try to avoid writing code on fancy applications like Microsoft Word. It's better to stick with simple text tools or Simple Studio Code instead! (That one is free and is a dedicated editor! You should check it out!)
I hope you successfully relearn html and teach your classmates!! Coding is beautiful and I'm glad there's so many people who want to learn 😄