Multiple choice technology programming languages

Choose correct syntax as per w3c standard:

  1. .
    <p>Welcome to r4r
    </p>

  2. .<p>Welcome to r4r</p>

  3. .
    <p>Welcome to r4r</p>

  4. .<p>Welcome to r4r</p>

Reveal answer Fill a bubble to check yourself
B,D Correct answer
Explanation

W3C standards require proper nesting of HTML elements - block elements like

cannot contain inline elements like
incorrectly. Option B shows a correctly nested paragraph. Option D is also valid as is an inline element that can contain

. The tag is invalid -
is self-closing.