Name things for 11pm you. That's when I usually code, after bedtime. data, temp, x2? Tired me has no clue what those are. unpaidInvoices, crewSchedule? Clear in a second. Longer names are free. Confusion isn't.
Size your text in rem, not px. Some people bump up their browser's default font size so they can actually read. font-size: 16px ignores that. font-size: 1rem grows with it. Looks the same for most folks. Way more readable for the ones who need it.
A placeholder isn't a label. It disappears the second you start typing. Then you're guessing what the box was for. Use a real <label for="email">. Clicking the label focuses the input. Screen readers read it out. One line of HTML. Way better form.
Today, let’s dive into a crucial building block of web development: HTML! Think of HTML as the framework of a house. It gives structure to your web pages and helps you organize your content. Start by creating a simple HTML file. Just open your favorite text editor and type: <!DOCTYPE html> <html> <head> <title>Your First Web Page</title> </head> <body> <h1>Hello, Carline Dads!</h1> <p>This is my first web page.</p> </body> </html> Save it as index.html and open it in your web browser. There’s something magical about seeing your code come to life! What’s your favorite part about coding so far? Share a win or ask a question in the comments! Let’s keep building together!