5 Comments
Apr 19, 2021Liked by Jen Kramer

Fun fact: the spelling af <address> with 2x d and 2x s may present an extra challenge for some European users: I am German, where "Adresse" is spelt with 1x d and 2x s, and I live in the Netherlands, where "adres" has one only 1x d and 1x s 😉

Expand full comment
author

It would be so lovely if we could all agree! 🤣 Thank goodness for spellcheck!

Expand full comment
Apr 19, 2021Liked by Jen Kramer

Hi Jen,

I'm a bit late to the game, starting with Day One today ;-)

In all the address-examples I only see line breaks with br. As far as I know, paragraphs are quite okay within address, and I miss them a bit.

HTML 5.2 has an example with a p inside of address (https://www.w3.org/TR/html52/grouping-content.html#the-address-element)

The Living Standard allows »Flow content, but with no heading content descendants, no sectioning content descendants, and no header, footer, or address element descendants.«

MDN has it about the same.

So that would allow paragraphs, wouldn't it?

Or am I missing something?

Peter (https://pmueller.de/)

Expand full comment
author

Hi Peter! There is nothing wrong with using <p> inside of address.

In the case of a postal address, <br> is a better choice, as this preserves the formatting required for the postal service.

I've added an address example with paragraphs to show you what I mean: https://codepen.io/jen4web/pen/MWJWgzW?editors=1000

What would not be correct would be to put a paragraph around each line in the address, at least with a US-based postal address. That's because all of the lines are required to deliver a letter. At least that's how I would think about it. :-D

Does that help?

Expand full comment
Apr 19, 2021Liked by Jen Kramer

Thanx for the quick reply, and your example is exactly what I had in mind:

one paragraph for the postal address, with <br> for a new line, and a second paragraph for example the email address or a Twitter account or something like that.

Expand full comment