Complete the code to correctly write a self-closing image tag.
<img src="image.jpg" alt="A photo" [1]>
The <img> tag is self-closing and should end with /> to be valid in XHTML and is optional in HTML5 but recommended for compatibility.
Complete the code to correctly write a self-closing line break tag.
<br[1]>The <br> tag is self-closing and should end with /> for proper syntax in XHTML; in HTML5, just > is valid but /> is recommended for compatibility.
Fix the error in the self-closing input tag.
<input type="text" name="username" [1]>
The <input> tag is self-closing and should end with /> to be valid XHTML; in HTML5, just > is valid but /> is recommended for compatibility.
Fill both blanks to correctly write a self-closing meta tag with charset attribute.
<meta charset=[1][2]>
The <meta> tag requires the charset value in quotes and should be self-closed with /> for XHTML compatibility; in HTML5, just > is valid but /> is recommended.
Fill all three blanks to write a self-closing link tag for a stylesheet.
<link rel=[1] href=[2] [3]>
The <link> tag for stylesheets needs rel and href attributes in quotes and should be self-closed with /> for XHTML compatibility; in HTML5, just > is valid but /> is recommended.