Skip to content

WebCheatSheet

The easy way to know

  • PHP
  • HTML
  • JavaScript
  • SQL
  • ASP
  • MS Access Functions
  • SaaS
  • Email

Category: HTML

HTML

Fix Blocked Cross-Origin Stylesheets with Subresource Integrity

Sergey KornilovNovember 30, 2026

Make a CDN stylesheet eligible for browser integrity checks and distinguish a CORS failure from a hash mismatch.

HTML

Stop Jekyll from Serving Stale CSS after a Build

Sergey KornilovNovember 14, 2026

Confirm Jekyll produced the new stylesheet, then add a build-specific version to its URL so browsers and CDNs fetch it.

HTML

Why a Web Page Works on localhost but Not from a File

Sergey KornilovNovember 7, 2026

Use a local HTTP server when modules, fetch requests, PHP, or browser origin rules make a page fail under a file URL.

HTML

Detect Unsupported Audio Formats in an HTML Player

Sergey KornilovNovember 1, 2026

Declare accurate MIME types, test codec support with canPlayType(), and handle both media and source loading errors.

HTML

Share One CSS Stylesheet Across Multiple HTML Pages

Sergey KornilovOctober 12, 2026

Put reusable styles in a CSS file and link it from every HTML page using a path that matches the site deployment.

HTML

Detect and Repair Double-Encoded UTF-8 Text

Sergey KornilovSeptember 26, 2026

Recognize common double-encoded UTF-8 patterns, reverse a known Windows-1252 mis-decoding in PHP, and avoid corrupting already-correct rows.

HTML

Unicode Normalization: NFC vs NFD

Sergey KornilovSeptember 26, 2026

Understand why visually identical Unicode strings can compare differently and when to normalize text to NFC or NFD in JavaScript and databases.

HTML

Fix Invalid UTF-8 Errors in JSON

Sergey KornilovSeptember 26, 2026

Find and repair malformed UTF-8 before JSON encoding in PHP, preserve error visibility, and avoid silently discarding corrupted input.

HTML

Fix Mojibake After a MySQL Migration

Sergey KornilovSeptember 26, 2026

Diagnose and repair garbled text after a MySQL migration by separating stored bytes, column metadata, connection character sets, and application output.

HTML

Convert Windows-1252 Text to UTF-8

Sergey KornilovSeptember 26, 2026

Convert Windows-1252 text and files to UTF-8 without losing smart quotes, dashes, euro signs, or other characters commonly mistaken for ISO-8859-1.

Posts navigation

Older posts

Recent Posts

  • Compare the Return Value of PHP include Correctly
  • Find the php.ini File Actually Loaded by PHP CLI
  • Find Which Local MySQL Instance Your App Is Using
  • Fix Blocked Cross-Origin Stylesheets with Subresource Integrity
  • Fix Recursion Detected Errors in Nested PHP Arrays

Recent Comments

  1. Compare the Return Value of PHP include Correctly - WebCheatSheet on PHP Functions: Parameters, Return Types, and Scope
  2. Fix Recursion Detected Errors in Nested PHP Arrays - WebCheatSheet on Multidimensional Arrays in PHP
  3. Pass PHP Values to a Button Handler with data Attributes - WebCheatSheet on PHP Variables, Types, and Scope
  4. Fix Invalid Regex Escapes After Moving to PHP 8 - WebCheatSheet on PHP Regular Expressions: preg_match, Replace, Split, and Grep
  5. Set UTF-8 Output for a PHP gettext Domain - WebCheatSheet on PHP Variables, Types, and Scope

Archives

  • December 2026
  • November 2026
  • October 2026
  • September 2026
  • August 2026
  • October 2023
  • July 2023
  • June 2023
  • May 2023
  • April 2023
  • March 2023
  • February 2023
  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022
  • August 2022

Categories

  • ASP
  • Email
  • HTML
  • JavaScript
  • MS Access Functions
  • PHP
  • SaaS Architecture
  • SQL
  • Uncategorized
Copyright © 2026 WebCheatSheetFresh News by Ascendoor | Powered by WordPress.