{"slug": "css-webdev-beginners-codenewbie", "title": "#css #webdev #beginners #codenewbie", "summary": "The author describes their fourth day of learning the MERN stack, where they began using CSS to style HTML after three days of building structure. They learned the three methods of attaching CSS, chose the external file method for cleanliness, and practiced basic selectors and rules. The author also converted a navigation list into a horizontal layout and plans to study core CSS layouts next.", "body_md": "Hello Dev Community! 👋\nIt is Day 4 of my journey toward mastering the MERN stack. For the past three days, I was busy building skeletons with HTML. Today, I finally started bringing those dry structures to life using CSS (Cascading Style Sheets)!\nIt felt amazing to move away from black text on a plain white screen and actually control how things look.\nI learned that there are three methods to attach styles to HTML, but one is clearly the professional standard:\n<style>\ntag in the HTML head..css\nfile and linking it via <link rel=\"stylesheet\">\n. I chose this method because it keeps my HTML clean and modular.I mastered the basic anatomy of a CSS rule: Selector { Property: Value; }\n. I experimented with three primary selectors today:\nbody\n, h1\n)..\n): The most reusable way to style elements (e.g., .btn-primary\n).#\n): For styling a single, unique element (e.g., #main-header\n).I took the semantic \"About Me\" page and navigation bar that I refactored yesterday and created an external style.css\nfile for it.\nToday, I didn't worry about complex layouts. Instead, I focused on the basics:\n<li>\n) into an inline layout so they sit horizontally like a real navbar, instead of a vertical bulleted list.Tomorrow, I'm diving into the absolute core of CSS layouts:\nTo the senior engineers: What is your favorite CSS font stack for clean, readable code? To fellow beginners: Did you start with Inline CSS or go straight to External files?\nMy styled code and repository are up to date on GitHub!\n[Links in the Comments]\nKeep coding! 🚀", "url": "https://wpnews.pro/news/css-webdev-beginners-codenewbie", "canonical_source": "https://dev.to/ali_hamza_589ec7b3eb6688d/css-webdev-beginners-codenewbie-5d9d", "published_at": "2026-05-22 12:24:53+00:00", "updated_at": "2026-05-22 12:35:15.571010+00:00", "lang": "en", "topics": [], "entities": ["MERN", "CSS", "HTML", "GitHub"], "alternates": {"html": "https://wpnews.pro/news/css-webdev-beginners-codenewbie", "markdown": "https://wpnews.pro/news/css-webdev-beginners-codenewbie.md", "text": "https://wpnews.pro/news/css-webdev-beginners-codenewbie.txt", "jsonld": "https://wpnews.pro/news/css-webdev-beginners-codenewbie.jsonld"}}