/

HTML / CSS / JavaScript Tutorial

HTML Element: <acronym>

[this page | pdf | back links]

The HTML <acronym> element was used to indicate an acronym. It is not supported in HTML 5. Instead, use the <del> or <s> element.

 

EXAMPLE:


HTML USED IN THIS EXAMPLE:
<!DOCTYPE html>
<html> <!-- Copyright (c) Nematrian Limited 2018 -->
<head></head>
<body>
Created using HTML:<br>
<acronym title="MyText">An acronym</acronym>

<br><br>Created using JavaScript:<br>
<span id="element"></span>

<script>
var x = document.createElement("ACRONYM");
x.title = "MyText";
// or use x.setAttribute("title", "MyText");
x.textContent = "An acronym";
// or use var txt = document.createTextNode("abc = def");
// x.appendChild(txt);
document.getElementById("element").appendChild(x);
</script>

</body>
</html>


NAVIGATION LINKS
Contents | Prev | Next | HTML Elements


Desktop view | Switch to Mobile