Day 15 of My JavaScript Journey 🚀 Today, I was introduced to the basics of HTML. HTML (HyperText Markup Language) is used to structure the content of a web page not to style or add functionality, but to define elements like text, images, and links. I also learned about attributes, classes, and IDs. Classes and IDs are used to name elements so they can be selected in CSS for styling and in JavaScript for DOM manipulation. Key differences: • ID: It must be unique (used once per page) • Class: It's reusable (can be used multiple times) One important insight: HTML provides the structure, CSS handles the design, and JavaScript adds interactivity. Key takeaway: Understanding HTML is the foundation for building and manipulating web pages with JavaScript. #JavaScript #HTML #WebDevelopment #LearningInPublic #100DaysOfCode
Learning HTML Basics for JavaScript Development
More Relevant Posts
-
What if your CSS could read DOM state without a single line of JavaScript? CSS :has() makes this real. Form field highlights, tab indicators, card state variants that used to need JS class-toggling can now live entirely in your stylesheet. https://lnkd.in/eaC8d4gU #WebDev #CSS #WebPlatform
To view or add a comment, sign in
-
💻 Ever wondered how your HTML actually renders in a browser? As developers, we write HTML, CSS, and JavaScript daily… But what really happens behind the scenes when you open a webpage? Let’s break it down 👇 🔹 1. Browser Reads HTML The browser loads your .html file and starts parsing it line by line. 🔹 2. DOM Creation HTML is converted into a structured tree called the DOM (Document Object Model) — this is what JavaScript interacts with. 🔹 3. CSS Parsing All styles are processed and converted into a CSSOM (CSS Object Model). 🔹 4. Render Tree Formation DOM + CSSOM = Render Tree This defines what will actually appear on the screen. 🔹 5. Layout Calculation The browser calculates size and position of every element. 🔹 6. Painting Pixels are drawn on the screen — your UI becomes visible 🎨 🔹 7. JavaScript Execution The browser’s JavaScript engine (like V8) executes code and can dynamically modify the DOM. 🔄 Any DOM change triggers reflow & repaint — impacting performance. 🧠 Key Insight: HTML is not “executed” — it is parsed and transformed into a structure that the browser understands and renders. ⚡ Why this matters: Helps optimize performance Avoid unnecessary DOM updates Write better frontend code Understanding this flow changed how I think about frontend performance and debugging. What part of the rendering process surprised you the most? #WebDevelopment #JavaScript #Frontend #HTML #CSS #BrowserInternals #SoftwareEngineering
To view or add a comment, sign in
-
Built My Own Tailwind-like CSS Engine “Chaiwind” I’ve been diving deep into how utility-first CSS frameworks like Tailwind actually work under the hood… and decided to build my own version from scratch. GitHub: https://lnkd.in/edbMhfxa Live Demo: https://lnkd.in/ebMWZ7BK What is Chaiwind? Chaiwind is a runtime CSS utility engine that: • Scans the DOM for custom classes (chai-*) • Parses them into CSS properties • Applies styles dynamically using JavaScript No build tools. No config. Just pure JavaScript. Tech Highlights: • DOM manipulation & query selection • Custom class parser logic • Dynamic style injection • Utility-first CSS architecture What I learned: • How Tailwind-like systems work internally • Runtime vs build-time styling tradeoffs • Writing cleaner, modular JavaScript • Thinking like a framework developer Still improving: • Performance optimization • Responsive & pseudo-class support • Better class parsing system This project pushed me beyond just using frameworks — into understanding how they are built. Would love feedback from the community Hitesh Choudhary Piyush Garg Chai Code #JavaScript #WebDevelopment #Frontend #TailwindCSS #OpenSource #BuildInPublic #chaicode
To view or add a comment, sign in
-
Just built a simple yet functional Stopwatch using HTML, CSS, and JavaScript ( This project helped me strengthen my understanding of: • DOM manipulation • Event handling (Start, Stop, Reset) • Time logic and intervals in JavaScript • Structuring clean and responsive Ul with CSS Watching the timer run in real-time after writing the logic from scratch was a satisfying moment. Small projects like this continue to sharpen my problem-solving skills and build my confidence as a developer. Next step: improving the design and adding more advanced features #WebDevelopment #JavaScript #HTML #CSS #FrontendDevelopment #SoftwareEngineering
To view or add a comment, sign in
-
You might be familiar with basic CSS scoping. Have you explored the power of donut scoping? I built a native-feeling mobile menu using zero lines of JavaScript. It uses the latest CSS features to manage complex interface states. 1. The scope limit feature - The `@scope` rule defines where styles start and end. - Using the to keyword creates a donut shape. - It hides everything between the parent and the active menu. 2. The parent selector integration - The `:has` selector detects which menu is open. - It triggers the scope only when necessary. - It replaces the need for class toggles in JavaScript. 3. Native performance benefits - The browser handles the view switching logic. - Animations stay at 60 frames per second. - The main thread remains free for other tasks. Do not hesitate to invite me and ask for the demo link if needed. What is your favorite CSS-only solution for complex interfaces? Share your thoughts below.
To view or add a comment, sign in
-
Sharing my learnings: Critical Rendering Path - In simple terms, it’s the process the browser follows to convert HTML, CSS, and JavaScript into pixels on the screen. Here’s how it works: - Browser receives HTML from the server - HTML is parsed → DOM is created - CSS is parsed → CSSOM is created - DOM + CSSOM → Render Tree Browser renders in steps: - Style calculation - Layout - Paint - Composite The goal? Show content to the user as fast as possible (First Contentful Paint). #frontend #webperformance #javascript #react #learninginpublic
To view or add a comment, sign in
-
-
🚀 Day 4 of #100DaysOfFrontend Built a Real-Time Digital Clock using HTML, CSS, and JavaScript ⏱️ This project helped me understand how to work with the Date object, update the UI dynamically, and use setInterval for real-time functionality. Small project, but a big step in learning JavaScript 💪 🔗 Live Demo: https://lnkd.in/ghiNej6F 💻 GitHub: https://lnkd.in/gZ_z8fDm #JavaScript #FrontendDevelopment #WebDevelopment #BuildInPublic #Consistency
To view or add a comment, sign in
-
-
Day 14/100 of JavaScript Today’s topic : Introduction to DOM The DOM (Document Object Model) represents the HTML structure of a web page as a tree of objects JavaScript can use the DOM to access and manipulate elements dynamically 🔹Selecting elements const heading = document.getElementById("title"); const items = document.querySelectorAll(".item"); 🔹Changing content heading.textContent = "Updated Title"; 🔹Changing styles heading.style.color = "blue"; 🔹Adding elements const newEl = document.createElement("p"); newEl.textContent = "New paragraph"; document.body.appendChild(newEl); 🔑 Key understanding: The DOM allows JavaScript to interact with HTML and update the UI dynamically without reloading the page #Day14 #JavaScript #100DaysOfCode
To view or add a comment, sign in
-
Day 2 ✅ — CSS - Styling basics. Yesterday: HTML structure. Today: CSS style. -Inline, internal, external stylesheets. -Selectors, IDs, classes, and common styling properties. -Linked JavaScript for the first time. Day 3 tomorrow. #WebDevelopment #CSS #HTML #JavaScript #FullStack #StructuralEngineering #Upskilling
To view or add a comment, sign in
-
CSS positions explained in the simplest way possible. This confused me for months. 🎯 Raise your hand if you have ever just kept changing position values until something worked. 🙋 We have all been there. So let me explain CSS positions once and for all in plain English: Static — the default Every element starts here. It just sits in the normal flow of the page. You cannot move it with top, left, right or bottom. It ignores all of that. Relative — move it from where it naturally sits The element stays in the normal flow but you can nudge it around using top, left, right, bottom. The space it originally occupied stays reserved. Think of it as moving without leaving. Absolute — break free from the flow The element is completely removed from the normal flow. It positions itself relative to the nearest parent that has position: relative. If no parent has it — it goes all the way up to the browser window. This one trips everyone up at first. Fixed — stick it to the screen The element ignores the page entirely and positions itself relative to the browser window. Scroll all you want — it stays exactly where you put it. Perfect for sticky navbars and floating buttons. Sticky — the best of both worlds Behaves like relative until you scroll to a certain point — then it sticks like fixed. That modern sticky header effect you see everywhere? This is how it is done. The moment these clicked for me my layouts stopped being a guessing game and started being intentional. CSS is not magic. It just rewards the developers who take time to actually understand it. 💡 Which position gave you the most trouble when you were learning? 👇 #CSS #WebDevelopment #Frontend #FullStackDeveloper #HTML #JavaScript #Programming #CodingTips #Developer #Pakistan #LearnToCode #WebDesign #TailwindCSS #100DaysOfCode #PakistaniDeveloper
To view or add a comment, sign in
-
Explore content categories
- Career
- Productivity
- Finance
- Soft Skills & Emotional Intelligence
- Project Management
- Education
- Technology
- Leadership
- Ecommerce
- User Experience
- Recruitment & HR
- Customer Experience
- Real Estate
- Marketing
- Sales
- Retail & Merchandising
- Science
- Supply Chain Management
- Future Of Work
- Consulting
- Writing
- Economics
- Artificial Intelligence
- Employee Experience
- Workplace Trends
- Fundraising
- Networking
- Corporate Social Responsibility
- Negotiation
- Communication
- Engineering
- Hospitality & Tourism
- Business Strategy
- Change Management
- Organizational Culture
- Design
- Innovation
- Event Planning
- Training & Development