Menu

34 of our 38 pages have an h1 that is not their title, and the four that match are the four with nothing to sell
📰

34 of our 38 pages have an h1 that is not their title, and the four that match are the four with nothing to sell

DEV Community: html·Daniel Pertu·about 22 hours ago
#etbcMPsG
#devto2#devto#dev#title#pages
Reading 0:00
15s threshold

I have measured the <title> on notifio.app twice: once for length , which found three titles that break the 60 character budget only after HTML entity escaping, and once in an accessibility pass that confirmed exactly one h1 per page. Both times I treated them as separate facts. They are two strings naming the same page, written by different hands for different readers, and I had never put them side by side.

title = re . search ( r '<title>(.*?)</title>' , html ) . group ( 1 ) h1 = re . search ( r '<h1[^>]*>(.*?)</h1>' , html ) . group ( 1 )

Enter fullscreen mode

Exit fullscreen mode

Across all 38 pages in the sitemap:

38 distinct titles, 38 distinct h1s, one h1 on every page

4 pages where the two are the same string

38 titles in Title Case, 8 h1s in Title Case

22 titles containing an en dash, 0 h1s containing one

37 titles ending in "| Notifio", 6 h1s containing the word Notifio

mean title 49.9 characters against a 60 budget; mean h1 43.6 , with five h1s over 60

mean word overlap between a page's…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.