Website Accessibility: Separating Myths from FactsArticle contains
  1. Myth 1: The disability population is too small to matter
  2. Myth 2: Accessibility makes websites unattractive
  3. Myth 3: Only web developers need to worry about accessibility
  4. Myth 4: Automated tools are sufficient for accessibility testing
  5. Myth 5: Web accessibility isn't legally required
  6. Myth 6: Implementing accessibility is too expensive and time-consuming
  7. Myth 7: There are no tangible benefits to web accessibility
  8. Call to Action: Elevate your website's accessibility now
  9. Iconographic for Digital Accessibility Myths and Facts
Alternative text for CSS generated contentArticle contains
  1. Creating alternative description for CSS content property
  2. Implementation and usage
  3. Workable example
macOS - find, start, stop, and restart the Apache web serverArticle contains
  1. Determine which Apache server is currently being used on macOS
    1. Check running Apache processes
    2. Using which and whereis commands
    3. Check Apache configuration
  2. Internal Apache
  3. Homebrew Apache
  4. Conflict between internal Apache and Apache installed via Homebrew
  5. How to stop and prevent auto-starting the internal Apache server on macOS
  6. apachectl vs httpd
    1. apachectl
    2. httpd
MacBook computer and Apache Server logo on it.

macOS – find, start, stop, and restart the Apache web server

Trying to find out if the Apache server is running on macOS? How do I find it? And once you find it, why are there several methods to start, stop, and restart it?

Managing the Apache web server on macOS involves using specific commands in the Terminal. The commands differ slightly depending on whether you are using the built-in Apache or one installed via Homebrew. Here’s a comprehensive guide to starting, stopping, and restarting both versions.

Continue reading “macOS – find, start, stop, and restart the Apache web server”
The intersection between SEO and Digital AccessibilityArticle contains
  1. The symbiotic relationship between SEO and Accessibility
    1. Faster Loading, Cleaner Coding
    2. Engaging and accessible content
    3. Inclusive design equals expanded reach
    4. Mobile Accessibility: A Vital Link
    5. The comprehensive advantage of accessible web design
  2. Conclusion: SEO and Accessibility Hand in Hand
Two wooden hearts with the words: SEO and Accessibility

The intersection between SEO and Digital Accessibility

Making sure your website is accessible to everyone is important not just for fairness, but also for improving its online presence. Accessibility isn’t just a fancy extra feature, it’s a crucial part of creating a good website. When you focus on making your site accessible, you also improve its chances of being found by search engines, which benefits both your users and your site’s ranking.

Continue reading “The intersection between SEO and Digital Accessibility”
Resolving the script tag type attribute hash prepending issue with CloudflareArticle contains
  1. Solution for hash prepending issue with Cloudflare
  2. Final notes
"JavaScript" sentence and script HTML element

Resolving the script tag type attribute hash prepending issue with Cloudflare

If your script HTML tag has the type attribute prepended with a hash, like <script type="ea10e272b0a1989fb2f3aa4e-text/javascript">...</script> and you’re using Cloudflare services, then the root cause is the Cloudflare Rocket Loader, a feature of Cloudflare that optimizes the loading of JavaScript resources on your web pages.

Rocket Loader modifies the type attribute of script tags for website loading optimization by deferring the loading of JavaScript until after rendering. This modification can sometimes cause issues with HTML validation and Content Security Policy (CSP) headers.

Cloudflare Rocket Loader adds an argument “type” into the script tag and causing issues with the W3C validator due to the “subtype missing” error.

Continue reading “Resolving the script tag type attribute hash prepending issue with Cloudflare”
Remove trailing slashes in WordPress using htaccessArticle contains
  1. Step 1: Update the .htaccess with a configuration block for Apache
  2. Step 2: Update Permalinks
  3. Benefits of removing trailing slashes from website URLs
Get days between two dates in JavaScriptArticle contains
  1. JavaScript code for calculating days between two dates
  2. Code explanation
  3. Practical example with unit tests for calculating days between dates
Get and capitalize the first letter of a string in JavaScriptArticle contains
  1. How to capitalize the first letter of a string in JavaScript?
  2. How are strings represented in JavaScript?
  3. Getting and capitalizing the first character of a string in JavaScript
  4. Practical example
Man in a hood on the background of green letters (matrix). On the back there is an inscription: "JavaScript Capitalize First Letter"

Get and capitalize the first letter of a string in JavaScript

How to capitalize the first letter of a string in JavaScript?

To capitalize the first character of a string in JavaScript while properly handling Unicode characters, you can use the String.prototype.charAt(), String.fromCodePoint() and String.prototype.substring() methods. This ensures that the first character is transformed to uppercase while the rest of the string remains unchanged, accommodating various Unicode character sets effectively, specifically surrogate pairs.

Surrogate pairs are crucial in Unicode because they allow the encoding of characters that fall outside the Basic Multilingual Plane (BMP), which includes code points above U+FFFF. In UTF-16 encoding, these characters are represented using two 16-bit code units: a high-surrogate and a low-surrogate. This mechanism is essential for supporting a wide range of characters, including many emojis and rare scripts, ensuring that applications can display and manipulate all Unicode characters effectively.

Without surrogate pairs, many characters would be inaccessible, limiting the representation of global languages and symbols in digital formats. For example, the character for the “grinning face with smiling eyes” emoji (😄) has a code point of U+1F604. In UTF-16, this is represented as the surrogate pair 0xD83D and 0xDE04.

Continue reading “Get and capitalize the first letter of a string in JavaScript”
8 top AI search engines, free and paidArticle contains
  1. Benefits of AI search engines
  2. Not everything that shines is gold. Understanding AI search engines.
  3. Lenso.ai
    1. Key features of Lenso.ai
  4. Bagoodex
  5. DuckDuckGo AI Chat
  6. Perplexity
  7. Phind
  8. You.com
  9. Komo
  10. Brave Leo AI
  11. Kagi
  12. Bing Copilot
  13. Google Gemini
  14. Conclusion
Best practices for optimizing SVG codeArticle contains
  1. Minify the code
  2. Compress the SVG files
    1. Enabling serving SVGZ files in Apache
    2. Enabling serving SVGZ files in Nginx
    3. Enabling serving SVGZ files in IIS
    4. Example page with SVG and SVGz
  3. Using Inkscape to create optimized SVGs directly
  4. Command-line tool using SVGO NPM package