Multiple choice technology web technology

Assuming correct syntax and no exceptions/errors in the following tags, which of the following is NOT considered to be an EMPTY tag ?

  1. <my:tag value"x"/>

  2. <my:tag value="x"></my:tag>

  3. <my:tag><jsp:attribute name="value">${userName}</jsp:attribute></my:tag>
  4. <my:tag value="x"><%="This is an EMPTY tag"%></my:tag>

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

A tag is considered empty only if it has no body content. Option D contains a scriptlet (<%=...%>) which produces output, giving it body content. Options A, B, and C are truly empty - A uses self-closing syntax, B has no content between tags, and C uses jsp:attribute for setting attributes.