Slide 1
Slide 2
Slide 3

HTML Elements Case sensitive in HTML5 (HTML-V13)

No Comments

4. Are HTML Elements Case-sensitive? HTML elements are not case-sensitive, which means we can write HTML elements in either uppercase or lowercase letters. However, this is not good practice, because the W3C recommends and requires the use of lowercase. So, always try to use lowercase for all tag names. In the example below, we will write HTML elements (tag names) using uppercase letters and a mix of uppercase and lowercase letters. Notice that the output has no errors at all, and the HTML code works normally:

Source Code:

Copied!
<!DOCTYPE html>
<HTml>
<heAD>
    <Title>case sensitive</TITlE>
</HeAD>
<BODY>
   <P>HTML is not case sensitive i.e we can use
   both upper or, lower case letters in the tags.
   </p>
</BOdy>
</html>

Result: 

Watch the video:


Ebook: https://softkhpc.blogspot.com/2026/11/html-tutorial-beginners.html

back to top