<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Marquez Noel</title>
    <description>The latest articles on Forem by Marquez Noel (@qzykuma).</description>
    <link>https://forem.com/qzykuma</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1207531%2F4cd50fe6-c462-441a-89f9-8750c242dbfb.jpeg</url>
      <title>Forem: Marquez Noel</title>
      <link>https://forem.com/qzykuma</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/qzykuma"/>
    <language>en</language>
    <item>
      <title>Frontend Fundamentals 101: The “Why is My Button Floating?” Guide for New Devs!</title>
      <dc:creator>Marquez Noel</dc:creator>
      <pubDate>Thu, 31 Oct 2024 22:39:41 +0000</pubDate>
      <link>https://forem.com/qzykuma/frontend-fundamentals-101-the-why-is-my-button-floating-guide-for-new-devs-2831</link>
      <guid>https://forem.com/qzykuma/frontend-fundamentals-101-the-why-is-my-button-floating-guide-for-new-devs-2831</guid>
      <description>&lt;p&gt;Welcome, brave souls venturing into the world of front-end development! If you’re here, you’re probably tired of hearing about "components," "the DOM," and how important it is to "center that div" (it’s not...until it is). Let's break it down, no-nonsense style.&lt;/p&gt;

&lt;p&gt;👀 So, What Is Frontend Development?&lt;/p&gt;

&lt;p&gt;Frontend development is basically everything users see and interact with on a website or app. When someone clicks a button, swipes a card, or buys a $40 sticker they don’t need, that’s frontend development in action. Think of it as the face of web development, where every button, animation, and hover effect has a purpose—usually to make things look awesome and work smoothly.&lt;/p&gt;

&lt;p&gt;Here's what you'll work with in the front-end realm:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;HTML: The structure. It’s the bones of every webpage. Imagine you’re building a house: HTML is like laying out the rooms, doors, and walls.

CSS: The style. This is where the magic happens. CSS makes your HTML look less like a grocery list and more like a finished room. Want to paint a wall blue or give your title some bling? That’s CSS.

JavaScript: The functionality. This is what brings life to your page. JavaScript is the electricity, the Wi-Fi, the thing that lets users interact with your elements in ways that feel smooth (or confusing if done poorly... but you won’t, right?).
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;🛠️ Let’s Get Practical: Your Basic Frontend Setup&lt;/p&gt;

&lt;p&gt;When starting, you’ll need a setup that doesn’t make you want to throw your laptop out the window. Here’s what’ll keep you sane:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;A Code Editor: Use something like VS Code (free and packed with cool extensions).

Live Server: A little extension in VS Code that lets you see changes instantly in your browser—yes, that means no more hitting the refresh button 50 times a minute.

Chrome DevTools: You can press F12 or Ctrl+Shift+I in Chrome to inspect and debug your code, check styles, and basically peek under the hood.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;🧩 HTML Basics: Building the Skeleton&lt;/p&gt;

&lt;p&gt;In HTML, you work with tags. Here’s a quick breakdown of the essentials:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;div&amp;gt;: A box. Think of it as a basic building block.
&amp;lt;h1&amp;gt; to &amp;lt;h6&amp;gt;: Headings. &amp;lt;h1&amp;gt; is like the main title; &amp;lt;h6&amp;gt; is a smaller subtitle.
&amp;lt;p&amp;gt;: Paragraphs. Use this for, well, paragraphs.
&amp;lt;img&amp;gt;: Images. Add pictures and pray they load correctly.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Together, these make up the structure. Don’t worry if it looks odd at first; remember, CSS is waiting in the wings to make it pretty.&lt;br&gt;
💅 CSS Basics: Add Some Style&lt;/p&gt;

&lt;p&gt;Want your webpage to stop looking like 1996 called and asked for its design back? Let’s dive into some CSS basics:&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Selectors: These are how you choose which HTML elements to style. Want to make all &amp;lt;p&amp;gt; elements bold? p { font-weight: bold; }

Classes and IDs: These are more specific ways to select elements. Use classes (.myClass) for things you style multiple times, like buttons. Use IDs (#myId) for unique elements, like the main header.

Properties: Think of these like instructions. color, background-color, font-size—these are all CSS properties that’ll transform your content from plain to posh.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;p&gt;🤖 JavaScript Basics: Make Things Happen&lt;/p&gt;

&lt;p&gt;JavaScript lets you go from “static” to “interactive.” Here’s what you’ll start with:&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Variables: Store data. Think let userName = "Johnny Appleseed";.

Functions: Your mini-programs that do things. Like, function sayHello() { alert("Hello, World!"); }.

DOM Manipulation: JavaScript’s superpower is changing the HTML/CSS dynamically. You can make buttons respond, show/hide elements, or display a pop-up when you want.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;p&gt;🏁 Putting It All Together: A Simple Button&lt;/p&gt;

&lt;p&gt;Let’s make a button, and we’ll use all three parts—HTML, CSS, and JavaScript—to create something that responds to a click. Here’s the basic code:&lt;/p&gt;

&lt;p&gt;HTML&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;button id="clickMe"&amp;gt;Click me!&amp;lt;/button&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;CSS&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#clickMe {
  background-color: teal;
  color: white;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Javascript&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;document.getElementById("clickMe").addEventListener("click", function() {
  alert("You clicked me!");
});
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;With just these few lines, you’ve created a button that responds when clicked. It’s simple, but it's your first real step in frontend dev! 🎉&lt;br&gt;
🚀 Final Tips for New Devs&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Practice: Go ahead and make simple projects—buttons, cards, forms. Don’t jump into big frameworks just yet; learn the basics first.

Stay Curious: Google is your friend, and Dev.to is your family. Ask questions, read posts, and keep an eye out for other beginners.

Have Fun: You’ll break stuff, you’ll get errors that make no sense, and you’ll wonder if divs are plotting against you. That’s normal. Every pro dev was once exactly where you are.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Frontend development is a wild, rewarding, sometimes frustrating journey—but if you’re here, you’re already on your way. Happy coding, and may your divs stay centered and your buttons clicky! 🖖&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>beginners</category>
      <category>learning</category>
      <category>javascript</category>
    </item>
  </channel>
</rss>
