. isn’t needed at the end of ALT attributes

Don’t have to use . at the end of ALT and META descriptions especially if:

It’s a short, or sentence fragment.
You want to keep it punchy and search–friendly.

Examples:

❌ “Discover vintage computers like the ZX Spectrum and Commodore 64.”
✅ “Disc…


This content originally appeared on DEV Community and was authored by Dev Ieffe

Don't have to use . at the end of ALT and META descriptions especially if:

  • It’s a short, or sentence fragment.
  • You want to keep it punchy and search–friendly.

Examples:

  • ❌ “Discover vintage computers like the ZX Spectrum and Commodore 64.”
  • ✅ “Discover vintage computers like the ZX Spectrum and Commodore 64”

Why?

Meta descriptions often appear as snippets in search engine results. A period can feel abrupt or unnecessary unless it’s part of a complete, formal sentence.

✅ ALT Text (Image alt attribute):
Not using . unless it’s a full sentence.

Examples:

  • ✅ alt="ZX Spectrum main menu with pixel graphics and black background"
  • ✅ alt="The ZX Spectrum was released in 1982." (if full sentence, period is OK)
  • ❌ alt="ZX Spectrum menu." ← Avoid period on fragments

Why?

Screen readers pause slightly at punctuation. Adding unnecessary periods may create unnatural rhythm or confusion for visually impaired users.

Bonus

Do not use . at the end of a header or title. This applies to: website headings, article/blog titles, slide decks, UX/UI microcopy, technical documents.


This content originally appeared on DEV Community and was authored by Dev Ieffe


Print Share Comment Cite Upload Translate Updates
APA

Dev Ieffe | Sciencx (2025-07-31T06:00:57+00:00) . isn’t needed at the end of ALT attributes. Retrieved from https://www.scien.cx/2025/07/31/isnt-needed-at-the-end-of-alt-attributes/

MLA
" » . isn’t needed at the end of ALT attributes." Dev Ieffe | Sciencx - Thursday July 31, 2025, https://www.scien.cx/2025/07/31/isnt-needed-at-the-end-of-alt-attributes/
HARVARD
Dev Ieffe | Sciencx Thursday July 31, 2025 » . isn’t needed at the end of ALT attributes., viewed ,<https://www.scien.cx/2025/07/31/isnt-needed-at-the-end-of-alt-attributes/>
VANCOUVER
Dev Ieffe | Sciencx - » . isn’t needed at the end of ALT attributes. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2025/07/31/isnt-needed-at-the-end-of-alt-attributes/
CHICAGO
" » . isn’t needed at the end of ALT attributes." Dev Ieffe | Sciencx - Accessed . https://www.scien.cx/2025/07/31/isnt-needed-at-the-end-of-alt-attributes/
IEEE
" » . isn’t needed at the end of ALT attributes." Dev Ieffe | Sciencx [Online]. Available: https://www.scien.cx/2025/07/31/isnt-needed-at-the-end-of-alt-attributes/. [Accessed: ]
rf:citation
» . isn’t needed at the end of ALT attributes | Dev Ieffe | Sciencx | https://www.scien.cx/2025/07/31/isnt-needed-at-the-end-of-alt-attributes/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.