We need to translate visible text content to Japanese, preserving HTML tags exactly. Input HTML includes many

tags, some self-closing

, etc. Need to keep tags unchanged, only replace text nodes. We must be careful with entities like ’ (’). Should translate accordingly. Also preserve HTML tags and attributes unchanged. The

tags appear as empty paragraphs? Example:

Queen Elizabeth II is not like you and me.

Actually that is malformed:

then text then

. So treat the text after the self-closing tag as part of same paragraph. So we need to keep

unchanged then translate the following text. Similarly there are tags like


, , . Need to keep those. We need to translate each visible text segment. Let's go through line by line. First line: