Loading

You are reviewing someone’s HTML code, and you see uppercase tags like <P> and <DIV>.
Question

Would you recommend changing them ? if yes then Why ?



Answer

Yes, Although HTML is case-insensitive, the best practice is to write all tag names in lowercase (e.g., <p>, <div>). This improves readability, keeps the code consistent, and aligns with XHTML and modern HTML standards.



A teammate suggests using <b> and <i> for bold and italic text in an article.

Question

Would you agree, or would you recommend other tags ?



Answer

Instead of <b> and <i>, it is better to use <strong> for important text and <em> for emphasized text. These tags convey semantic meaning, which improves accessibility and tells assistive technologies why the text is styled that way.



A client wants a line break between two lines of text.

Question

Which tag would you use and why ?



Answer

I will use the <br> tag because, it is a self-closing tag specifically meant to insert a line break without staring a new paragraph.