Day 1/366

Rmag Breaking News

🚀 Today’s Learning:

🌟 DSA

Static vs Dynamic Arrays
Memory Allocation and Management

🌟 DEV

HTML – Elements and Semantic Tags
CSS – Selectors, Box Model, Pseudo Classes

🔍 Some Key Highlights:

Static arrays have a fixed size set at compile time, stored in either the stack or data segment. Access is super fast (O(1)) due to direct memory address calculation.

Dynamic arrays offer flexibility with size adjustment during runtime, managed via pointers and memory allocation functions like malloc() and new. But beware of memory leaks and undefined behavior!

While dynamic arrays are powerful, they require careful memory management. Luckily, C++ provides safer alternatives like std::vector for automatic memory management and resizing.

HTML is like the backbone of web pages, providing the structure and content.

There are various HTML elements like <div>, <a>, <form>, and <meta>, each serving a unique purpose in creating web content.

Understanding the DOCTYPE declaration ensures browsers render HTML correctly, like a passport guiding them through the document.

The semantic HTML tags help the search engines and other user devices to determine the importance and context of web pages. The pages made with semantic elements are much easier to read.

Examples of non-semantic elements: <div> and <span> – Tells nothing about its content.

Examples of semantic elements: <form>, <table>, and <article> – Clearly defines its content.

CSS is like the stylist of the web, adding colors, layouts, and animations to HTML elements.

Selectors act like detectives, targeting specific elements for styling based on their tags, classes, or IDs.

The box model concept clarified how padding, margin, border, and content interact to define an element’s appearance.

Pseudo-classes provide dynamic styling, allowing elements to change appearance based on user interaction. (e.g. a:hover)

Let’s keep exploring and learning together! 🚀 Feel free to share your thoughts and experiences in the comments below. 📝

#1PercentPlusPlus #100DaysOfCode #LearningEveryday #LearnInPublic #Programming #Coding #DSA #SoftwareDevelopment

Leave a Reply

Your email address will not be published. Required fields are marked *