HTML Tutorial

HTML Tag: <rp>

Usage:

  • Used to represent a range of text that should be replaced with a corrected or updated version.

Attributes:

  • title: Provides additional information or context for the replaced text.

Examples:

  • Corrected typo:
    <p>The quick <rp>brown</rp> fox jumps over the lazy dog.</p>
    
  • Updated information:
    <p>The latest update to the software is version <rp>1.5</rp> 1.6.</p>
    

Simple HTML Example:

<!DOCTYPE html>
<body>
  <p>The <rp title="original: quick">fast</rp> fox jumps over the lazy dog.</p>
</body>
</html>

When to Use <rp>:

  • To correct errors or typos in existing text.
  • To update or modify information without losing the original content.

Accessibility:

  • The title attribute can provide additional context for screen readers or other assistive technologies.
  • Using <rp> helps maintain semantic integrity by preserving the original text while indicating that it has been modified.