HTML5: How to specify a URL to a document that explains the reason why the text was inserted/changed?
Solution:
HTML Code:
Explanation:
- The HTML document starts with a declaration of its type and version (<!DOCTYPE html>).
- The <html> element encloses the entire HTML document.
- The <head> section contains metadata about the document, including the character encoding (<meta charset="utf-8">) and the title of the document (<title>).
- Inside the <body> section, there's a <p> element, which represents a paragraph of text.
- Within the paragraph, there's an <ins> element, which indicates inserted text. The cite attribute specifies a URL to a document that explains the reason why the text was inserted or changed. In this case, "i-answer.html" is used as a placeholder URL.
- The text "It is very informative and easy to learn tutorial for the beginners." is marked as inserted text and displayed in the paragraph.
Live Demo:
See the solution in the browser
Supported browser
![]() |
![]() |
![]() |
![]() |
![]() |
Yes | Yes | Yes | Yes | Yes |
What is the difficulty level of this exercise?
Test your Programming skills with w3resource's quiz.