Best of HTMLSeptember 2022

  1. 1
    Article
    Avatar of communityCommunity Picks·4y

    Islands Architecture

    Islands architecture borrows concepts from different sources and aims to combine them optimally. Marko is an open-source framework developed and maintained by eBay to improve server rendering performance. Astro: Astro is a static site builder that can generate lightweight static HTML pages from UI components built in other frameworks such as React, Preact, Svelte,

  2. 2
    Article
    Avatar of hnHacker News·4y

    58 bytes of css to look great nearly everywhere

    58 bytes of css to look great nearly everywhere (enhanced version) This should be simple drop-in css. I've since changed the padding to 1.5rem for a happier compromise between mobile and desktop displays. The padding also provides sorely-needed top and bottom whitespace.

  3. 3
    Article
    Avatar of freecodecampfreeCodeCamp·4y

    JavaScript DOM Tutorial – How to Build a Calculator App in JS

    The Document Object Model (DOM) is a logical structure that defines how elements in a document can be manipulated and changed. You must first learn how to access elements in the DOM before you can manipulate it. How to create a DOM Element JavaScript requires that any element be created before it can be added to the DOM. For this, we use the document.createElement() method.

  4. 4
    Article
    Avatar of communityCommunity Picks·4y

    Here's how I increased a website performance by 21%!

    The total fontawesome package v5.1 is approximately about 12mb (don't worry, we aren't using all!)

  5. 5
    Article
    Avatar of devtoDEV·4y

    Me & React: 5 years in 15 minutes

    React has finally started making sense to me. It was almost the same as my old pal HTML, except JSX allowed splitting HTML pages into tiny dynamic building blocks. A stateful component had a state which was triggering a re-render on change, while the stateless had only the render part and were rendering the same thing. It made debugging quite mind bending, as sometimes console.log has been printed a microsecond before the state was actually propagated. Redux has treated me a bit better.

  6. 6
    Article
    Avatar of asayerasayer·4y

    Semantic elements in HTML: why use them

    Semantic elements have to do with the syntax that makes the HTML very easy to understand. It makes our code cleaner and make more sense where each element uses the appropriate word. The navElement makes it immensely more accessible for us to create a neat menu of text links and help screen readers correctly identify the primary navigation areas in a document.

  7. 7
    Article
    Avatar of changelogChangelog·4y

    TIL: You Can Access A User’s Camera with Just HTML

    You can put the capture attribute on inputs with the type of file, and you can give it a value of “ user” or ‘environment’ The interesting thing about the captured attribute is for users coming to your website on a mobile device.

  8. 8
    Article
    Avatar of asayerasayer·4y

    Micro-Interactions using Anime.js

    Micro-interactions are small, functional animations that give the user support using visual feedback. They are just like other interactions with gadgets; they’re used to give users meaningful feedback because they must always be aware of the results of their actions. We imported Machine from XState and created a generic type for our TogglEvent, setting type to TOGGLE, and created our state machine.

  9. 9
    Article
    Avatar of devtoDEV·4y

    Simple way to generate PDF from HTML

    Arial, Helvetica, sans-serif, font-family, color and #container can be used to generate a PDF from HTML. We will take advantage of the window.print() and some specific CSS. Add the rest of the styles for your custom pdf.

  10. 10
    Article
    Avatar of freecodecampfreeCodeCamp·4y

    How to write a Good Technical Tutorial

    The first thing a reader looks for in a tutorial is what the tutorial will solve or answer for them. Make an Outline before starting to write a tutorial, outline what things are you going to write about. Use Headings and Small Paragraphs to separate different sections of your article by topic.

  11. 11
    Article
    Avatar of freecodecampfreeCodeCamp·4y

    What is Tailwind CSS? A Beginner's Guide

    Tailwind CSS is a new tool that takes away a lot of the burden from us. There are many ways to write CSS out there – like Vanilla CSS3, LESS, SCSS, Bootstrap, styled-components, Windi CSS, and more – and even our OG HTML. The concept of Atomic CSS is not new but tailwind CSS takes it to another level.

  12. 12
    Article
    Avatar of pointerPointer·4y

    BuilderIO/qwik: The HTML-first framework. Instant apps of any size with ~ 1kb JS

    Qwik allows fully interactive sites to load with almost no JavaScript and pickup from where the server left off. As users interact with the site, only the necessary parts of the site load on-demand. This precision lazy-loading is what makes Qwik so quick.

  13. 13
    Article
    Avatar of communityCommunity Picks·4y

    Why our websites are slow — Importance of bundle size

    A new story tells the impact of bundle size on application performance and a mind-boggling story to understand why websites can be slow. The story begins way back exactly one year ago. For one year I have covered so many stories on react application optimisation but today I have a new perspective on seeing react applications.

  14. 14
    Article
    Avatar of freecodecampfreeCodeCamp·4y

    How to Code a 2D Game Using JavaScript, HTML, and CSS

    The game uses just HTML, CSS and plain JavaScript without frameworks or libraries. You will build a game completely from scratch featuring everything from sprite animation to parallax backgrounds.

  15. 15
    Article
    Avatar of dwbDavid Walsh·4y

    CSS :autofill

    CSS:autofill Autofill is an unnatural act, so signaling to that the value in an input was changed without control is important. To add custom CSS styles to inputs whose contents have been autofilled by the browser, you can use the autofill pseudo-class.

  16. 16
    Article
    Avatar of itnextITNEXT·4y

    I wrote an HTML canvas data grid so you don’t have to

    HTML 5 canvas is an incredibly powerful and woefully underutilized tool for web developers. It is difficult to use in a manner which is performant, beautiful, and accessible. Use a pool of HTMLImageElements to manage your downloads.

  17. 17
    Article
    Avatar of asayerasayer·4y

    An Introduction to Native Web Components

    Native Web Components provide a way to create encapsulated, single-responsibility, custom functionality that can be used with or without a framework. The concepts were first introduced by Alex Russell at the Fronteers Conference in 2011. The browser can call one of six handler methods depending on the current state of the web component. It typically runs clean-up operations such as aborting in-flight Fetch()requests.

  18. 18
    Article
    Avatar of webweb.dev·4y

    Introducing Learn HTML

    Learn HTML is a brand new course written by Estelle Weyl that will take you through all you need to know about HTML today. We're landing the first five modules today, the rest will follow in staged launches over the next couple of months.

  19. 19
    Article
    Avatar of devtoDEV·4y

    Sass: Interpolation & Nesting

    Interpolation can be used almost anywhere in a Sass stylesheet to embed the result of a SassScript expression into a chunk of CSS. It allows us to insert sass expressions into a simple SASS or CSS code. We will discuss nesting in further detail in the following post.

  20. 20
    Article
    Avatar of asayerasayer·4y

    Pre-rendering Techniques in Next.js for React

    Next.js for React The Next.js brings friendly and welcome solutions to some problems in the React framework. Some solutions include out-of-the-box support for routing, SEO optimization, etc., and in particular, different pre-rendering techniques. OpenReplay is self-hosted for full control over your data.

  21. 21
    Article
    Avatar of communityCommunity Picks·4y

    Is CSS Transform Dead?

    CSS is adding lots of new features and some of the smaller quality of life features they added recently were the addition of the translate, rotate, and scale properties. These properties almost entirely remove the need to use the transform property which is incredibly nice since there are tons of possibilities this opens up that were very difficult if not impossible before. There are a few ways to get around this issue.

  22. 22
    Article
    Avatar of devtoDEV·4y

    Build a Web Paint Application

    The Web Paint Application is a web application built using HTML5, CSS and JavaScript. You can draw lines, change color & size of stroke, erase & get custom color as well. This tutorial focuses on building this project and not on HTML, CSS or JavaScript.

  23. 23
    Article
    Avatar of hnHacker News·4y

    How I’m a Productive Programmer With a Memory of a Fruit Fly

    Dash is a $30 Mac app3 (also available as part of Setapp subscriptions!), there’s the free Windows and Linux version called Zeal. Dash can replace documentation that you already keep locally on your computer for faster and/or offline access without doing anything special. Just package it up into the necessary directory structure, add an empty index, and fill out simple metadata.

  24. 24
    Article
    Avatar of btrprogBetter Programming·4y

    Understand Island Architecture and How the Client Receives No JavaScript

    Island Architecture was created by Katie Sylor-Miller, the front-end architect for Etsy. Island Architecture is also known as Partial Hydration (Partial Hydration) SEO Pages are SEO-friendly because all static information is rendered on the server. The architecture is ineffective for heavily interactive pages, such as social media apps, which would almost certainly require thousands of islands.

  25. 25
    Article
    Avatar of ossOpen Source Way·4y

    A beginner's guide to making a dark theme for a website

    dark theme can be added to your website with a simple and easy-to-add-the-dark theme. The dark theme is a dark-themed theme to the top of the list of icons. The for...of loop of JavaScript applies ".dark-theme" class styling properties to each card on the page, regardless of its position. It applies the theme to all web parts selected with querySelectorAll(). Without this, the font and background color remain unchanged. The font and color remains unchanged. If you set a dark theme, the dark theme will not work as expected.