How to define the text that is no longer correct in HTML5?

Given the fast-paced nature of technological advancement, the upkeep of websites and the content they host is crucial to ensure accuracy and relevance. In this regard, identifying and rectifying obsolete or inaccurate information on webpages is essential to maintain credibility and user trust. One such aspect that demands attention is the ability to mark text that is no longer correct in HTML5. By designating such text as erroneous, web developers can convey a sense of accountability and transparency, thereby fostering user confidence. In this article, we shall delve into the intricacies of defining text that is no longer correct in HTML5, presenting web artisans with the knowledge and tools to improve the quality and veracity of web content.

<s> Tag

The HTML language employs the "s" tag to indicate information that has been "crossed out," indicating that it has been labelled as removed or obsolete. If utilized to design content, the "s" tag exhibits the text as having a line through the center of it. This technique is generally utilized to signify that a section of the content has been eradicated or is no longer applicable.




To define text that is no longer correct using strikethrough tag in HTML5, follow these instructions −

  • Identify the text that needs to be marked as incorrect or outdated.

  • Surround the text with the "s" tag in the HTML code.

  • Preserve the HTML document and launch it in a web navigator to inspect the revised text with the strikethrough attribute.


In this example, the <strike> tag is implemented to establish the "no longer correct" text as strikethrough text, thereby signifying that it should not be further used. The text is confined within a paragraph (<p>) tag to ensure suitable formatting. Upon rendering this code within a web browser, the text "no longer correct" shall emerge having a horizontal line passing through it.

<!DOCTYPE html>
      <title>How to define the text that is no longer correct in HTML5?</title>
      <h4>How to define the text that is no longer correct in HTML5?</h4>
      <p>This text is <s>no longer correct</s> in HTML5.</p>


In conclusion, the fitting and suitable application of HTML5's markup language to pinpoint and rectify inaccurate text is an indispensable and vital aspect of web development. The adoption and usage of such markup language not only enhance the accessibility and user-friendliness of web content but also optimize and streamline the editing process for designers and developers. By following the comprehensive and explicit instructions and recommendations presented in this article, web artisans can confidently and competently annotate erroneous text in a methodical and meaningful manner, guaranteeing that their webpages are not only informative but also visually appealing to their audience. For designers and developers, it is imperative to be conscious and knowledgeable of the most recent innovations and progressions in HTML5's markup tongue to preserve a competitive edge and engender exceptional web content that meets the requirements and yearnings of contemporary users.

Updated on: 05-May-2023


Kickstart Your Career

Get certified by completing the course

Get Started