{"id":9266,"date":"2022-10-06T03:57:42","date_gmt":"2022-10-06T03:57:42","guid":{"rendered":"https:\/\/mdr.foobrdigital.com\/?p=9266"},"modified":"2022-10-06T03:57:42","modified_gmt":"2022-10-06T03:57:42","slug":"html-tag-4","status":"publish","type":"post","link":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/2022\/10\/06\/html-tag-4\/","title":{"rendered":"HTML <acronym> Tag"},"content":{"rendered":"\n<p>The&nbsp;&lt;acronym&gt;&nbsp;tag defines an acronym or abbreviation. To decipher an acronym, the global&nbsp;title&nbsp;attribute is used (displayed as a pop-up text prompt when you hover the mouse over an acronym).<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/mdr.foobrdigital.com\/wp-content\/uploads\/2022\/10\/image-31.png\" alt=\"\" class=\"wp-image-9267\"\/><\/figure>\n\n\n\n<p>The\u00a0&lt;acronym>\u00a0tag is a\u00a0deprecated HTML tag\u00a0and not supported in HTML5. Use the\u00a0&lt;abbr>\u00a0tag instead.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"syntax-4\">Syntax<\/h2>\n\n\n\n<p>The&nbsp;&lt;acronym&gt;&nbsp;tag comes in pairs. The content is written between the opening (&lt;acronym&gt;) and closing (&lt;\/acronym&gt;) tags.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"example-of-the-html-span-class-tag-lt-acronym-gt-span-tag-6\">Example of the HTML&nbsp;&lt;acronym&gt;&nbsp;tag:<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE html&gt;\n&lt;html&gt;\n  &lt;head&gt;\n    &lt;title&gt;Title of the document&lt;\/title&gt;\n  &lt;\/head&gt;\n  &lt;body&gt;\n    &lt;p&gt;Hover the mouse cursor over acronym HTML&lt;\/p&gt;\n    &lt;acronym title=\"Hyper Text Markup Language\"&gt;HTML&lt;\/acronym&gt;\n  &lt;\/body&gt;\n&lt;\/html&gt;<\/code><\/pre>\n\n\n\n<p>In the following example, the HTML &lt;abbr&gt; tag is used instead of&nbsp;&lt;acronym&gt;. The browser renders the characters within the &lt;abbr&gt; tag as an abbreviation or an acronym.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"example-of-the-html-lt-abbr-gt-tag-9\">Example of the HTML &lt;abbr&gt; tag:<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE html&gt;\n&lt;html&gt;\n  &lt;head&gt;\n    &lt;title&gt;Title of the document&lt;\/title&gt;\n  &lt;\/head&gt;\n  &lt;body&gt;\n    &lt;p&gt;&lt;abbr title=\"Universal Resource Locator\"&gt;URL&lt;\/abbr&gt; - This is a special form of designating an individual resource address on the Internet &lt;\/p&gt;\n  &lt;\/body&gt;\n&lt;\/html&gt;<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"default-styling-11\">Default styling<\/h2>\n\n\n\n<p>The default styling of the&nbsp;&lt;acronym&gt;&nbsp;tag varies from one browser to another:<\/p>\n\n\n\n<ul><li>Opera, Firefox, Chrome style the content with a dotted underline. And, some other browsers not only add a dotted underline but also put it in small caps.<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"attributes-13\">Attributes<\/h2>\n\n\n\n<p>The &lt;acronym> tag supports the\u00a0Global Attributes\u00a0and the\u00a0Event Attributes.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to style &lt;acronym&gt; tag?<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Common properties to alter the visual weight\/emphasis\/size of text in &lt;acronym&gt; tag:<\/h3>\n\n\n\n<ul><li>CSS font-style\u00a0property sets the style of the font. normal | italic | oblique | initial | inherit.<\/li><li>CSS font-family\u00a0property specifies a prioritized list of one or more font family names and\/or generic family names for the selected element.<\/li><li>CSS font-size\u00a0property sets the size of the font.<\/li><li>CSS font-weight\u00a0property defines whether the font should be bold or thick.<\/li><li>CSS text-transform\u00a0property controls text case and capitalization.<\/li><li>CSS text-decoration\u00a0property specifies the decoration added to text, and is a shorthand property for text-decoration-line, text-decoration-color, text-decoration-style.<\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Coloring text in &lt;acronym&gt; tag:<\/h3>\n\n\n\n<ul><li>CSS color\u00a0property describes the color of the text content and text decorations.<\/li><li>CSS background-color\u00a0property sets the background color of an element.<\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Text layout styles for &lt;acronym&gt; tag:<\/h3>\n\n\n\n<ul><li>CSS text-indent\u00a0property specifies the indentation of the first line in a text block.<\/li><li>CSS text-overflow\u00a0property specifies how overflowed content that is not displayed should be signalled to the user.<\/li><li>CSS white-space\u00a0property specifies how white-space inside an element is handled.<\/li><li>CSS word-break\u00a0property specifies where the lines should be broken.<\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Other properties worth looking at for &lt;acronym&gt; tag:<\/h3>\n\n\n\n<ul><li>CSS text-shadow\u00a0property adds shadow to text.<\/li><li>CSS text-align-last\u00a0property sets the alignment of the last line of the text.<\/li><li>CSS line-height\u00a0property specifies the height of a line.<\/li><li>CSS letter-spacing\u00a0property defines the spaces between letters\/characters in a text.<\/li><li>CSS word-spacing\u00a0property sets the spacing between words.<\/li><\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Browser support<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.w3docs.com\/build\/images\/bw_chrome.svg\" alt=\"chrome\" width=\"24\" height=\"24\"><\/th><th><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.w3docs.com\/build\/images\/bw_edge.svg\" alt=\"edge\" width=\"24\" height=\"24\"><\/th><th><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.w3docs.com\/build\/images\/bw_firefox.svg\" alt=\"firefox\" width=\"24\" height=\"24\"><\/th><th><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.w3docs.com\/build\/images\/bw_safari.svg\" alt=\"safari\" width=\"24\" height=\"24\"><\/th><th><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.w3docs.com\/build\/images\/bw_opera.svg\" alt=\"opera\" width=\"24\" height=\"24\"><\/th><\/tr><\/thead><tbody><tr><td>\u2713<\/td><td>\u2713<\/td><td>\u2713<\/td><td>\u2713<\/td><td>\u2713<\/td><\/tr><\/tbody><\/table><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>The&nbsp;&lt;acronym&gt;&nbsp;tag defines an acronym or abbreviation. To decipher an acronym, the global&nbsp;title&nbsp;attribute is used (displayed as a pop-up text prompt when you hover the mouse over an acronym). The\u00a0&lt;acronym>\u00a0tag is a\u00a0deprecated HTML tag\u00a0and not supported in HTML5. Use the\u00a0&lt;abbr>\u00a0tag instead. Syntax The&nbsp;&lt;acronym&gt;&nbsp;tag comes in pairs. The content is written between the opening (&lt;acronym&gt;) and closing [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[529],"tags":[],"_links":{"self":[{"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/posts\/9266"}],"collection":[{"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/comments?post=9266"}],"version-history":[{"count":0,"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/posts\/9266\/revisions"}],"wp:attachment":[{"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/media?parent=9266"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/categories?post=9266"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/tags?post=9266"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}