<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Share Point Anchor</title>
    <description>The latest articles on DEV Community by Share Point Anchor (@anchorshare).</description>
    <link>https://dev.to/anchorshare</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F572074%2F51ddb229-b3dd-44fb-89e6-f04713fd0fe5.png</url>
      <title>DEV Community: Share Point Anchor</title>
      <link>https://dev.to/anchorshare</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/anchorshare"/>
    <language>en</language>
    <item>
      <title>HTML &lt;keygen&gt; Keygen Tag</title>
      <dc:creator>Share Point Anchor</dc:creator>
      <pubDate>Mon, 01 Mar 2021 06:10:54 +0000</pubDate>
      <link>https://dev.to/anchorshare/html-keygen-keygen-tag-15d2</link>
      <guid>https://dev.to/anchorshare/html-keygen-keygen-tag-15d2</guid>
      <description>&lt;p&gt;In HTML, the &lt;strong&gt; Keygen tag&lt;/strong&gt; is used to &lt;strong&gt;generate an encryption key&lt;/strong&gt; for passing the encrypted &lt;strong&gt;data to a server&lt;/strong&gt;. It is one of the &lt;strong&gt;new sectioning elements in HTML 5&lt;/strong&gt;. The main purpose of the &lt;strong&gt;&lt;/strong&gt; element is to &lt;strong&gt;provide a secure way&lt;/strong&gt; to authenticate users.&lt;/p&gt;

&lt;p&gt;When an HTML &lt;a href="http://&amp;lt;form"&gt;&amp;lt; &lt;strong&gt;form&amp;gt;&lt;/strong&gt;&lt;/a&gt; is submitted, the &lt;strong&gt;browser will generate two keys&lt;/strong&gt;. One is a private key and another one is a public key. The &lt;strong&gt;private key&lt;/strong&gt; stored &lt;strong&gt;locally&lt;/strong&gt; , and the &lt;strong&gt;public key&lt;/strong&gt; is &lt;strong&gt;sent to the server&lt;/strong&gt;. The public key is used to &lt;strong&gt;generate a client certificate to authenticate the user&lt;/strong&gt; for future purposes.&lt;/p&gt;

&lt;p&gt;Estimated reading time: 3 minutes&lt;/p&gt;

&lt;h2&gt;
  
  
  Syntax:
&lt;/h2&gt;

&lt;p&gt;The  tag &lt;strong&gt;doesn’t require the closing tag&lt;/strong&gt; in &lt;strong&gt;HTML&lt;/strong&gt;. But in &lt;strong&gt;XHTML&lt;/strong&gt; it contains both the &lt;strong&gt;opening  tag&lt;/strong&gt; and &lt;strong&gt;closing  tag&lt;/strong&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
&amp;lt;keygen name= "name"&amp;gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  HTML  Tag Characteristics:
&lt;/h3&gt;

&lt;p&gt;th, td{ padding: 20px; } &lt;/p&gt;

&lt;p&gt;| HTML  tag | This tag specifies a key-pair generator field used for forms |&lt;br&gt;
| Content categories | Flow content, Phrasing content, interactive content, listed, labelable, submittable, resettable form-associated element, palpable content. |&lt;br&gt;
| Permitted content | None. It is an empty element. |&lt;br&gt;
| Tag omission | Must have a start tag and end tag is not required. |&lt;br&gt;
| Permitted parents | Any HTML element that accepts phrasing content. |&lt;br&gt;
| Permitted ARIA roles | None |&lt;br&gt;
| DOM interface | HTMLKeygenElement |&lt;/p&gt;

&lt;h2&gt;
  
  
  Sample of the HTML  Tag:
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html&amp;gt;
  &amp;lt;head&amp;gt;
    &amp;lt;title&amp;gt;HTML &amp;lt;keygen&amp;gt; Tag&amp;lt;/title&amp;gt;
  &amp;lt;/head&amp;gt;
  &amp;lt;body&amp;gt;
&amp;lt;h2&amp;gt;Example of the HTML &amp;lt;keygen&amp;gt; Tag&amp;lt;/h2&amp;gt;
    &amp;lt;form action="/form/submit" method="get"&amp;gt;
      &amp;lt;keygen name="rsaPublicKey" keytype="RSA"&amp;gt;
        User Name:
        &amp;lt;input type="text" name="usr_name"&amp;gt;
        &amp;lt;input type="submit"&amp;gt;
    &amp;lt;/form&amp;gt;
  &amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Note&lt;/strong&gt; : The functionality of &lt;strong&gt;&lt;/strong&gt; the element in HTML &lt;strong&gt;depended on the web browser&lt;/strong&gt; and the corresponding web server program.&lt;/p&gt;

&lt;h2&gt;
  
  
  Result:
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--SD7t7hte--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://sharepointanchor.com/wp-content/uploads/2021/02/result-47.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--SD7t7hte--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://sharepointanchor.com/wp-content/uploads/2021/02/result-47.png" alt=""&gt;&lt;/a&gt;Result&lt;/p&gt;

&lt;h3&gt;
  
  
  Download Sample File:
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://sharepointanchor.com/wp-content/uploads/2021/02/HTML-keygen-tag.html"&gt;HTML-keygen-tag&lt;/a&gt;&lt;a href="https://sharepointanchor.com/wp-content/uploads/2021/02/HTML-keygen-tag.html"&gt;Download&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Attributes:
&lt;/h2&gt;

&lt;p&gt;The &lt;strong&gt;HTML keygen tag&lt;/strong&gt; supports both the &lt;strong&gt;Global Attributes&lt;/strong&gt; and &lt;strong&gt;Event Attributes&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;th, td{ padding: 20px; } &lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Attribute&lt;/th&gt;
&lt;th&gt;Value&lt;/th&gt;
&lt;th&gt;Description&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;autofocus&lt;/td&gt;
&lt;td&gt;autofocus&lt;/td&gt;
&lt;td&gt;This attribute is used to &lt;strong&gt;define the loading of the page the element must automatically receive a focus&lt;/strong&gt;. &lt;strong&gt;Not supported in Internet Explorer and Firefox.&lt;/strong&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;challenge&lt;/td&gt;
&lt;td&gt;challenge&lt;/td&gt;
&lt;td&gt;It defines the &lt;strong&gt;call string&lt;/strong&gt; , that is &lt;strong&gt;passed along with the public key&lt;/strong&gt;. The attribute value is any text string. If the attribute isn’t specified, the default is an empty string.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;disabled&lt;/td&gt;
&lt;td&gt;disabled&lt;/td&gt;
&lt;td&gt;This indicates that the &lt;strong&gt; element must be disabled&lt;/strong&gt;.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;form&lt;/td&gt;
&lt;td&gt;form_id&lt;/td&gt;
&lt;td&gt;The form element will help to &lt;strong&gt;indicate the identifier of the form&lt;/strong&gt; or forms to which the &lt;strong&gt;&lt;/strong&gt; element belongs. &lt;strong&gt;Not supported in Internet Explorer.&lt;/strong&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;keytype&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;It defines the &lt;strong&gt;key-encryption algorithm&lt;/strong&gt;.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;rsa&lt;/td&gt;
&lt;td&gt;From the key type attribute, the user can choose &lt;strong&gt;between high and medium security&lt;/strong&gt; (the default value).&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;dsa&lt;/td&gt;
&lt;td&gt;Used to &lt;strong&gt;select the key size&lt;/strong&gt;.&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ec&lt;/td&gt;
&lt;td&gt;The user can choose between &lt;strong&gt;high and medium security&lt;/strong&gt;. &lt;strong&gt;Not supported in Internet Explorer and Safari.&lt;/strong&gt;
&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;name&lt;/td&gt;
&lt;td&gt;name&lt;/td&gt;
&lt;td&gt;Helps to &lt;strong&gt;define the name of the  element&lt;/strong&gt;.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Browser Support:
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--SUyOdMUp--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://sharepointanchor.com/wp-content/uploads/2021/02/browsre.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--SUyOdMUp--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://sharepointanchor.com/wp-content/uploads/2021/02/browsre.png" alt=""&gt;&lt;/a&gt;Result&lt;/p&gt;

&lt;h3&gt;
  
  
  Related Articles:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;&lt;a href="https://sharepointanchor.com/learn-html/html-form-tag/"&gt;HTML  Form Tag&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;a href="https://sharepointanchor.com/learn-html/html-datalist-data-list-tag/"&gt;HTML  Data List Tag&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://sharepointanchor.com/learn-html/basic-html-definitions-and-usages-in-real-world/"&gt;&lt;strong&gt;Basic HTML Definitions and Usages in the Real World&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;a href="https://sharepointanchor.com/learn-html/html-applet-tag/"&gt;HTML  Applet Tag&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;a href="https://sharepointanchor.com/learn-html/html-tag/"&gt;HTML  Tag&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The post &lt;a href="https://sharepointanchor.com/learn-html/html-keygen-tag/"&gt;HTML &lt;code&gt;&lt;/code&gt; Keygen Tag&lt;/a&gt; appeared first on &lt;a href="https://sharepointanchor.com"&gt;Share Point Anchor&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>learnhtml</category>
      <category>htmlk</category>
    </item>
    <item>
      <title>HTML &lt;isindex&gt; IsIndex Tag</title>
      <dc:creator>Share Point Anchor</dc:creator>
      <pubDate>Thu, 25 Feb 2021 05:10:59 +0000</pubDate>
      <link>https://dev.to/anchorshare/html-isindex-isindex-tag-4ool</link>
      <guid>https://dev.to/anchorshare/html-isindex-isindex-tag-4ool</guid>
      <description>&lt;p&gt;In HTML, the  &lt;strong&gt;IsIndex tag&lt;/strong&gt; is used to &lt;strong&gt;display the search string&lt;/strong&gt; in the current document. It provides a single-line text input on a page to query a document. This tag uses the &lt;strong&gt;“prompt”&lt;/strong&gt; and &lt;strong&gt;“action”&lt;/strong&gt; attributes.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Note&lt;/strong&gt; : The &lt;strong&gt;&lt;/strong&gt; tag is &lt;strong&gt;deprecated in HTML&lt;/strong&gt; , and it is &lt;strong&gt;not available in HTML 5&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;The &lt;strong&gt;&lt;/strong&gt; tag can be placed anywhere in the HTML document, but it is recommended to integrate it within the &lt;strong&gt;&lt;/strong&gt; element. This tag is mainly used to &lt;strong&gt;search for any specific word&lt;/strong&gt; in a long article but it is no more useful these days.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Info&lt;/strong&gt; : Nowadays all the browsers contain the &lt;strong&gt;search feature&lt;/strong&gt; by pressing the &lt;strong&gt;CTRL + F&lt;/strong&gt; keys, it will let you search the word.&lt;/p&gt;

&lt;p&gt;Estimated reading time: 3 minutes&lt;/p&gt;

&lt;h2&gt;
  
  
  Syntax:
&lt;/h2&gt;

&lt;p&gt;The &lt;strong&gt;&lt;/strong&gt; tag does &lt;strong&gt;not contain the closing tag&lt;/strong&gt; in &lt;strong&gt;HTML&lt;/strong&gt;. But in &lt;strong&gt;XHTML&lt;/strong&gt; it consists of both the &lt;strong&gt;starting  tag&lt;/strong&gt; and the &lt;strong&gt;ending tag&lt;/strong&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
&amp;lt;isindex prompt=" " action=" "&amp;gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Sample of the HTML  Tag:
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html&amp;gt;
  &amp;lt;head&amp;gt;
    &amp;lt;isindex prompt="Search your document"&amp;gt;
  &amp;lt;/head&amp;gt;
&amp;lt;/html&amp;gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Result:
&lt;/h2&gt;

&lt;p&gt;All major browsers have now &lt;strong&gt;removed the  tag&lt;/strong&gt; , so avoid using it.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Hs_EMz0j--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://s.w.org/images/core/emoji/13.0.1/72x72/1f4a1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Hs_EMz0j--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://s.w.org/images/core/emoji/13.0.1/72x72/1f4a1.png" alt="💡"&gt;&lt;/a&gt; &lt;strong&gt;Tips&lt;/strong&gt; : You can use the &lt;strong&gt;&lt;/strong&gt; tag with the &lt;strong&gt;&lt;/strong&gt; tag, to define a single line input field that executes the same function of the &lt;strong&gt;&lt;/strong&gt; tag.&lt;/p&gt;

&lt;h3&gt;
  
  
  Example:
&lt;/h3&gt;

&lt;p&gt;Here is the sample for creating a search box by using the &lt;strong&gt;&lt;/strong&gt; and &lt;strong&gt;&lt;/strong&gt; tags with the &lt;strong&gt;&lt;/strong&gt; element.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html&amp;gt;
  &amp;lt;head&amp;gt;
    &amp;lt;form action="/search"&amp;gt;
  &amp;lt;hr&amp;gt;
  &amp;lt;label&amp;gt;
    Search Document
    &amp;lt;input name="isindex"&amp;gt;
  &amp;lt;/label&amp;gt;
  &amp;lt;hr&amp;gt;
&amp;lt;/form&amp;gt;
  &amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
&amp;lt;h2&amp;gt;This is the sample heading&amp;lt;/h2&amp;gt;
&amp;lt;p&amp;gt;This is the sample paragraph&amp;lt;/p&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Result:
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--PhsH7mxW--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://sharepointanchor.com/wp-content/uploads/2021/02/result-46.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--PhsH7mxW--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://sharepointanchor.com/wp-content/uploads/2021/02/result-46.png" alt=""&gt;&lt;/a&gt;Result&lt;/p&gt;

&lt;h2&gt;
  
  
  Attributes:
&lt;/h2&gt;

&lt;p&gt;The HTML IsIndex &lt;strong&gt;&lt;/strong&gt; tag supports the &lt;strong&gt;Global Attributes&lt;/strong&gt; and the &lt;strong&gt;Event Attributes&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;th, td{ padding: 20px; } &lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Attribute&lt;/th&gt;
&lt;th&gt;Value&lt;/th&gt;
&lt;th&gt;Description&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;prompt&lt;/td&gt;
&lt;td&gt;hint-text&lt;/td&gt;
&lt;td&gt;It is used to &lt;strong&gt;specify the text string&lt;/strong&gt; that is displayed in front of the search query input field. If this attribute is not specified, the default browser will display its own text.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;action&lt;/td&gt;
&lt;td&gt;URL&lt;/td&gt;
&lt;td&gt;It defines the &lt;strong&gt;URL programs&lt;/strong&gt; , which perform the search.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Browser Support:
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--0JF5zLhZ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://sharepointanchor.com/wp-content/uploads/2021/02/browser-6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--0JF5zLhZ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://sharepointanchor.com/wp-content/uploads/2021/02/browser-6.png" alt=""&gt;&lt;/a&gt;Browser support&lt;/p&gt;

&lt;h3&gt;
  
  
  Related Articles:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;&lt;a href="https://sharepointanchor.com/learn-html/html-embed-tag/"&gt;HTML  Embed Tag&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://sharepointanchor.com/learn-html/html-em-emphasis-tag/"&gt;&lt;strong&gt;HTML &lt;em&gt; Emphasis Tag&lt;/em&gt;&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;a href="https://sharepointanchor.com/learn-html/basic-html-definitions-and-usages-in-real-world/"&gt;Basic HTML Definitions and Usages in the Real World&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;a href="https://sharepointanchor.com/learn-html/html-dir-directory-tag/"&gt;HTML  Directory Tag&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;a href="https://sharepointanchor.com/learn-html/html-col-column-tag/"&gt;HTML &lt;col&gt; Column Tag&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The post &lt;a href="https://sharepointanchor.com/learn-html/html-isindex-tag/"&gt;HTML &lt;code&gt;&lt;/code&gt; IsIndex Tag&lt;/a&gt; appeared first on &lt;a href="https://sharepointanchor.com"&gt;Share Point Anchor&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>learnhtml</category>
      <category>htmli</category>
    </item>
    <item>
      <title>HTML &lt;legend&gt; Legend Tag</title>
      <dc:creator>Share Point Anchor</dc:creator>
      <pubDate>Thu, 25 Feb 2021 05:03:21 +0000</pubDate>
      <link>https://dev.to/anchorshare/html-legend-legend-tag-2lj5</link>
      <guid>https://dev.to/anchorshare/html-legend-legend-tag-2lj5</guid>
      <description>&lt;p&gt;The &lt;strong&gt; Legend tag&lt;/strong&gt; is used to &lt;strong&gt;define the caption or title&lt;/strong&gt; for its parent element in an HTML document. It is the &lt;strong&gt;first child element&lt;/strong&gt; of the &lt;strong&gt;&lt;/strong&gt; tag. The  tag is used to &lt;strong&gt;assign the caption&lt;/strong&gt; for the &lt;strong&gt;&lt;/strong&gt; element.&lt;/p&gt;

&lt;p&gt;This tag is also used to &lt;strong&gt;specify the titles&lt;/strong&gt; for form sections being an alternative to the &lt;strong&gt;&lt;h1&gt;-&lt;h6&gt; heading&lt;/h6&gt;
&lt;/h1&gt;&lt;/strong&gt; tags. By using the &lt;strong&gt;&lt;/strong&gt; tag with &lt;strong&gt;&lt;/strong&gt; elements, it is easy to &lt;strong&gt;understand the purpose of grouped form&lt;/strong&gt; elements.&lt;/p&gt;

&lt;p&gt;Estimated reading time: 4 minutes&lt;/p&gt;
&lt;h2&gt;
  
  
  Syntax:
&lt;/h2&gt;

&lt;p&gt;This tag contains both the &lt;strong&gt;starting  tag&lt;/strong&gt; and the &lt;strong&gt;ending  tag&lt;/strong&gt;. The content is written between these two tags.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
&amp;lt;legend&amp;gt; Title &amp;lt;/legend&amp;gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  HTML  Tag Characteristics:
&lt;/h3&gt;

&lt;p&gt;th, td{ padding: 20px; } &lt;/p&gt;

&lt;p&gt;| HTML  tag | Represent the caption for the contents. |&lt;br&gt;
| Content categories | None |&lt;br&gt;
| Permitted content | Phrasing content and headings (h1-h6 elements) |&lt;br&gt;
| Tag omission | None, both opening and closing tags are mandatory. |&lt;br&gt;
| Permitted parents | It is the first child element for &lt;/p&gt; tag. |&lt;br&gt;
| Implicit ARIA role | No corresponding role |&lt;br&gt;
| Permitted ARIA roles | No role permitted |&lt;br&gt;
| DOM interface | HTMLLegendElement |
&lt;h2&gt;
  
  
  Sample of the HTML  Tag:
&lt;/h2&gt;



&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html&amp;gt;
  &amp;lt;head&amp;gt;
    &amp;lt;title&amp;gt;HTML &amp;lt;legend&amp;gt; Tag&amp;lt;/title&amp;gt;
  &amp;lt;/head&amp;gt;
  &amp;lt;body&amp;gt;
&amp;lt;h2&amp;gt;Example of HTML &amp;lt;legend&amp;gt; Tag&amp;lt;/h2&amp;gt;
    &amp;lt;form&amp;gt;
      &amp;lt;fieldset&amp;gt;
        &amp;lt;legend&amp;gt;Personal Information:&amp;lt;/legend&amp;gt;
        First Name:
        &amp;lt;input type="text"&amp;gt;
        &amp;lt;br&amp;gt;
    &amp;lt;br&amp;gt; Last Name:
        &amp;lt;input type="text"&amp;gt;
        &amp;lt;br&amp;gt;
        &amp;lt;br&amp;gt; E-mail ID:
        &amp;lt;input type="email"&amp;gt;
        &amp;lt;br&amp;gt;
        &amp;lt;br&amp;gt; Date of Birth:
        &amp;lt;input type="number"&amp;gt;
        &amp;lt;br/&amp;gt;
        &amp;lt;br/&amp;gt; Birth Place:
        &amp;lt;input type="text"&amp;gt;
      &amp;lt;/fieldset&amp;gt;
    &amp;lt;/form&amp;gt;
  &amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;

&lt;/code&gt;&lt;/pre&gt;



&lt;h2&gt;
  
  
  Result:
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--WCUUlWUO--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://sharepointanchor.com/wp-content/uploads/2021/02/result-45.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--WCUUlWUO--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://sharepointanchor.com/wp-content/uploads/2021/02/result-45.png" alt=""&gt;&lt;/a&gt;Result&lt;/p&gt;

&lt;h3&gt;
  
  
  Download Sample File:
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://sharepointanchor.com/wp-content/uploads/2021/02/HTML-legend-tag.html"&gt;HTML-legend-tag&lt;/a&gt;&lt;a href="https://sharepointanchor.com/wp-content/uploads/2021/02/HTML-legend-tag.html"&gt;Download&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Use CSS property to style an HTML  Tag:
&lt;/h2&gt;

&lt;p&gt;You can also use the &lt;strong&gt;CSS styling property&lt;/strong&gt; to change the initial appearance of the legend.&lt;/p&gt;

&lt;h3&gt;
  
  
  Sample of the HTML  tag with CSS:
&lt;/h3&gt;



&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html&amp;gt;
  &amp;lt;head&amp;gt;
    &amp;lt;title&amp;gt;HTML &amp;lt;legend&amp;gt; Tag&amp;lt;/title&amp;gt;
    &amp;lt;style&amp;gt;
      form {
        width: 55%;
      }
      fieldset {
        padding: 25px;
      }
      label {
        display: inline-block;
        width: 95px;
        text-align: right;
      }
      legend {
        display: block;
        padding: 15px;
        margin-bottom: 10px;
        background-color: #43156D;
        color: white;
      }
    &amp;lt;/style&amp;gt;
  &amp;lt;/head&amp;gt;
  &amp;lt;body&amp;gt;
   &amp;lt;h2&amp;gt;Example of HTML &amp;lt;legend&amp;gt; Tag with CSS&amp;lt;/h2&amp;gt;
    &amp;lt;form&amp;gt;
      &amp;lt;fieldset&amp;gt;
        &amp;lt;legend&amp;gt;Personal data:&amp;lt;/legend&amp;gt;
        &amp;lt;label&amp;gt;Name:&amp;lt;/label&amp;gt;
        &amp;lt;input type="text"&amp;gt;
        &amp;lt;br/&amp;gt;
        &amp;lt;br/&amp;gt;
        &amp;lt;label&amp;gt;E-mail:&amp;lt;/label&amp;gt;
        &amp;lt;input type="email"&amp;gt;
        &amp;lt;br/&amp;gt;
        &amp;lt;br/&amp;gt;
        &amp;lt;label&amp;gt;Date of birth:&amp;lt;/label&amp;gt;
        &amp;lt;input type="number"&amp;gt;
        &amp;lt;br/&amp;gt;
        &amp;lt;br/&amp;gt;
        &amp;lt;label&amp;gt;Birth Place:&amp;lt;/label&amp;gt;
        &amp;lt;input type="text"&amp;gt;
      &amp;lt;/fieldset&amp;gt;
    &amp;lt;/form&amp;gt;
  &amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;

&lt;/code&gt;&lt;/pre&gt;



&lt;h3&gt;
  
  
  Result:
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--I78WJBuA--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://sharepointanchor.com/wp-content/uploads/2021/02/resu.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--I78WJBuA--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://sharepointanchor.com/wp-content/uploads/2021/02/resu.png" alt=""&gt;&lt;/a&gt;Result&lt;/p&gt;

&lt;h2&gt;
  
  
  Attributes:
&lt;/h2&gt;

&lt;p&gt;The HTML legend tag supports both the &lt;strong&gt;Global Attributes&lt;/strong&gt; and &lt;strong&gt;Event Attributes&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;th, td{ padding: 20px; } &lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Attributes&lt;/th&gt;
&lt;th&gt;Value&lt;/th&gt;
&lt;th&gt;Description&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;align&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;ul&gt;
&lt;li&gt;top&lt;/li&gt;
&lt;li&gt;bottom&lt;/li&gt;
&lt;li&gt;left&lt;/li&gt;
&lt;li&gt;right
| This value helps to define the &lt;strong&gt;alignment of the caption&lt;/strong&gt;. &lt;strong&gt;It is not supported in HTML 5.&lt;/strong&gt; |&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Styling Methods for  Tag:
&lt;/h2&gt;

&lt;p&gt;You can use the following properties to style an HTML legend tag.&lt;/p&gt;

&lt;h3&gt;
  
  
  Properties to style the visual weight/emphasis/size of the text in  tag:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;CSS font-style&lt;/strong&gt; – This CSS property helps to set the font style of the text such as normal, italic, oblique, initial, inherit.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CSS font-family&lt;/strong&gt; – This CSS property specifies a prioritized list of one or more font family names or generic family names for the selected element.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CSS font-size&lt;/strong&gt; – This CSS property will help to set the size of the font.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CSS font-weight&lt;/strong&gt; – This CSS property used to define whether the font should be bold or thick.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CSS text-transform&lt;/strong&gt; – This CSS property will control the text case and capitalization.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CSS test-decoration&lt;/strong&gt; – This CSS property specifies the decoration added to text such as &lt;strong&gt;text-decoration-line&lt;/strong&gt; , &lt;strong&gt;text-decoration-color&lt;/strong&gt; , &lt;strong&gt;text-decoration- style&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Styles to coloring the text in  Tag:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;CSS color&lt;/strong&gt; – This CSS property will specify the color of the text content and decorations.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CSS background-color&lt;/strong&gt; – This CSS property helps to set the background color of an element. &lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Text layout styles for  Tag:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;CSS text-indent&lt;/strong&gt; – This CSS property is used to specify the indentation of the first line in a text block.&lt;/li&gt;
&lt;li&gt;*&lt;em&gt;CSS text-overflow *&lt;/em&gt; – This CSS property helps to describe how overflowed content that is not displayed should be signaled to the user.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CSS white-space&lt;/strong&gt; – This CSS property describes how white-space inside an element is handled.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CSS word-break&lt;/strong&gt;  – This CSS property decides where the lines should be broken.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Other Properties for  Tag:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;CSS text-shadow&lt;/strong&gt;  – This CSS property helps to add the shadow to text.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CSS text-align-last&lt;/strong&gt;  – This CSS property will set the alignment of the last line of the text.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CSS line-height&lt;/strong&gt; – This CSS property defines the height of a line.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CSS letter-spacing&lt;/strong&gt; – This CSS property helps to decide the spaces between letters/characters in a text.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CSS word-spacing&lt;/strong&gt; – This CSS property specifies the spacing between every word.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Browser Support:
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--B1jPk3w2--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://sharepointanchor.com/wp-content/uploads/2021/02/Browser-Support-10.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--B1jPk3w2--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://sharepointanchor.com/wp-content/uploads/2021/02/Browser-Support-10.png" alt=""&gt;&lt;/a&gt;Browser Support&lt;/p&gt;

&lt;h3&gt;
  
  
  Related Articles:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;&lt;a href="https://sharepointanchor.com/learn-html/html-caption-tag/"&gt;HTML  Caption Tag&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;a href="https://sharepointanchor.com/learn-html/html-figcaption-figure-caption-tag/"&gt;HTML  Figure Caption Tag&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;a href="https://sharepointanchor.com/learn-html/basic-html-definitions-and-usages-in-real-world/"&gt;Basic HTML Definitions and Usages in the Real World&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;a href="https://sharepointanchor.com/learn-html/html-figure-tag/"&gt;HTML  Figure Tag&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;a href="https://sharepointanchor.com/learn-html/html-code-tag/"&gt;HTML &lt;code&gt; Code Tag&lt;/code&gt;&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The post &lt;a href="https://sharepointanchor.com/learn-html/html-legend-tag/"&gt;HTML &lt;code&gt;&lt;/code&gt; Legend Tag&lt;/a&gt; appeared first on &lt;a href="https://sharepointanchor.com"&gt;Share Point Anchor&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>learnhtml</category>
      <category>htmll</category>
    </item>
    <item>
      <title>HTML &lt;img&gt; Image Tag</title>
      <dc:creator>Share Point Anchor</dc:creator>
      <pubDate>Thu, 25 Feb 2021 05:02:03 +0000</pubDate>
      <link>https://dev.to/anchorshare/html-img-image-tag-238p</link>
      <guid>https://dev.to/anchorshare/html-img-image-tag-238p</guid>
      <description>&lt;p&gt;In HTML, the &lt;strong&gt;&lt;a href="" class="article-body-image-wrapper"&gt;&lt;img&gt;&lt;/a&gt; Image tag&lt;/strong&gt; is used to &lt;strong&gt;display the image&lt;/strong&gt; on the web page. Images are not directly inserted into the document, they are linked to the HTML pages. The &lt;a href="" class="article-body-image-wrapper"&gt;&lt;img&gt;&lt;/a&gt; tag &lt;strong&gt;creates a holding space&lt;/strong&gt; for the referenced image. It can be styled and manipulated using &lt;strong&gt;CSS properties&lt;/strong&gt;.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;There are two required attributes for a &lt;img&gt; tag. They are:

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Src attribute&lt;/strong&gt; – Define the &lt;strong&gt;path of the image&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Alt attribute&lt;/strong&gt; – It specifies the &lt;strong&gt;alternate text for the image&lt;/strong&gt;. &lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Hs_EMz0j--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://s.w.org/images/core/emoji/13.0.1/72x72/1f4a1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Hs_EMz0j--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://s.w.org/images/core/emoji/13.0.1/72x72/1f4a1.png" alt="💡"&gt;&lt;/a&gt; &lt;strong&gt;Tips&lt;/strong&gt; : You can also make the &lt;strong&gt;HTML images clickable&lt;/strong&gt; , by using the &lt;strong&gt;&lt;a href="" class="article-body-image-wrapper"&gt;&lt;img&gt;&lt;/a&gt;&lt;/strong&gt; tag inside the &lt;strong&gt;&lt;a href="https://sharepointanchor.com/learn-html/html-anchor-tag/"&gt;&lt;/a&gt;&lt;a&gt;&lt;/a&gt;&lt;/strong&gt; tag.&lt;/p&gt;

&lt;p&gt;Estimated reading time: 6 minutes&lt;/p&gt;

&lt;h2&gt;
  
  
  Syntax:
&lt;/h2&gt;

&lt;p&gt;The &lt;a href="" class="article-body-image-wrapper"&gt;&lt;img&gt;&lt;/a&gt; tag &lt;strong&gt;does not require the closing tag&lt;/strong&gt; in &lt;strong&gt;HTML&lt;/strong&gt;. But in &lt;strong&gt;XHTML&lt;/strong&gt; , it contains both the &lt;strong&gt;opening &lt;a href="" class="article-body-image-wrapper"&gt;&lt;img&gt;&lt;/a&gt; tag&lt;/strong&gt; and &lt;strong&gt;closing &lt;a href="" class="article-body-image-wrapper"&gt;&lt;img&gt;&lt;/a&gt; tag&lt;/strong&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
&amp;lt;img src="URL" alt="text"&amp;gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Sample of the HTML &lt;img&gt; Tag:
&lt;/h2&gt;

&lt;p&gt;Here is the example for HTML image tag.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html&amp;gt;
  &amp;lt;head&amp;gt;
    &amp;lt;title&amp;gt;HTML &amp;lt;img&amp;gt; Tag&amp;lt;/title&amp;gt;
  &amp;lt;/head&amp;gt;
  &amp;lt;body&amp;gt;
    &amp;lt;h2&amp;gt;Example of the HTML &amp;lt;img&amp;gt; Tag&amp;lt;/h2&amp;gt;
    &amp;lt;p&amp;gt;Share Ponit Anchor&amp;lt;/p&amp;gt;
    &amp;lt;img src="https://sharepointanchor.com/wp-content/uploads/2021/01/SPA-LOGO.png" alt="SPA Logo"&amp;gt;
  &amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://sharepointanchor.com/code/html/image-tag/image-tag-example-1.html"&gt;Try it Yourself Online&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Result:
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--g-_jWxdh--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://sharepointanchor.com/wp-content/uploads/2021/02/result-43.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--g-_jWxdh--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://sharepointanchor.com/wp-content/uploads/2021/02/result-43.png" alt=""&gt;&lt;/a&gt;Result&lt;/p&gt;

&lt;h3&gt;
  
  
  Download Sample File:
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://sharepointanchor.com/wp-content/uploads/2021/02/HTML-img-tag.html"&gt;HTML-img-tag&lt;/a&gt;&lt;a href="https://sharepointanchor.com/wp-content/uploads/2021/02/HTML-img-tag.html"&gt;Download&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Use CSS property to style the &lt;img&gt; tag:
&lt;/h2&gt;

&lt;p&gt;You can also use the &lt;strong&gt;CSS styling property&lt;/strong&gt; to change the initial appearance of an image.&lt;/p&gt;

&lt;h3&gt;
  
  
  Sample of the &lt;strong&gt;&lt;img&gt;&lt;/strong&gt; tag with &lt;strong&gt;CSS property&lt;/strong&gt; :
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html&amp;gt;
  &amp;lt;head&amp;gt;
    &amp;lt;title&amp;gt;HTML &amp;lt;img&amp;gt; Tag&amp;lt;/title&amp;gt;
    &amp;lt;style&amp;gt;
      img {
      border-radius: 10%;
      border: 2px dashed #C40655;
      width: 250px;
      display: block;
      margin: 0 auto;
      }
    &amp;lt;/style&amp;gt;
  &amp;lt;/head&amp;gt;
  &amp;lt;body&amp;gt;
   &amp;lt;h2&amp;gt;Example of the HTML &amp;lt;img&amp;gt; Tag&amp;lt;/h2&amp;gt;
    &amp;lt;div&amp;gt;
     &amp;lt;img src="https://sharepointanchor.com/wp-content/uploads/2021/01/SPA-LOGO.png" alt="SPA Logo"&amp;gt;
    &amp;lt;/div&amp;gt;
  &amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://sharepointanchor.com/code/html/image-tag/image-tag-example-2.html"&gt;Try it Yourself Online&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Result:
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--4je6hExR--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://sharepointanchor.com/wp-content/uploads/2021/02/res-css.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--4je6hExR--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://sharepointanchor.com/wp-content/uploads/2021/02/res-css.png" alt=""&gt;&lt;/a&gt;Result&lt;/p&gt;

&lt;h2&gt;
  
  
  Src and Alt Attributes:
&lt;/h2&gt;

&lt;p&gt;The &lt;strong&gt;“src”&lt;/strong&gt; attribute stands for &lt;strong&gt;source&lt;/strong&gt;. This attribute tells the browser &lt;strong&gt;where to find the image&lt;/strong&gt; you want to display. The value of the &lt;strong&gt;href&lt;/strong&gt; attribute can be either the &lt;strong&gt;file name or its URL&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;The &lt;strong&gt;“alt”&lt;/strong&gt; attribute stands for &lt;strong&gt;alternate text&lt;/strong&gt;. This attribute is used to inform the browser that &lt;strong&gt;if it can’t find the image, then just display the given text&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Hs_EMz0j--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://s.w.org/images/core/emoji/13.0.1/72x72/1f4a1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Hs_EMz0j--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://s.w.org/images/core/emoji/13.0.1/72x72/1f4a1.png" alt="💡"&gt;&lt;/a&gt; &lt;strong&gt;Tips&lt;/strong&gt; : It is recommended to include keywords in &lt;strong&gt;“alternate text”&lt;/strong&gt; , it will improve the ranking of the website in search engines.&lt;/p&gt;

&lt;h3&gt;
  
  
  Sample of the HTML &lt;img&gt; tag with the src and alt attributes:
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html&amp;gt;
  &amp;lt;head&amp;gt;
    &amp;lt;title&amp;gt;HTML &amp;lt;img&amp;gt; Tag&amp;lt;/title&amp;gt;
  &amp;lt;/head&amp;gt;
  &amp;lt;body&amp;gt;
  &amp;lt;h2&amp;gt;Example of the HTML &amp;lt;img&amp;gt; Tag&amp;lt;/h2&amp;gt;
    &amp;lt;img src="https://sharepointanchor.com/wp-content/uploads/2021/01/SPA-LOGO.png" alt="SPA Logo" width="256" height="256"&amp;gt;
  &amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://sharepointanchor.com/code/html/image-tag/image-tag-example-3.html"&gt;Try it Yourself Online&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Note&lt;/strong&gt; : Always try to insert the image with height and width, else it may flicker while displaying on a webpage.&lt;/p&gt;

&lt;h3&gt;
  
  
  Result:
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--b75krNvn--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://sharepointanchor.com/wp-content/uploads/2021/02/result-1-10.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--b75krNvn--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://sharepointanchor.com/wp-content/uploads/2021/02/result-1-10.png" alt=""&gt;&lt;/a&gt;Result&lt;/p&gt;

&lt;h2&gt;
  
  
  HTML &lt;img&gt; tag with “loading” Attribute:
&lt;/h2&gt;

&lt;p&gt;In HTML, there is a new &lt;strong&gt;loading attribute&lt;/strong&gt; is available to &lt;strong&gt;deferring image and iframe loading&lt;/strong&gt; until they are close to being shown. This is one of the parts of &lt;strong&gt;Chromium (as of v76)&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;The loading attribute will support the following values:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Lazy&lt;/strong&gt; – It delays the &lt;strong&gt;load until the image or iframe reaches a distance&lt;/strong&gt; threshold from the viewport.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Eager&lt;/strong&gt; – This value loads the resource &lt;strong&gt;immediately&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Auto&lt;/strong&gt; – It is the &lt;strong&gt;default behavior&lt;/strong&gt; , loads the resource.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Supported Images Formats:
&lt;/h2&gt;

&lt;p&gt;The HTML standard doesn’t list what image formats to support, so each user agent supports different formats.&lt;/p&gt;

&lt;p&gt;Here is the image file formats that are most commonly used on the web page:&lt;/p&gt;

&lt;p&gt;th, td{ padding: 20px; } &lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Abbreviation&lt;/th&gt;
&lt;th&gt;File Format&lt;/th&gt;
&lt;th&gt;MIME Type&lt;/th&gt;
&lt;th&gt;File Extensions&lt;/th&gt;
&lt;th&gt;Browser Compatibility&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://en.wikipedia.org/wiki/APNG"&gt;APNG&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Animated Portable Network Graphics&lt;/td&gt;
&lt;td&gt;image/apng&lt;/td&gt;
&lt;td&gt;.apng&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;ul&gt;
&lt;li&gt;Chrome&lt;/li&gt;
&lt;li&gt;Edge&lt;/li&gt;
&lt;li&gt;Firefox&lt;/li&gt;
&lt;li&gt;Opera&lt;/li&gt;
&lt;li&gt;Safari
|
| &lt;a href="https://en.wikipedia.org/wiki/BMP_file_format"&gt;BMP&lt;/a&gt; | Bitmap file | image/bmp | .bmp | &lt;/li&gt;
&lt;li&gt;Chrome&lt;/li&gt;
&lt;li&gt;Edge&lt;/li&gt;
&lt;li&gt;Firefox&lt;/li&gt;
&lt;li&gt;Opera&lt;/li&gt;
&lt;li&gt;Safari
|
| &lt;a href="https://en.wikipedia.org/wiki/GIF"&gt;GIF&lt;/a&gt; | Graphics Interchange Format | image/gif | .gif | &lt;/li&gt;
&lt;li&gt;Chrome&lt;/li&gt;
&lt;li&gt;Edge&lt;/li&gt;
&lt;li&gt;Firefox&lt;/li&gt;
&lt;li&gt;Opera&lt;/li&gt;
&lt;li&gt;Safari
|
| &lt;a href="https://en.wikipedia.org/wiki/ICO_(file_format)"&gt;ICO&lt;/a&gt; | Microsoft Icon | image/x-icon | &lt;/li&gt;
&lt;li&gt;.ico&lt;/li&gt;
&lt;li&gt;.cur
| &lt;/li&gt;
&lt;li&gt;Chrome&lt;/li&gt;
&lt;li&gt;Edge&lt;/li&gt;
&lt;li&gt;Firefox&lt;/li&gt;
&lt;li&gt;Opera&lt;/li&gt;
&lt;li&gt;Safari
|
| &lt;a href="https://en.wikipedia.org/wiki/JPEG"&gt;JPEG&lt;/a&gt; | Joint Photographic Expert Group image | image/jpeg | &lt;/li&gt;
&lt;li&gt;.jpg&lt;/li&gt;
&lt;li&gt;.jpeg&lt;/li&gt;
&lt;li&gt;.jfif&lt;/li&gt;
&lt;li&gt;.pjpeg&lt;/li&gt;
&lt;li&gt;.pjp
| &lt;/li&gt;
&lt;li&gt;Chrome&lt;/li&gt;
&lt;li&gt;Edge&lt;/li&gt;
&lt;li&gt;Firefox&lt;/li&gt;
&lt;li&gt;Opera&lt;/li&gt;
&lt;li&gt;Safari
|
| &lt;a href="https://en.wikipedia.org/wiki/Portable_Network_Graphics"&gt;PNG&lt;/a&gt; | Portable Network Graphics | image/png | .png | &lt;/li&gt;
&lt;li&gt;Chrome&lt;/li&gt;
&lt;li&gt;Edge&lt;/li&gt;
&lt;li&gt;Firefox&lt;/li&gt;
&lt;li&gt;Opera&lt;/li&gt;
&lt;li&gt;Safari
|
| &lt;a href="https://en.wikipedia.org/wiki/Scalable_Vector_Graphics"&gt;SVG&lt;/a&gt; | Scalable Vector Graphics | image/svg+xml | .svg | &lt;/li&gt;
&lt;li&gt;Chrome&lt;/li&gt;
&lt;li&gt;Edge&lt;/li&gt;
&lt;li&gt;Firefox&lt;/li&gt;
&lt;li&gt;Opera&lt;/li&gt;
&lt;li&gt;Safari
|
| &lt;a href="https://en.wikipedia.org/wiki/TIFF"&gt;TIFF&lt;/a&gt; | Tagged Image File Format | image/tiff | &lt;/li&gt;
&lt;li&gt;.tif&lt;/li&gt;
&lt;li&gt;.tiff
| None. Built-in; add-ons required |
| &lt;a href="https://en.wikipedia.org/wiki/WebP"&gt;WebP&lt;/a&gt; | Web Picture format | image/webp | .webp | &lt;/li&gt;
&lt;li&gt;Chrome&lt;/li&gt;
&lt;li&gt;Edge&lt;/li&gt;
&lt;li&gt;Firefox&lt;/li&gt;
&lt;li&gt;Opera
|&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Image Loading Errors:
&lt;/h2&gt;

&lt;p&gt;There may occur some errors while loading an image. This can happen in the following situations:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The &lt;strong&gt;“src”&lt;/strong&gt; attribute is empty &lt;strong&gt;(” “)&lt;/strong&gt; or &lt;strong&gt;“Null”&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;The &lt;strong&gt;“src”&lt;/strong&gt;  &lt;strong&gt;URL is the same as the URL of the page&lt;/strong&gt; the user is currently on.&lt;/li&gt;
&lt;li&gt;Some &lt;strong&gt;corruption of the image&lt;/strong&gt; prevents it from being loaded.&lt;/li&gt;
&lt;li&gt;The &lt;strong&gt;metadata of the image is corrupted&lt;/strong&gt; in such a way that makes it impossible to retrieve its dimensions, and there are no dimensions specified in the attributes of the &lt;img&gt; tag.&lt;/li&gt;
&lt;li&gt;The &lt;strong&gt;file format is not supported&lt;/strong&gt; by the user agent.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Attributes:
&lt;/h2&gt;

&lt;p&gt;The HTML image tag supports the &lt;strong&gt;Global Attributes&lt;/strong&gt; and the &lt;strong&gt;Event Attributes&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;th, td{ padding: 20px; } &lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Attribute&lt;/th&gt;
&lt;th&gt;Value&lt;/th&gt;
&lt;th&gt;Description&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;align&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;ul&gt;
&lt;li&gt;left&lt;/li&gt;
&lt;li&gt;right&lt;/li&gt;
&lt;li&gt;top&lt;/li&gt;
&lt;li&gt;bottom&lt;/li&gt;
&lt;li&gt;middle
| This attribute defines the &lt;strong&gt;alignment of the image&lt;/strong&gt; in reference to surrounding elements. &lt;strong&gt;Not supported in HTML 5.&lt;/strong&gt; |
| alt | text | It specifies the &lt;strong&gt;alternate text&lt;/strong&gt; for the image. |
| border | pixels | Used to define the &lt;strong&gt;width of the border&lt;/strong&gt; around the image. &lt;strong&gt;It is not supported in HTML 5.&lt;/strong&gt; |
| crossorigin |
| | This attribute will help to specify whether the &lt;strong&gt;CORS&lt;/strong&gt;   is used when loading the image. Images, uploaded via CORS, can be used in the &lt;strong&gt;&lt;/strong&gt; element without limiting the functionality of the latter. |
| anonymous | &lt;strong&gt;CORS&lt;/strong&gt; requests from this element will not pass credentials. |
| use-credentials | The &lt;strong&gt;CORS&lt;/strong&gt; requests from this element will pass credentials. &lt;strong&gt;It is a new attribute in HTML 5.&lt;/strong&gt; |
| height | pixels | This value specifies the &lt;strong&gt;height of the image&lt;/strong&gt;. |
| hspace | pixels | It is used to define the &lt;strong&gt;spaces at the left and right sides&lt;/strong&gt; of the image. &lt;strong&gt;Not supported in HTML5.&lt;/strong&gt; |
| ismap | ismap | This tag specifies that the &lt;strong&gt;contents of the tag are a server-side&lt;/strong&gt; image map. |
| longdesc | URL | It is used to specify the &lt;strong&gt;URL address&lt;/strong&gt; with a detailed description of the image ( For a short description of the image, use the alt attribute). &lt;strong&gt;Not supported in HTML5.&lt;/strong&gt; |
| src | URL | This value defines the &lt;strong&gt;source&lt;/strong&gt; of the image. |
| usemap | #mapname | Helps to &lt;strong&gt;define a link to the  element&lt;/strong&gt; , which contains the coordinates for the client map image. |
| vspace | pixels | It specifies the &lt;strong&gt;spaces&lt;/strong&gt; at the top and bottom of the image. &lt;strong&gt;Not supported in HTML5.&lt;/strong&gt; |
| width | pixels | This value defines the &lt;strong&gt;width&lt;/strong&gt; of the image. |&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Deprecated Attributes:
&lt;/h2&gt;

&lt;p&gt;Here the list of &lt;strong&gt;deprecated HTML attributes&lt;/strong&gt; and its &lt;strong&gt;alternate methods&lt;/strong&gt; are listed below:&lt;/p&gt;

&lt;p&gt;th, td{ padding: 20px; } &lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Attribute&lt;/th&gt;
&lt;th&gt;Values&lt;/th&gt;
&lt;th&gt;Description&lt;/th&gt;
&lt;th&gt;Alternate&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;align&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;ul&gt;
&lt;li&gt;left&lt;/li&gt;
&lt;li&gt;right&lt;/li&gt;
&lt;li&gt;top&lt;/li&gt;
&lt;li&gt;bottom&lt;/li&gt;
&lt;li&gt;middle
| This attribute will help to &lt;strong&gt;specify the alignment&lt;/strong&gt; of the image in reference to surrounding elements. Centers the HTML image of the image in reference to surrounding elements. | The  &lt;strong&gt;CSS vertical-align&lt;/strong&gt; and/or &lt;strong&gt;float properties&lt;/strong&gt;. |
| border | pixels | It defines the &lt;strong&gt;width of the border&lt;/strong&gt; around the image. | The &lt;strong&gt;CSS border property&lt;/strong&gt;. |
| hspace | | This is used to specify the &lt;strong&gt;horizontal spaces&lt;/strong&gt; around the image. | Use the &lt;strong&gt;CSS margin property&lt;/strong&gt; instead. |
| name | | Specifies a &lt;strong&gt;name&lt;/strong&gt; for the element | You can use the &lt;strong&gt;“id”&lt;/strong&gt; attribute. |
| vspace | pixels | This will &lt;strong&gt;define spaces at the top and bottom&lt;/strong&gt; of the image. | Use the &lt;strong&gt;CSS&lt;/strong&gt;  &lt;strong&gt;margin property&lt;/strong&gt; instead. |&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Browser Support:
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--B1jPk3w2--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://sharepointanchor.com/wp-content/uploads/2021/02/Browser-Support-10.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--B1jPk3w2--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://sharepointanchor.com/wp-content/uploads/2021/02/Browser-Support-10.png" alt=""&gt;&lt;/a&gt;Browser Support&lt;/p&gt;

&lt;h3&gt;
  
  
  Related Articles:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;&lt;a href="https://sharepointanchor.com/learn-html/html-dd-definition-description/"&gt;HTML &lt;dd&gt; Definition Description Tag&lt;/dd&gt;&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;a href="https://sharepointanchor.com/learn-html/html-center-tag/"&gt;HTML &lt;center&gt; Center Tag&lt;/center&gt;&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;a href="https://sharepointanchor.com/learn-html/basic-html-definitions-and-usages-in-real-world/"&gt;Basic HTML Definitions and Usages in the Real World&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;a href="https://sharepointanchor.com/learn-html/html-code-tag/"&gt;HTML &lt;code&gt; Code Tag&lt;/code&gt;&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;a href="https://sharepointanchor.com/learn-html/html-aside-tag/"&gt;HTML  Aside Tag&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The post &lt;a href="https://sharepointanchor.com/learn-html/html-img-image-tag/"&gt;HTML &lt;code&gt;&lt;a href="" class="article-body-image-wrapper"&gt;&lt;img&gt;&lt;/a&gt;&lt;/code&gt; Image Tag&lt;/a&gt; appeared first on &lt;a href="https://sharepointanchor.com"&gt;Share Point Anchor&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>learnhtml</category>
      <category>htmli</category>
    </item>
    <item>
      <title>CSS background-origin property</title>
      <dc:creator>Share Point Anchor</dc:creator>
      <pubDate>Thu, 25 Feb 2021 05:01:08 +0000</pubDate>
      <link>https://dev.to/anchorshare/css-background-origin-property-2omn</link>
      <guid>https://dev.to/anchorshare/css-background-origin-property-2omn</guid>
      <description>&lt;p&gt;The background-origin property is used to &lt;strong&gt;specify the background positioning area of the background image&lt;/strong&gt;. It is one of the CSS3 properties.&lt;/p&gt;

&lt;p&gt;This property allows you to specify whether the background will be positioned relative to the “content box”, “border box”, or the “padding box”.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--EMWVSgd4--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://s.w.org/images/core/emoji/13.0.1/72x72/1f4cd.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--EMWVSgd4--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://s.w.org/images/core/emoji/13.0.1/72x72/1f4cd.png" alt="📍"&gt;&lt;/a&gt; &lt;strong&gt;Note&lt;/strong&gt; : If the background-attachment is “ &lt;strong&gt;fixed&lt;/strong&gt; “, then this property will be ignored and will not have an effect.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Background-origin property accepts the following values.

&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;padding-box&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;border-box&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;content-box&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;initial&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;inherit&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Background-Origin property characteristics:
&lt;/h2&gt;

&lt;p&gt;| &lt;strong&gt;Initial value&lt;/strong&gt; | padding-box |&lt;br&gt;
| &lt;strong&gt;Applies to&lt;/strong&gt; | All elements. It also applies to &lt;strong&gt;&lt;code&gt;::first-letter&lt;/code&gt;&lt;/strong&gt; and &lt;strong&gt;&lt;code&gt;::first-line&lt;/code&gt;&lt;/strong&gt; |&lt;br&gt;
| &lt;strong&gt;Inherited&lt;/strong&gt; | No |&lt;br&gt;
| &lt;strong&gt;Animatable&lt;/strong&gt; | No |&lt;br&gt;
| &lt;strong&gt;Version&lt;/strong&gt; | CSS3 |&lt;br&gt;
| &lt;strong&gt;JavaScript syntax&lt;/strong&gt; | &lt;strong&gt;&lt;code&gt;object.style.backgroundOrigin = "content-box";&lt;/code&gt;&lt;/strong&gt; |&lt;/p&gt;
&lt;h2&gt;
  
  
  Syntax:
&lt;/h2&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
background-origin: padding-box | border-box | content-box | initial | inherit;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;h2&gt;
  
  
  Values:
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;strong&gt;Value&lt;/strong&gt;&lt;/th&gt;
&lt;th&gt;&lt;strong&gt;Description&lt;/strong&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;border-box&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;It is the &lt;strong&gt;default value&lt;/strong&gt;. The background-position is relative to the &lt;strong&gt;border&lt;/strong&gt; and the &lt;strong&gt;background-image starts from the upper left corner&lt;/strong&gt; of the padding edge.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;padding-box&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;With this value, the background-position is relative to the &lt;strong&gt;padding box&lt;/strong&gt; and the &lt;strong&gt;background-image starts from the upper left corner&lt;/strong&gt; of the border.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;content-box&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;The background-position is relative to the &lt;strong&gt;content box&lt;/strong&gt; and the &lt;strong&gt;background-image starts from the upper left corner&lt;/strong&gt; of the content.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;initial&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;It will &lt;strong&gt;set the property to its default value&lt;/strong&gt;.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;inherit&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;Inherits the property from its parent&lt;/strong&gt; element.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;
&lt;h2&gt;
  
  
  Example of the background-origin property:
&lt;/h2&gt;

&lt;p&gt;In the following code, we use the background-origin property for your reference.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html&amp;gt;
  &amp;lt;head&amp;gt;
    &amp;lt;title&amp;gt;The title of the document&amp;lt;/title&amp;gt;
    &amp;lt;style&amp;gt;
      .example1 {

        border: 5px dashed #1E90FF;

        padding: 35px;

        background: url("https://sharepointanchor.com/wp-content/uploads/2021/02/Large-Triangles.png");

        background-repeat: no-repeat;

        background-origin: padding-box;

      }
    &amp;lt;/style&amp;gt;
  &amp;lt;/head&amp;gt;
  &amp;lt;body&amp;gt;

    &amp;lt;h2&amp;gt;Background-origin property example&amp;lt;/h2&amp;gt;

    &amp;lt;p&amp;gt;Here the background-origin is set to "border-box".&amp;lt;/p&amp;gt;

    &amp;lt;div class="example1"&amp;gt;

      &amp;lt;h2&amp;gt;Hello world.&amp;lt;/h2&amp;gt;

      &amp;lt;p&amp;gt; Have a great day!!&amp;lt;/p&amp;gt;

    &amp;lt;/div&amp;gt;
  &amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://sharepointanchor.com/code/css/CSS-background-origin-property/CSS-background-origin-property-Ex-1.html"&gt;Try it Yourself Online&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Result:
&lt;/h2&gt;

&lt;p&gt;By running the above code, you will get the result as shown in the below image.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--xl8Uw9_Z--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://sharepointanchor.com/wp-content/uploads/2021/02/chrome_vKirZLuQo3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--xl8Uw9_Z--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://sharepointanchor.com/wp-content/uploads/2021/02/chrome_vKirZLuQo3.png" alt=""&gt;&lt;/a&gt;Result of background-origin property&lt;/p&gt;

&lt;h2&gt;
  
  
  Example of background-origin property with the “padding-box” and “content-box” values:
&lt;/h2&gt;

&lt;p&gt;The following example code Wil show the difference between padding-box and content-box.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html&amp;gt;
  &amp;lt;head&amp;gt;
    &amp;lt;title&amp;gt;The title of the document&amp;lt;/title&amp;gt;
    &amp;lt;style&amp;gt;
      .example1 {

        border: 5px dashed #0000CD;

        padding: 35px;

        background: url("https://sharepointanchor.com/wp-content/uploads/2021/02/Flat-Mountains.png");

        background-repeat: no-repeat;

        background-origin: padding-box;

      }
      .example2 {

        border: 5px dashed #0000CD;

        padding: 35px;

        background: url("https://sharepointanchor.com/wp-content/uploads/2021/02/Flat-Mountains.png");

        background-repeat: no-repeat;

        background-origin: content-box;

      }
    &amp;lt;/style&amp;gt;
  &amp;lt;/head&amp;gt;
  &amp;lt;body&amp;gt;

    &amp;lt;h2&amp;gt;Background-origin property example&amp;lt;/h2&amp;gt;

    &amp;lt;p&amp;gt;Here the background-origin is set to "padding-box" which is the default value of this property.&amp;lt;/p&amp;gt;

    &amp;lt;div class="example1"&amp;gt;

      &amp;lt;h2&amp;gt;Hello world&amp;lt;/h2&amp;gt;

      &amp;lt;p&amp;gt; Have a great day!!&amp;lt;/p&amp;gt;

    &amp;lt;/div&amp;gt;

    &amp;lt;p&amp;gt;Here the background-origin is set to "content-box".&amp;lt;/p&amp;gt;

    &amp;lt;div class="example2"&amp;gt;

      &amp;lt;h2&amp;gt;Hello world&amp;lt;/h2&amp;gt;

      &amp;lt;p&amp;gt; Have a great day!!&amp;lt;/p&amp;gt;

    &amp;lt;/div&amp;gt;
  &amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://sharepointanchor.com/code/css/CSS-background-origin-property/CSS-background-origin-property-Ex-2.html"&gt;Try it Yourself Online&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Result:
&lt;/h2&gt;

&lt;p&gt;After running the above code, you will get the output as shown in the below image.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--d64JuFZP--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://sharepointanchor.com/wp-content/uploads/2021/02/chrome_vBZuJeCQXg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--d64JuFZP--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://sharepointanchor.com/wp-content/uploads/2021/02/chrome_vBZuJeCQXg.png" alt=""&gt;&lt;/a&gt;Result of CSS background-origin property&lt;/p&gt;

&lt;h2&gt;
  
  
  Example of a background-origin property with different values:
&lt;/h2&gt;

&lt;p&gt;In the below example, you will see how to set two background images.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html&amp;gt;
  &amp;lt;head&amp;gt;
    &amp;lt;title&amp;gt;The title of the document&amp;lt;/title&amp;gt;
    &amp;lt;style&amp;gt;
      #example1 {

        border: 5px double black;

        padding: 25px;

        background: url("https://sharepointanchor.com/wp-content/uploads/2021/02/Large-Triangles.png"), url("https://sharepointanchor.com/wp-content/uploads/2021/02/star.png");

        background-repeat: no-repeat;

        background-origin: content-box, border-box;

      }
      #example2 {

        border: 5px double black;

        padding: 25px;

        background: url("https://sharepointanchor.com/wp-content/uploads/2021/02/Large-Triangles.png"), url("https://sharepointanchor.com/wp-content/uploads/2021/02/star.png");

        background-repeat: no-repeat;

        background-origin: content-box, padding-box;

      }
      #example3 {

        border: 5px double black;

        padding: 25px;

        background: url("https://sharepointanchor.com/wp-content/uploads/2021/02/Large-Triangles.png"), url("https://sharepointanchor.com/wp-content/uploads/2021/02/star.png");

        background-repeat: no-repeat;

        background-origin: content-box, content-box;

      }
    &amp;lt;/style&amp;gt;
  &amp;lt;/head&amp;gt;
  &amp;lt;body&amp;gt;

    &amp;lt;h2&amp;gt;Background-origin property example&amp;lt;/h2&amp;gt;

    &amp;lt;p&amp;gt;Here the background-origin: content-box, border-box; is set:&amp;lt;/p&amp;gt;

    &amp;lt;div id="example1"&amp;gt;

      &amp;lt;h2&amp;gt;Hello World&amp;lt;/h2&amp;gt;

      &amp;lt;p&amp;gt;The first background-image starts from the upper left corner of the border.&amp;lt;/p&amp;gt;

      &amp;lt;p&amp;gt;The second background-image starts from the upper left corner of the content.&amp;lt;/p&amp;gt;

    &amp;lt;/div&amp;gt;

    &amp;lt;p&amp;gt;Here the background-origin: content-box, padding-box:&amp;lt;/p&amp;gt;
    &amp;lt;div id="example2"&amp;gt;

      &amp;lt;h2&amp;gt;Hello World&amp;lt;/h2&amp;gt;

      &amp;lt;p&amp;gt;The first background image starts from the upper left corner of the padding edge.&amp;lt;/p&amp;gt;

      &amp;lt;p&amp;gt;The second background-image starts from the upper left corner of the content.&amp;lt;/p&amp;gt;

    &amp;lt;/div&amp;gt;
    &amp;lt;p&amp;gt;Here the background-origin: content-box, content-box; is set:&amp;lt;/p&amp;gt;

    &amp;lt;div id="example3"&amp;gt;

      &amp;lt;h2&amp;gt;Hello World&amp;lt;/h2&amp;gt;

      &amp;lt;p&amp;gt;Both background images start from the upper left corner of the content.&amp;lt;/p&amp;gt;

    &amp;lt;/div&amp;gt;
  &amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://sharepointanchor.com/code/css/CSS-background-origin-property/CSS-background-origin-property-Ex-3.html"&gt;Try it Yourself Online&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Result:
&lt;/h2&gt;

&lt;p&gt;After executing the above code, you will get the result as shown in the below image.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--3skVMNAI--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_880/https://sharepointanchor.com/wp-content/uploads/2021/02/JT0n5D7FQN.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--3skVMNAI--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_880/https://sharepointanchor.com/wp-content/uploads/2021/02/JT0n5D7FQN.gif" alt=""&gt;&lt;/a&gt;Background-origin property with different values&lt;/p&gt;

&lt;h2&gt;
  
  
  Browser-Support:
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--uzrVgNG5--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://sharepointanchor.com/wp-content/uploads/2021/02/chrome_r4SYrgtMUW.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--uzrVgNG5--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://sharepointanchor.com/wp-content/uploads/2021/02/chrome_r4SYrgtMUW.png" alt=""&gt;&lt;/a&gt;Browser-support&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Read Ahead:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;&lt;a href="https://sharepointanchor.com/learn-css/css-background-property/"&gt;CSS background Property&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;a href="https://sharepointanchor.com/learn-css/css-background-clip-property/"&gt;background-clip property&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;a href="https://sharepointanchor.com/learn-css/css-background-image-property/"&gt;CSS background-image property&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;a href="https://sharepointanchor.com/learn-html/html-base-tag/"&gt;HTML  Base Tag&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;a href="https://sharepointanchor.com/learn-html/html-div-division-tag/"&gt;HTML  Division tag

&lt;h2&gt;
  
  
  Frequently Asked Questions:
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;What is the purpose of background-origin property?&lt;/strong&gt; &lt;/p&gt;

&lt;p&gt;The background-origin property is used to &lt;strong&gt;specify the background positioning area of the background image&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What will happen if we give the background-origin property with the “inherit” value?&lt;/strong&gt; &lt;/p&gt;

&lt;p&gt;It Inherits the property from its parent element.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What are the values accepted by background-origin property?&lt;/strong&gt; &lt;/p&gt;

&lt;p&gt;The values used in background-origin property are padding-box, border-box, content-box, initial, inherit.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Which is the default value of background-origin property?&lt;/strong&gt; &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;border-box&lt;/strong&gt; is the default value. The background-position is relative to the border and the background-image starts from the upper left corner of the padding edge.&lt;/p&gt;

&lt;p&gt;The post &lt;a href="https://sharepointanchor.com/learn-css/css-background-origin-property/"&gt;CSS background-origin property&lt;/a&gt; appeared first on &lt;a href="https://sharepointanchor.com"&gt;Share Point Anchor&lt;/a&gt;.&lt;/p&gt;
&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>learncss</category>
      <category>cssb</category>
    </item>
    <item>
      <title>HTML &lt;ins&gt; Insert Tag</title>
      <dc:creator>Share Point Anchor</dc:creator>
      <pubDate>Thu, 25 Feb 2021 04:55:33 +0000</pubDate>
      <link>https://dev.to/anchorshare/html-ins-insert-tag-2ebb</link>
      <guid>https://dev.to/anchorshare/html-ins-insert-tag-2ebb</guid>
      <description>&lt;p&gt;The term &lt;strong&gt;&lt;/strong&gt; stand for &lt;strong&gt;insert&lt;/strong&gt;. This tag is mainly used to specify the text which has been inserted into an HTML document. In HTML, the &lt;strong&gt; insert tag&lt;/strong&gt; is sometimes used along with the &lt;strong&gt;&lt;a href="https://sharepointanchor.com/learn-html/html-del-delete-tag/"&gt;&lt;del&gt;&lt;/del&gt;&lt;/a&gt;&lt;/strong&gt; tag for a markup of deleted text.&lt;/p&gt;

&lt;p&gt;By default, most of the browsers display the content between the  tag as an &lt;strong&gt;underlined text&lt;/strong&gt;. You can change this behavior by using the &lt;strong&gt;CSS text-decoration&lt;/strong&gt; property.&lt;/p&gt;

&lt;p&gt;This tag is found within the &lt;strong&gt;&lt;/strong&gt; tag. Usually, the screen reading technology &lt;strong&gt;doesn’t announce the existence of the  tag&lt;/strong&gt; in the default configuration. So you can announce it by using the &lt;strong&gt;CSS content&lt;/strong&gt;  &lt;strong&gt;property&lt;/strong&gt; with &lt;strong&gt;::after&lt;/strong&gt; and &lt;strong&gt;::before&lt;/strong&gt; pseudo-elements.&lt;/p&gt;

&lt;p&gt;Estimated reading time: 3 minutes&lt;/p&gt;

&lt;h2&gt;
  
  
  Syntax:
&lt;/h2&gt;

&lt;p&gt;The insert tag contains both the &lt;strong&gt;starting  tag&lt;/strong&gt; and the &lt;strong&gt;ending  tag&lt;/strong&gt;. The content is written between these tho tags.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
&amp;lt;ins&amp;gt; Text &amp;lt;/ins&amp;gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  HTML  Tag Characteristics:
&lt;/h3&gt;

&lt;p&gt;th, td{ padding: 20px; } &lt;/p&gt;

&lt;p&gt;| HTML  tag | Used to insert the new text. |&lt;br&gt;
| Content categories | Phrasing content, flow content |&lt;br&gt;
| Permitted content | Transparent |&lt;br&gt;
| Tag omission | None, both opening and closing tags are mandatory. |&lt;br&gt;
| Permitted parents | Any HTML element that accepts phrasing content. |&lt;br&gt;
| Implicit ARIA role | No corresponding role |&lt;br&gt;
| Permitted ARIA roles | Any |&lt;br&gt;
| DOM interface | HTMLModElement |&lt;/p&gt;

&lt;h2&gt;
  
  
  Sample of the HTML  Tag:
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html&amp;gt;
  &amp;lt;head&amp;gt;
    &amp;lt;title&amp;gt;HTML &amp;lt;ins&amp;gt; Tag&amp;lt;/title&amp;gt;
  &amp;lt;/head&amp;gt;
  &amp;lt;body&amp;gt;
&amp;lt;h2&amp;gt;Example of the HTML &amp;lt;ins&amp;gt; Tag&amp;lt;/h2&amp;gt;
    &amp;lt;p&amp;gt;My favorite color is &amp;lt;del&amp;gt;violet&amp;lt;/del&amp;gt; &amp;lt;ins&amp;gt;green&amp;lt;/ins&amp;gt;․&amp;lt;/p&amp;gt;
  &amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Result:
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--b7GAqtku--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://sharepointanchor.com/wp-content/uploads/2021/02/result-44.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--b7GAqtku--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://sharepointanchor.com/wp-content/uploads/2021/02/result-44.png" alt=""&gt;&lt;/a&gt;Result&lt;/p&gt;

&lt;h3&gt;
  
  
  Download Sample File:
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://sharepointanchor.com/wp-content/uploads/2021/02/HTML-ins-tag.html"&gt;HTML-ins-tag&lt;/a&gt;&lt;a href="https://sharepointanchor.com/wp-content/uploads/2021/02/HTML-ins-tag.html"&gt;Download&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Use CSS property to style an HTML  Tag:
&lt;/h2&gt;

&lt;p&gt;You can use the &lt;strong&gt;CSS text-decoration&lt;/strong&gt; properties to style the content within the &lt;strong&gt;&lt;/strong&gt; tag.&lt;/p&gt;

&lt;h3&gt;
  
  
  Sample of HTML  tag with CSS properties:
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html&amp;gt;
  &amp;lt;head&amp;gt;
    &amp;lt;title&amp;gt;HTML &amp;lt;ins&amp;gt; Tag&amp;lt;/title&amp;gt;
    &amp;lt;style&amp;gt;
      ins {
        font-size: 16px;
        font-weight: italic;
        color: #C40655;
      }
      ins::before {
        content: " ~ ";
        width: 1px;
      }
    &amp;lt;/style&amp;gt;
  &amp;lt;/head&amp;gt;
  &amp;lt;body&amp;gt;
&amp;lt;h2&amp;gt;Example of the HTML &amp;lt;ins&amp;gt; Tag&amp;lt;/h2&amp;gt;
    &amp;lt;p&amp;gt;
      &amp;lt;q&amp;gt;Always remember that you are absolutely unique. Just like everyone else.&amp;lt;/q&amp;gt;
      &amp;lt;ins&amp;gt;Margaret Mead&amp;lt;/ins&amp;gt;
    &amp;lt;/p&amp;gt;
  &amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Result:
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--UFCLhPV7--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://sharepointanchor.com/wp-content/uploads/2021/02/res-1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--UFCLhPV7--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://sharepointanchor.com/wp-content/uploads/2021/02/res-1.png" alt=""&gt;&lt;/a&gt;Result&lt;/p&gt;

&lt;h2&gt;
  
  
  Attributes:
&lt;/h2&gt;

&lt;p&gt;The HTML &lt;strong&gt;insert&lt;/strong&gt; tag supports both the &lt;strong&gt;Global Attributes&lt;/strong&gt; and the &lt;strong&gt;Event Attributes&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;th, td{ padding: 20px; } &lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Attribute&lt;/th&gt;
&lt;th&gt;value&lt;/th&gt;
&lt;th&gt;Description&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;cite&lt;/td&gt;
&lt;td&gt;URL&lt;/td&gt;
&lt;td&gt;It will specify the &lt;strong&gt;URL of the document&lt;/strong&gt; , which explains why the text was edited or deleted.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;datetime&lt;/td&gt;
&lt;td&gt;YYYY-MM-DDThh:mm:ssTZD&lt;/td&gt;
&lt;td&gt;Helps to define the &lt;strong&gt;date and time of the deleted text&lt;/strong&gt;.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Browser Support:
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--B1jPk3w2--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://sharepointanchor.com/wp-content/uploads/2021/02/Browser-Support-10.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--B1jPk3w2--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://sharepointanchor.com/wp-content/uploads/2021/02/Browser-Support-10.png" alt=""&gt;&lt;/a&gt;Browser Support&lt;/p&gt;

&lt;h3&gt;
  
  
  Related Articles:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;&lt;a href="https://sharepointanchor.com/learn-html/html-embed-tag/"&gt;HTML  Embed Tag&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;a href="https://sharepointanchor.com/learn-html/html-area-tag/"&gt;HTML  Area Tag&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;a href="https://sharepointanchor.com/learn-html/basic-html-definitions-and-usages-in-real-world/"&gt;Basic HTML Definitions and Usages in the Real World&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;a href="https://sharepointanchor.com/learn-html/html-tag/"&gt;HTML  Tag&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;a href="https://sharepointanchor.com/learn-html/html-figure-tag/"&gt;HTML  Figure Tag&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The post &lt;a href="https://sharepointanchor.com/learn-html/html-ins-insert-tag/"&gt;HTML &lt;code&gt;&lt;/code&gt; Insert Tag&lt;/a&gt; appeared first on &lt;a href="https://sharepointanchor.com"&gt;Share Point Anchor&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>learnhtml</category>
      <category>htmli</category>
    </item>
    <item>
      <title>CSS animation-name property</title>
      <dc:creator>Share Point Anchor</dc:creator>
      <pubDate>Thu, 25 Feb 2021 04:51:38 +0000</pubDate>
      <link>https://dev.to/anchorshare/css-animation-name-property-60p</link>
      <guid>https://dev.to/anchorshare/css-animation-name-property-60p</guid>
      <description>&lt;p&gt;The CSS animation-name property is used to &lt;strong&gt;specify one or more names for the @keyframes animation&lt;/strong&gt;. When multiple comma-separated values are specified for any animation property, they will be attached to the animations that are defined in animation-name differently.&lt;/p&gt;

&lt;p&gt;This is one of the &lt;strong&gt;CSS3&lt;/strong&gt; properties. Different animation properties can control the animation.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The CSS animation-name property accepts the following values.

&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;none&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;keyframename&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;initial&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;inherit&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Characteristics of animation-name property:
&lt;/h2&gt;

&lt;p&gt;| &lt;strong&gt;Initial value&lt;/strong&gt; | none |&lt;br&gt;
| &lt;strong&gt;Applies to&lt;/strong&gt; | All elements. It also applies to &lt;strong&gt;&lt;code&gt;::before&lt;/code&gt;&lt;/strong&gt; and &lt;strong&gt;&lt;code&gt;::after&lt;/code&gt;&lt;/strong&gt; Pseudo-elements |&lt;br&gt;
| &lt;strong&gt;Inherited&lt;/strong&gt; | No |&lt;br&gt;
| &lt;strong&gt;Animatable&lt;/strong&gt; | No |&lt;br&gt;
| &lt;strong&gt;Version&lt;/strong&gt; | CSS3 |&lt;br&gt;
| &lt;strong&gt;JavaScript syntax&lt;/strong&gt; | &lt;strong&gt;&lt;code&gt;object.style.animationName = "element";&lt;/code&gt;&lt;/strong&gt; |&lt;/p&gt;
&lt;h2&gt;
  
  
  Syntax:
&lt;/h2&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
animation-name: keyframename | none | initial | inherit;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;h2&gt;
  
  
  Values:
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;strong&gt;Value&lt;/strong&gt;&lt;/th&gt;
&lt;th&gt;&lt;strong&gt;Description&lt;/strong&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;none&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;This is a &lt;strong&gt;default value&lt;/strong&gt; and &lt;strong&gt;specifies that there will be no animation&lt;/strong&gt;.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;keyframename&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;It &lt;strong&gt;specifies the name of the animation&lt;/strong&gt;.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;initial&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;This value makes the property &lt;strong&gt;use its default val&lt;/strong&gt; ue.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;inherit&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;Inherits the property from its parent’s&lt;/strong&gt; element.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;
&lt;h2&gt;
  
  
  Example of the animation-name property:
&lt;/h2&gt;

&lt;p&gt;In the following code, the name of the animation is set as “ &lt;strong&gt;colors&lt;/strong&gt; “.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html&amp;gt;
  &amp;lt;head&amp;gt;
    &amp;lt;style&amp;gt;
      div {

        padding: 50px;

        animation: element 4s infinite;

      }
      @keyframes element {
        0% {

          background-color: #BA55D3;

        }
        50% {

          background-color: #8A2BE2;

        }
        100% {

          background-color: #9400D3;

        }
      }
    &amp;lt;/style&amp;gt;
  &amp;lt;/head&amp;gt;
  &amp;lt;body&amp;gt;

    &amp;lt;h2&amp;gt;Animation-name example&amp;lt;/h2&amp;gt;

    &amp;lt;div&amp;gt;The name of the animation is set as "colors".&amp;lt;/div&amp;gt;

  &amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Result:
&lt;/h2&gt;

&lt;p&gt;After executing the above code, you will get the result as shown in the below image.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--AbvjtnYL--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_880/https://sharepointanchor.com/wp-content/uploads/2021/02/0Nfxoh3CpB.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--AbvjtnYL--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_880/https://sharepointanchor.com/wp-content/uploads/2021/02/0Nfxoh3CpB.gif" alt=""&gt;&lt;/a&gt;Result of animation-name property&lt;/p&gt;

&lt;h2&gt;
  
  
  Browser-Support:
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--cZ_ZjSu6--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://sharepointanchor.com/wp-content/uploads/2021/02/chrome_rIHCvsBneR.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--cZ_ZjSu6--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://sharepointanchor.com/wp-content/uploads/2021/02/chrome_rIHCvsBneR.png" alt=""&gt;&lt;/a&gt;Browser-support&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Related Articles:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;&lt;a href="https://sharepointanchor.com/learn-css/css-animation-property/"&gt;CSS animation Property&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;a href="https://sharepointanchor.com/learn-css/css-animation-direction-property/"&gt;CSS animation-direction property&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;a href="https://sharepointanchor.com/learn-css/css-animation-duration-property/"&gt;animation-duration property&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;a href="https://sharepointanchor.com/learn-css/css-animation-iteration-count-property/"&gt;CSS animation-iteration-count property&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;a href="https://sharepointanchor.com/learn-css/css-all-property/"&gt;CSS all Property&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Frequently Asked Questions:
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Describe the usage of animation-name property.&lt;/strong&gt; &lt;/p&gt;

&lt;p&gt;CSS animation-name property is used to &lt;strong&gt;specify one or more names for the @keyframes animation&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What is the default value of animation-name property?&lt;/strong&gt; &lt;/p&gt;

&lt;p&gt;The default value of an animation-name property is “ &lt;strong&gt;none&lt;/strong&gt; “. It &lt;strong&gt;specifies that there will be no animation&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Define the syntax of animation-name property?&lt;/strong&gt; &lt;/p&gt;

&lt;p&gt;animation-name: keyframename | none | initial | inherit;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Is it possible to give multiple values in an animation property?&lt;/strong&gt; &lt;/p&gt;

&lt;p&gt;Yes, multiple comma-separated values are specified for any animation property, they will be attached to the animations that are defined in animation-name differently.&lt;/p&gt;

&lt;p&gt;The post &lt;a href="https://sharepointanchor.com/learn-css/css-animation-name-property/"&gt;CSS animation-name property&lt;/a&gt; appeared first on &lt;a href="https://sharepointanchor.com"&gt;Share Point Anchor&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>learncss</category>
      <category>cssa</category>
    </item>
    <item>
      <title>HTML &lt;dialog&gt; Dialog  Tag</title>
      <dc:creator>Share Point Anchor</dc:creator>
      <pubDate>Tue, 23 Feb 2021 20:43:51 +0000</pubDate>
      <link>https://dev.to/anchorshare/html-dialog-dialog-tag-5c9</link>
      <guid>https://dev.to/anchorshare/html-dialog-dialog-tag-5c9</guid>
      <description>&lt;p&gt;HTML &lt;strong&gt; Dialog tag&lt;/strong&gt; is used to &lt;strong&gt;create a new popup dialog box&lt;/strong&gt; or alert box on a web page. You can create &lt;strong&gt;pop-up messages&lt;/strong&gt; , &lt;strong&gt;alert messages&lt;/strong&gt; , or &lt;strong&gt;forms&lt;/strong&gt; by using this tag. It is the &lt;strong&gt;new sectioning element in HTML 5&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Normally, the &lt;strong&gt;dialog box is hidden from user view&lt;/strong&gt; , you can activate it by using the &lt;strong&gt;“open”&lt;/strong&gt; attribute. For styling the  tag, you can use the CSS &lt;strong&gt;“::backdrop“&lt;/strong&gt; pseudo-element.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Info&lt;/strong&gt; : If you need &lt;strong&gt;to display/hide the content&lt;/strong&gt; within the  tag, you &lt;strong&gt;must&lt;/strong&gt; use the &lt;strong&gt;JavaScript API&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;To combine the &lt;strong&gt;&lt;/strong&gt; element within the dialog, it should be specified with the &lt;strong&gt;method=”dialog”&lt;/strong&gt; attribute and the dialog tag is closed with the &lt;strong&gt;“returnValue“&lt;/strong&gt; attribute.&lt;/p&gt;

&lt;p&gt;Estimated reading time: 5 minutes&lt;/p&gt;

&lt;h2&gt;
  
  
  Syntax:
&lt;/h2&gt;

&lt;p&gt;The dialog contains both the &lt;strong&gt;starting  tag&lt;/strong&gt; and &lt;strong&gt;ending  tag&lt;/strong&gt;. The Content is written between these two tags.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
&amp;lt;dialog open&amp;gt; Write your text here.. &amp;lt;/dialog&amp;gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  HTML  Tag Characteristics:
&lt;/h3&gt;

&lt;p&gt;th, td{ padding: 20px; } &lt;/p&gt;

&lt;p&gt;| HTML  tag | Used to create a dialog box |&lt;br&gt;
| Content categories | Flow content, Sectioning root. |&lt;br&gt;
| Permitted content | Flow content. |&lt;br&gt;
| Tag omission | None, both opening and closing tags are mandatory. |&lt;br&gt;
| Permitted parents | Any HTML element that accepts flow content. |&lt;br&gt;
| Implicit ARIA role | dialog |&lt;br&gt;
| Permitted ARIA roles | alertdialog |&lt;br&gt;
| DOM interface | HTMLDialogElement |&lt;/p&gt;

&lt;h2&gt;
  
  
  Sample of HTML  Tag:
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
&amp;lt;!DOCTYPE html&amp;gt; 
&amp;lt;html&amp;gt; 
    &amp;lt;head&amp;gt; 
        &amp;lt;title&amp;gt;HTML &amp;lt;dialog&amp;gt; Dialog Tag&amp;lt;/title&amp;gt;       
    &amp;lt;/head&amp;gt;
    &amp;lt;body&amp;gt; 
        &amp;lt;h2&amp;gt;Example of HTML &amp;lt;dialog&amp;gt; tag&amp;lt;/h2&amp;gt; 
        &amp;lt;dialog open&amp;gt;Welcome to Share Point Anchor&amp;lt;/dialog&amp;gt; 
    &amp;lt;/body&amp;gt; 
&amp;lt;/html&amp;gt; 

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Result:
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--iAysxvIv--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://sharepointanchor.com/wp-content/uploads/2021/02/Result-1-8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--iAysxvIv--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://sharepointanchor.com/wp-content/uploads/2021/02/Result-1-8.png" alt=""&gt;&lt;/a&gt;Result&lt;/p&gt;

&lt;h3&gt;
  
  
  Download Sample File:
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://sharepointanchor.com/wp-content/uploads/2021/02/HTML-Dialog-Tag.html"&gt;HTML-Dialog-Tag&lt;/a&gt;&lt;a href="https://sharepointanchor.com/wp-content/uploads/2021/02/HTML-Dialog-Tag.html"&gt;Download&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Use CSS property to style an HTML  Tag:
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
&amp;lt;!DOCTYPE html&amp;gt; 
&amp;lt;html&amp;gt; 
    &amp;lt;head&amp;gt; 
        &amp;lt;title&amp;gt;HTML &amp;lt;dialog&amp;gt; Dialog Tag&amp;lt;/title&amp;gt;       
    &amp;lt;/head&amp;gt;
 &amp;lt;style&amp;gt; 
            dialog { 
                color: #C40655;; 
                font-size:30px; 
                font-weight:bold; 
                font-style:italic; 
            } 
            body { 
                text-align:center; 
            } 
        &amp;lt;/style&amp;gt;  
    &amp;lt;body&amp;gt; 
        &amp;lt;h2&amp;gt;Example of HTML &amp;lt;dialog&amp;gt; tag with CSS property&amp;lt;/h2&amp;gt; 
        &amp;lt;dialog open&amp;gt;Welcome to Share Point Anchor&amp;lt;/dialog&amp;gt; 
    &amp;lt;/body&amp;gt; 
&amp;lt;/html&amp;gt; 

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Result:
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--y8RnKO5l--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://sharepointanchor.com/wp-content/uploads/2021/02/result-css-2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--y8RnKO5l--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://sharepointanchor.com/wp-content/uploads/2021/02/result-css-2.png" alt=""&gt;&lt;/a&gt;Result&lt;/p&gt;

&lt;h2&gt;
  
  
  HTML  tag with JavaScript:
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html&amp;gt;
  &amp;lt;head&amp;gt;
    &amp;lt;title&amp;gt;HTML &amp;lt;dialog&amp;gt; Dialog Tag&amp;lt;/title&amp;gt;
    &amp;lt;style&amp;gt;
      dialog {
            width: 40%;
        color: Green;
        text-align:center; 
                font-size:30px; 
                font-weight:bold; 
                font-style:italic; 
      }
    &amp;lt;/style&amp;gt;
  &amp;lt;/head&amp;gt;
  &amp;lt;body&amp;gt;
    &amp;lt;div&amp;gt;
      &amp;lt;dialog id="DialogExample"&amp;gt;
        &amp;lt;p&amp;gt;
          Welcome to Share Point Anchor
        &amp;lt;/p&amp;gt;
        &amp;lt;button id="hide"&amp;gt;Close dialog text&amp;lt;/button&amp;gt;
      &amp;lt;/dialog&amp;gt;
      &amp;lt;button id="show"&amp;gt;Clik here to Open&amp;lt;/button&amp;gt;
    &amp;lt;/div&amp;gt;
    &amp;lt;script type="text/JavaScript"&amp;gt;
      (function() { var dialog = document.getElementById('DialogExample'); document.getElementById('show').onclick = function() { dialog.show(); }; document.getElementById('hide').onclick = function() { dialog.close(); }; })();
    &amp;lt;/script&amp;gt;
  &amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Result:
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Kw7N8JFp--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_880/https://sharepointanchor.com/wp-content/uploads/2021/02/oZG1x75HZt.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Kw7N8JFp--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_880/https://sharepointanchor.com/wp-content/uploads/2021/02/oZG1x75HZt.gif" alt=""&gt;&lt;/a&gt;Result&lt;/p&gt;

&lt;h2&gt;
  
  
  Attributes:
&lt;/h2&gt;

&lt;p&gt;The  &lt;strong&gt;&lt;/strong&gt;  Dialog tag supports the  &lt;strong&gt;global attributes&lt;/strong&gt;  and the  &lt;strong&gt;event attributes&lt;/strong&gt; in HTML.&lt;/p&gt;

&lt;p&gt;th, td{ padding: 20px; } &lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Attribute&lt;/th&gt;
&lt;th&gt;Value&lt;/th&gt;
&lt;th&gt;Description&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;open&lt;/td&gt;
&lt;td&gt;open&lt;/td&gt;
&lt;td&gt;This attribute will &lt;strong&gt;idicate that the dialog box is active&lt;/strong&gt; , and the user can interact with it.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Styling Methods for  Tag:
&lt;/h2&gt;

&lt;p&gt;You can use the following properties to style an HTML &lt;strong&gt;&lt;/strong&gt; Dialog tag.&lt;/p&gt;

&lt;h3&gt;
  
  
  Properties to style the visual weight/emphasis/size of the text in  tag:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;CSS font-style&lt;/strong&gt; – This CSS property helps to set the font style of the text such as normal, italic, oblique, initial, inherit.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CSS font-family&lt;/strong&gt; – This CSS property specifies a prioritized list of one or more font family names or generic family names for the selected element.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CSS font-size&lt;/strong&gt; – This CSS property will help to set the size of the font.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CSS font-weight&lt;/strong&gt; – This CSS property used to define whether the font should be bold or thick.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CSS text-transform&lt;/strong&gt; – This CSS property will control the text case and capitalization.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CSS test-decoration&lt;/strong&gt; – This CSS property specifies the decoration added to text such as &lt;strong&gt;text-decoration-line&lt;/strong&gt; , &lt;strong&gt;text-decoration-color&lt;/strong&gt; , &lt;strong&gt;text-decoration- style&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Styles to coloring the text in  Tag:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;CSS color&lt;/strong&gt; – This CSS property will specify the color of the text content and decorations.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CSS background-color&lt;/strong&gt; – This CSS property helps to set the background color of an element. &lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Text layout styles for  Tag:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;CSS text-indent&lt;/strong&gt; – This CSS property is used to specify the indentation of the first line in a text block.&lt;/li&gt;
&lt;li&gt;*&lt;em&gt;CSS text-overflow *&lt;/em&gt; – This CSS property helps to describe how overflowed content that is not displayed should be signaled to the user.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CSS white-space&lt;/strong&gt; – This CSS property describes how white-space inside an element is handled.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CSS word-break&lt;/strong&gt;  – This CSS property decides where the lines should be broken.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Other Properties for  Tag:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;CSS text-shadow&lt;/strong&gt;  – This CSS property helps to add the shadow to text.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CSS text-align-last&lt;/strong&gt;  – This CSS property will set the alignment of the last line of the text.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CSS line-height&lt;/strong&gt; – This CSS property defines the height of a line.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CSS letter-spacing&lt;/strong&gt; – This CSS property helps to decide the spaces between letters/characters in a text.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CSS word-spacing&lt;/strong&gt; – This CSS property specifies the spacing between every word.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Browser Support:
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--b-iqjT6P--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://sharepointanchor.com/wp-content/uploads/2021/02/browsers.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--b-iqjT6P--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://sharepointanchor.com/wp-content/uploads/2021/02/browsers.png" alt=""&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Related Articles:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;&lt;a href="https://sharepointanchor.com/learn-html/html-dd-definition-description/"&gt;HTML &lt;dd&gt; Definition Description Tag&lt;/dd&gt;&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;a href="https://sharepointanchor.com/learn-html/html-center-tag/"&gt;HTML &lt;center&gt; Center Tag&lt;/center&gt;&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;a href="https://sharepointanchor.com/learn-html/basic-html-definitions-and-usages-in-real-world/"&gt;Basic HTML Definitions and Usages in the Real World&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;a href="https://sharepointanchor.com/learn-html/html-code-tag/"&gt;HTML &lt;code&gt; Code Tag&lt;/code&gt;&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;a href="https://sharepointanchor.com/learn-html/html-aside-tag/"&gt;HTML  Aside Tag&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The post &lt;a href="https://sharepointanchor.com/learn-html/html-dialog-tag/"&gt;HTML &lt;code&gt;&lt;/code&gt; Dialog Tag&lt;/a&gt; appeared first on &lt;a href="https://sharepointanchor.com"&gt;Share Point Anchor&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>learnhtml</category>
      <category>htmld</category>
    </item>
    <item>
      <title>HTML &lt;dir&gt; Directory Tag</title>
      <dc:creator>Share Point Anchor</dc:creator>
      <pubDate>Tue, 23 Feb 2021 20:43:31 +0000</pubDate>
      <link>https://dev.to/anchorshare/html-dir-directory-tag-b38</link>
      <guid>https://dev.to/anchorshare/html-dir-directory-tag-b38</guid>
      <description>&lt;p&gt;In HTML, the &lt;/p&gt; Directory tag is the &lt;strong&gt;container for a directory of titles,&lt;/strong&gt; files or folders. The items inside the &lt;strong&gt;&lt;/strong&gt; tag are defined in lists by using the &lt;strong&gt;&lt;li&gt;&lt;/strong&gt; tag. By default, the list is marked with bullet points.

&lt;p&gt;&lt;strong&gt;Note&lt;/strong&gt; : The &lt;strong&gt;&lt;/strong&gt; tag is &lt;strong&gt;deprecated in HTML&lt;/strong&gt; , and it is &lt;strong&gt;no longer available in HTML 5&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Hs_EMz0j--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://s.w.org/images/core/emoji/13.0.1/72x72/1f4a1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Hs_EMz0j--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://s.w.org/images/core/emoji/13.0.1/72x72/1f4a1.png" alt="💡"&gt;&lt;/a&gt; &lt;strong&gt;Tips&lt;/strong&gt; : You can use the &lt;strong&gt;&lt;ul&gt;&lt;/ul&gt;&lt;/strong&gt; or &lt;strong&gt;&lt;ol&gt;&lt;/ol&gt;&lt;/strong&gt; tag to create the list directory titles. Use the &lt;strong&gt;CSS&lt;/strong&gt;  &lt;strong&gt;list-style&lt;/strong&gt; property to change the style of the lists.&lt;/p&gt;

&lt;p&gt;Estimated reading time: 4 minutes&lt;/p&gt;

&lt;h2&gt;
  
  
  Syntax:
&lt;/h2&gt;

&lt;p&gt;The directory tag contains both the &lt;strong&gt;starting  tag&lt;/strong&gt; and &lt;strong&gt;ending &lt;/strong&gt;&lt;/p&gt; tag. The content is written between these two tags.&lt;br&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
&amp;lt;dir&amp;gt;
&amp;lt;li&amp;gt; write your content here &amp;lt;/li&amp;gt;
&amp;lt;/dir&amp;gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;h2&gt;
  
  
  Sample of HTML  Tag:
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html&amp;gt;
  &amp;lt;head&amp;gt;
    &amp;lt;title&amp;gt;HTML &amp;lt;dir&amp;gt; Tag&amp;lt;/title&amp;gt;
  &amp;lt;/head&amp;gt;
  &amp;lt;body&amp;gt;
&amp;lt;h3&amp;gt;Example for &amp;lt;dir&amp;gt; Tag &amp;lt;/h3&amp;gt;
    &amp;lt;dir&amp;gt;
    &amp;lt;li&amp;gt;Google Chrome &amp;lt;/li&amp;gt;
    &amp;lt;li&amp;gt;Firefox&amp;lt;/li&amp;gt;
    &amp;lt;li&amp;gt;Opera&amp;lt;/li&amp;gt;
    &amp;lt;li&amp;gt;Safari&amp;lt;/li&amp;gt;
    &amp;lt;li&amp;gt;Internet Explorer&amp;lt;/li&amp;gt;
    &amp;lt;/dir&amp;gt;
  &amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Result:
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--H7_0F7RY--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://sharepointanchor.com/wp-content/uploads/2021/02/Result-26.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--H7_0F7RY--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://sharepointanchor.com/wp-content/uploads/2021/02/Result-26.png" alt=""&gt;&lt;/a&gt;Result&lt;/p&gt;

&lt;h3&gt;
  
  
  Download Sample File:
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://sharepointanchor.com/wp-content/uploads/2021/02/HTML-dir-Tag.html"&gt;HTML-dir-Tag&lt;/a&gt;&lt;a href="https://sharepointanchor.com/wp-content/uploads/2021/02/HTML-dir-Tag.html"&gt;Download&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Use CSS list-style property with HTML  tag:
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html&amp;gt;
  &amp;lt;head&amp;gt;
    &amp;lt;title&amp;gt;HTML &amp;lt;dir&amp;gt; Tag&amp;lt;/title&amp;gt;
  &amp;lt;/head&amp;gt;
   &amp;lt;style&amp;gt;
       dir{ 
          list-style: circle; 
        }
      &amp;lt;/style&amp;gt;
  &amp;lt;body&amp;gt;
&amp;lt;h3&amp;gt;HTML &amp;lt;dir&amp;gt; Tag with CSS property&amp;lt;/h3&amp;gt;
    &amp;lt;dir&amp;gt;
    &amp;lt;li&amp;gt;Google Chrome &amp;lt;/li&amp;gt;
    &amp;lt;li&amp;gt;Firefox&amp;lt;/li&amp;gt;
    &amp;lt;li&amp;gt;Opera&amp;lt;/li&amp;gt;
    &amp;lt;li&amp;gt;Safari&amp;lt;/li&amp;gt;
    &amp;lt;li&amp;gt;Internet Explorer&amp;lt;/li&amp;gt;
    &amp;lt;/dir&amp;gt;
  &amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Result:
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Ja8jGj_I--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://sharepointanchor.com/wp-content/uploads/2021/02/Resul-2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Ja8jGj_I--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://sharepointanchor.com/wp-content/uploads/2021/02/Resul-2.png" alt=""&gt;&lt;/a&gt;Result&lt;/p&gt;

&lt;h2&gt;
  
  
  Attributes:
&lt;/h2&gt;

&lt;p&gt;The  &lt;strong&gt;&lt;/strong&gt;  Directory tag supports the  &lt;strong&gt;global attributes&lt;/strong&gt;  and the  &lt;strong&gt;event attributes&lt;/strong&gt; in HTML.&lt;/p&gt;

&lt;p&gt;th, td{ padding: 20px; } &lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Attribute&lt;/th&gt;
&lt;th&gt;Value&lt;/th&gt;
&lt;th&gt;Description&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;compact&lt;/td&gt;
&lt;td&gt;compact&lt;/td&gt;
&lt;td&gt;It helps to &lt;strong&gt;specify that the list should render smaller than normal.&lt;/strong&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Not Supported in HTML 5.&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Styling Methods for  Tag:
&lt;/h2&gt;

&lt;p&gt;You can use the following properties to style an HTML &lt;strong&gt;&lt;/strong&gt; Directory tag.&lt;/p&gt;

&lt;h3&gt;
  
  
  Properties to style the visual weight/emphasis/size of the text in  tag:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;CSS font-style&lt;/strong&gt; – This CSS property helps to set the font style of the text such as normal, italic, oblique, initial, inherit.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CSS font-family&lt;/strong&gt; – This CSS property specifies a prioritized list of one or more font family names or generic family names for the selected element.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CSS font-size&lt;/strong&gt; – This CSS property will help to set the size of the font.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CSS font-weight&lt;/strong&gt; – This CSS property used to define whether the font should be bold or thick.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CSS text-transform&lt;/strong&gt; – This CSS property will control the text case and capitalization.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CSS test-decoration&lt;/strong&gt; – This CSS property specifies the decoration added to text such as &lt;strong&gt;text-decoration-line&lt;/strong&gt; , &lt;strong&gt;text-decoration-color&lt;/strong&gt; , &lt;strong&gt;text-decoration- style&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Styles to coloring the text in  Tag:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;CSS color&lt;/strong&gt; – This CSS property will specify the color of the text content and decorations.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CSS background-color&lt;/strong&gt; – This CSS property helps to set the background color of an element. &lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Text layout styles for  Tag:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;CSS text-indent&lt;/strong&gt; – This CSS property is used to specify the indentation of the first line in a text block.&lt;/li&gt;
&lt;li&gt;*&lt;em&gt;CSS text-overflow *&lt;/em&gt; – This CSS property helps to describe how overflowed content that is not displayed should be signaled to the user.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CSS white-space&lt;/strong&gt; – This CSS property describes how white-space inside an element is handled.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CSS word-break&lt;/strong&gt;  – This CSS property decides where the lines should be broken.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Other Properties for  Tag:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;CSS text-shadow&lt;/strong&gt;  – This CSS property helps to add the shadow to text.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CSS text-align-last&lt;/strong&gt;  – This CSS property will set the alignment of the last line of the text.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CSS line-height&lt;/strong&gt; – This CSS property defines the height of a line.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CSS letter-spacing&lt;/strong&gt; – This CSS property helps to decide the spaces between letters/characters in a text.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CSS word-spacing&lt;/strong&gt; – This CSS property specifies the spacing between every word.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Browser Support:
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--B1jPk3w2--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://sharepointanchor.com/wp-content/uploads/2021/02/Browser-Support-10.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--B1jPk3w2--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://sharepointanchor.com/wp-content/uploads/2021/02/Browser-Support-10.png" alt=""&gt;&lt;/a&gt;Browser Support&lt;/p&gt;

&lt;h3&gt;
  
  
  Related Articles:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;&lt;a href="https://sharepointanchor.com/learn-html/html-center-tag/"&gt;HTML &lt;center&gt; Center Tag&lt;/center&gt;&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;a href="https://sharepointanchor.com/learn-html/html-code-tag/"&gt;HTML &lt;code&gt; Code Tag&lt;/code&gt;&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;a href="https://sharepointanchor.com/learn-html/basic-html-definitions-and-usages-in-real-world/"&gt;Basic HTML Definitions and Usages in the Real World&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;a href="https://sharepointanchor.com/learn-html/html-aside-tag/"&gt;HTML  Aside Tag&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;a href="https://sharepointanchor.com/learn-html/html-details-tag/"&gt;HTML  Details Tag&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The post &lt;a href="https://sharepointanchor.com/learn-html/html-dir-directory-tag/"&gt;HTML &lt;code&gt;&lt;/code&gt; Directory Tag&lt;/a&gt; appeared first on &lt;a href="https://sharepointanchor.com"&gt;Share Point Anchor&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>learnhtml</category>
      <category>htmld</category>
    </item>
    <item>
      <title>HTML &lt;dfn&gt; Definition Tag</title>
      <dc:creator>Share Point Anchor</dc:creator>
      <pubDate>Tue, 23 Feb 2021 20:43:00 +0000</pubDate>
      <link>https://dev.to/anchorshare/html-dfn-definition-tag-h3</link>
      <guid>https://dev.to/anchorshare/html-dfn-definition-tag-h3</guid>
      <description>&lt;p&gt;The HTML &lt;strong&gt; Definition Tag&lt;/strong&gt; used to &lt;strong&gt;define the term&lt;/strong&gt; , that is specified in the &lt;strong&gt;context of the definition phrase or sentence&lt;/strong&gt;. If a term is contained within the &lt;strong&gt;&lt;/strong&gt; element then browsers understand that nearby text contains a definition of the term.&lt;/p&gt;

&lt;p&gt;The &lt;strong&gt;&lt;/strong&gt; tag, the &lt;strong&gt;&lt;dt&gt;/&lt;/dt&gt;
&lt;dd&gt;&lt;/dd&gt;&lt;/strong&gt; pair, or the &lt;strong&gt;&lt;/strong&gt; tag is considered to be the term’s definition. Mostly the browsers will display the text found within the &lt;strong&gt;&lt;/strong&gt; tag as &lt;strong&gt;italicized text&lt;/strong&gt;. You can change this behavior with &lt;strong&gt;CSS&lt;/strong&gt; property.&lt;/p&gt;

&lt;p&gt;Estimated reading time: 5 minutes&lt;/p&gt;
&lt;h2&gt;
  
  
  Syntax:
&lt;/h2&gt;

&lt;p&gt;The definition tag contains both the &lt;strong&gt;starting  tag&lt;/strong&gt; and &lt;strong&gt;ending  tag&lt;/strong&gt;. The content is written between these two tags.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
&amp;lt;dfn&amp;gt; Definition term &amp;lt;/dfn&amp;gt; - Definition.

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  HTML  Tag Characteristics:
&lt;/h3&gt;

&lt;p&gt;th, td{ padding: 20px; } &lt;/p&gt;

&lt;p&gt;| HTML  tag | Specifies a definition term |&lt;br&gt;
| Content categories | Flow content, phrasing content, palpable content. |&lt;br&gt;
| Permitted content | Phrasing content. But not  element must be a descendant. |&lt;br&gt;
| Tag omission | None, both opening and closing tags are mandatory. |&lt;br&gt;
| Permitted parents | Any HTML element that accepts phrasing content. |&lt;br&gt;
| Implicit ARIA role | term |&lt;br&gt;
| Permitted ARIA roles | Any |&lt;br&gt;
| DOM interface | HTML Element |&lt;/p&gt;

&lt;h2&gt;
  
  
  Sample of the HTML  Tag:
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html&amp;gt;
  &amp;lt;head&amp;gt;
    &amp;lt;title&amp;gt;HTML &amp;lt;dfn&amp;gt; Tag&amp;lt;/title&amp;gt;
  &amp;lt;/head&amp;gt;
  &amp;lt;body&amp;gt;
&amp;lt;h3&amp;gt;Example for Definition tag&amp;lt;/h3&amp;gt;
    &amp;lt;p&amp;gt;
&amp;lt;dfn&amp;gt;HTML&amp;lt;/dfn&amp;gt; - It is the technology used to create web pages
    &amp;lt;/p&amp;gt;
  &amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Result:
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Bp20wt3M--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://sharepointanchor.com/wp-content/uploads/2021/02/Result-25.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Bp20wt3M--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://sharepointanchor.com/wp-content/uploads/2021/02/Result-25.png" alt=""&gt;&lt;/a&gt;Result&lt;/p&gt;

&lt;h3&gt;
  
  
  Download Sample File:
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://sharepointanchor.com/wp-content/uploads/2021/02/HTML-dfn-tag.html"&gt;HTML-dfn-tag&lt;/a&gt;&lt;a href="https://sharepointanchor.com/wp-content/uploads/2021/02/HTML-dfn-tag.html"&gt;Download&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The term inside the  tag can be any of the following:

&lt;ul&gt;
&lt;li&gt;Just as the content of the &lt;strong&gt;&lt;/strong&gt; element&lt;/li&gt;
&lt;li&gt;With the &lt;strong&gt;“title”&lt;/strong&gt; attribute &lt;/li&gt;
&lt;li&gt;With a &lt;strong&gt;&lt;/strong&gt; tag inside the  tag&lt;/li&gt;
&lt;li&gt;With the &lt;strong&gt;“id”&lt;/strong&gt; attribute, and you can refer back to the definition with the &lt;strong&gt;&lt;a&gt;&lt;/a&gt;&lt;/strong&gt; tag&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Example of HTML  tag with a “title” Attribute:
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html&amp;gt;
  &amp;lt;head&amp;gt;
    &amp;lt;title&amp;gt;HTML &amp;lt;dfn&amp;gt; Tag&amp;lt;/title&amp;gt;
  &amp;lt;/head&amp;gt;
  &amp;lt;body&amp;gt;
&amp;lt;h3&amp;gt;HTML &amp;lt;dfn&amp;gt; Tag with "title" attribute&amp;lt;/h3&amp;gt;
    &amp;lt;p&amp;gt;
    &amp;lt;dfn title="HyperText Markup Language"&amp;gt;HTML&amp;lt;/dfn&amp;gt; - It is the technology used to create web pages.
    &amp;lt;/p&amp;gt;
  &amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Result:
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--kzGUdNa9--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://sharepointanchor.com/wp-content/uploads/2021/02/res1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--kzGUdNa9--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://sharepointanchor.com/wp-content/uploads/2021/02/res1.png" alt=""&gt;&lt;/a&gt;Result&lt;/p&gt;

&lt;h3&gt;
  
  
  Example of HTML  tag with the  tag:

&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html&amp;gt;
  &amp;lt;head&amp;gt;
    &amp;lt;title&amp;gt;HTML &amp;lt;dfn&amp;gt; Tag&amp;lt;/title&amp;gt;
  &amp;lt;/head&amp;gt;
  &amp;lt;body&amp;gt;
&amp;lt;h3&amp;gt;HTML &amp;lt;dfn&amp;gt; Tag with &amp;lt;abbr&amp;gt; tag&amp;lt;/h3&amp;gt;
    &amp;lt;p&amp;gt;
    &amp;lt;dfn&amp;gt;&amp;lt;abbr title="HyperText Markup Language"&amp;gt;HTML&amp;lt;/abbr&amp;gt;&amp;lt;/dfn&amp;gt; - It is the technology used to create web pages.
    &amp;lt;/p&amp;gt;
  &amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Result:
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--ZdjcVE-S--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://sharepointanchor.com/wp-content/uploads/2021/02/result-with-abbr.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--ZdjcVE-S--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://sharepointanchor.com/wp-content/uploads/2021/02/result-with-abbr.png" alt=""&gt;&lt;/a&gt;Result&lt;/p&gt;

&lt;h3&gt;
  
  
  Example of HTML  Tag with the “id” Attribute:
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html&amp;gt;
 &amp;lt;head&amp;gt;
    &amp;lt;title&amp;gt;HTML &amp;lt;dfn&amp;gt; Tag&amp;lt;/title&amp;gt;
  &amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
&amp;lt;h3&amp;gt;HTML &amp;lt;dfn&amp;gt; Tag with "id" attribute&amp;lt;/h3&amp;gt;
&amp;lt;p&amp;gt;&amp;lt;dfn id="html-def"&amp;gt;HTML&amp;lt;/dfn&amp;gt; is the standard markup language for creating web pages.&amp;lt;/p&amp;gt;

&amp;lt;p&amp;gt;This is some text...&amp;lt;/p&amp;gt;
&amp;lt;p&amp;gt;This is some text...&amp;lt;/p&amp;gt;
&amp;lt;p&amp;gt;This is some text...&amp;lt;/p&amp;gt;
&amp;lt;p&amp;gt;This is some text...&amp;lt;/p&amp;gt;
&amp;lt;p&amp;gt;This is some text...&amp;lt;/p&amp;gt;
&amp;lt;p&amp;gt;This is some text...&amp;lt;/p&amp;gt;
&amp;lt;p&amp;gt;Learn &amp;lt;a href="#html-def"&amp;gt;HTML&amp;lt;/a&amp;gt; now.&amp;lt;/p&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Result:
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--b1Oc2bMm--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_880/https://sharepointanchor.com/wp-content/uploads/2021/02/LrCEQgs8jN.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--b1Oc2bMm--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_880/https://sharepointanchor.com/wp-content/uploads/2021/02/LrCEQgs8jN.gif" alt=""&gt;&lt;/a&gt;Result&lt;/p&gt;

&lt;h2&gt;
  
  
  Attributes:
&lt;/h2&gt;

&lt;p&gt;The  &lt;strong&gt;&lt;/strong&gt;  Definition tag supports the  &lt;strong&gt;global attributes&lt;/strong&gt;  and the  &lt;strong&gt;event attributes&lt;/strong&gt; in HTML.&lt;/p&gt;

&lt;p&gt;th, td{ padding: 20px; } &lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Attribute&lt;/th&gt;
&lt;th&gt;Value&lt;/th&gt;
&lt;th&gt;Description&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;title&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;This attribute will &lt;strong&gt;specify the abbreviation of the definition term&lt;/strong&gt; when hovering the mouse over the term.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Styling Methods for  Tag:
&lt;/h2&gt;

&lt;p&gt;You can use the following properties to style an HTML &lt;strong&gt;&amp;lt;&lt;a href="https://en.wikipedia.org/wiki/Template:Dfn"&gt;dfn&lt;/a&gt;&amp;gt;&lt;/strong&gt; Definition tag.&lt;/p&gt;

&lt;h3&gt;
  
  
  Properties to style the visual weight/emphasis/size of the text in  tag:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;CSS font-style&lt;/strong&gt; – This CSS property helps to set the font style of the text such as normal, italic, oblique, initial, inherit.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CSS font-family&lt;/strong&gt; – This CSS property specifies a prioritized list of one or more font family names or generic family names for the selected element.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CSS font-size&lt;/strong&gt; – This CSS property will help to set the size of the font.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CSS font-weight&lt;/strong&gt; – This CSS property used to define whether the font should be bold or thick.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CSS text-transform&lt;/strong&gt; – This CSS property will control the text case and capitalization.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CSS test-decoration&lt;/strong&gt; – This CSS property specifies the decoration added to text such as &lt;strong&gt;text-decoration-line&lt;/strong&gt; , &lt;strong&gt;text-decoration-color&lt;/strong&gt; , &lt;strong&gt;text-decoration- style&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Styles to coloring the text in  Tag:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;CSS color&lt;/strong&gt; – This CSS property will specify the color of the text content and decorations.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CSS background-color&lt;/strong&gt; – This CSS property helps to set the background color of an element. &lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Text layout styles for  Tag:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;CSS text-indent&lt;/strong&gt; – This CSS property is used to specify the indentation of the first line in a text block.&lt;/li&gt;
&lt;li&gt;*&lt;em&gt;CSS text-overflow *&lt;/em&gt; – This CSS property helps to describe how overflowed content that is not displayed should be signaled to the user.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CSS white-space&lt;/strong&gt; – This CSS property describes how white-space inside an element is handled.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CSS word-break&lt;/strong&gt;  – This CSS property decides where the lines should be broken.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Other Properties for  Tag:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;CSS text-shadow&lt;/strong&gt;  – This CSS property helps to add the shadow to text.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CSS text-align-last&lt;/strong&gt;  – This CSS property will set the alignment of the last line of the text.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CSS line-height&lt;/strong&gt; – This CSS property defines the height of a line.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CSS letter-spacing&lt;/strong&gt; – This CSS property helps to decide the spaces between letters/characters in a text.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CSS word-spacing&lt;/strong&gt; – This CSS property specifies the spacing between every word.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Browser Support:
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--B1jPk3w2--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://sharepointanchor.com/wp-content/uploads/2021/02/Browser-Support-10.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--B1jPk3w2--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://sharepointanchor.com/wp-content/uploads/2021/02/Browser-Support-10.png" alt=""&gt;&lt;/a&gt;Browser Support&lt;/p&gt;

&lt;h3&gt;
  
  
  Related Articles:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;&lt;a href="https://sharepointanchor.com/learn-html/html-dd-definition-description/"&gt;HTML &lt;dd&gt; Definition Description Tag&lt;/dd&gt;&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;a href="https://sharepointanchor.com/learn-html/html-center-tag/"&gt;HTML &lt;center&gt; Center Tag&lt;/center&gt;&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;a href="https://sharepointanchor.com/learn-html/basic-html-definitions-and-usages-in-real-world/"&gt;Basic HTML Definitions and Usages in the Real World&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;a href="https://sharepointanchor.com/learn-html/html-code-tag/"&gt;HTML &lt;code&gt; Code Tag&lt;/code&gt;&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;a href="https://sharepointanchor.com/learn-html/html-aside-tag/"&gt;HTML  Aside Tag&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The post &lt;a href="https://sharepointanchor.com/learn-html/html-dfn-definition-tag/"&gt;HTML &lt;code&gt;&lt;/code&gt; Definition Tag&lt;/a&gt; appeared first on &lt;a href="https://sharepointanchor.com"&gt;Share Point Anchor&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>learnhtml</category>
      <category>htmld</category>
    </item>
    <item>
      <title>HTML &lt;div&gt; Division tag</title>
      <dc:creator>Share Point Anchor</dc:creator>
      <pubDate>Tue, 23 Feb 2021 20:42:39 +0000</pubDate>
      <link>https://dev.to/anchorshare/html-div-division-tag-3ifi</link>
      <guid>https://dev.to/anchorshare/html-div-division-tag-3ifi</guid>
      <description>&lt;p&gt;The HTML &lt;strong&gt; tag is known as &lt;strong&gt;Division tag&lt;/strong&gt;. This tag &lt;strong&gt;creates a division or section&lt;/strong&gt; in an HTML document. It is used as an &lt;strong&gt;empty container&lt;/strong&gt; , you can &lt;strong&gt;style it with CSS&lt;/strong&gt; or &lt;strong&gt;manipulated it with JavaScript&lt;/strong&gt;.

&lt;p&gt;The &lt;strong&gt; tag is mostly used in &lt;strong&gt;web development&lt;/strong&gt; because it helps to create a &lt;strong&gt;particular section for particular data or functions&lt;/strong&gt; in the web pages. It is a &lt;strong&gt;block-level element&lt;/strong&gt;. By default, browsers always place a &lt;strong&gt;line break before and after the  tag.

&lt;p&gt;&lt;strong&gt;Note&lt;/strong&gt; : Don’t use the &lt;strong&gt; tag inside the &lt;strong&gt;&lt;/strong&gt; tag. Because, the &lt;strong&gt;paragraph will be broken&lt;/strong&gt; at the point, where the  tag is entered.

&lt;p&gt;Estimated reading time: 6 minutes&lt;/p&gt;
&lt;h2&gt;
  
  
  Syntax:
&lt;/h2&gt;

&lt;p&gt;The division tag contains both &lt;strong&gt;starting  tag and &lt;strong&gt;ending &lt;/strong&gt; tag&lt;/strong&gt;. The content is written between these two tags.&lt;br&gt;
&lt;/p&gt;

&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
&amp;lt;div&amp;gt; Create your content here...&amp;lt;/div&amp;gt;

&lt;/code&gt;&lt;/pre&gt;



&lt;h3&gt;
  
  
  HTML  Tag Characteristics:


 th, td{ padding: 20px; } 

&lt;/h3&gt;
&lt;p&gt;| HTML &lt;/p&gt; tag | Used to define a section of the document |&lt;br&gt;
| Content categories | Flow content, palpable content. |&lt;br&gt;
| Permitted content | Flow or WHATWG HTML. |&lt;br&gt;
| Tag omission | None, both opening and closing tags are mandatory. |&lt;br&gt;
| Permitted parents | Any HTML element that accepts flow content or (in WHATWG HTML) |&lt;br&gt;
| Implicit ARIA role | No corresponding role |&lt;br&gt;
| Permitted ARIA roles | Any |&lt;br&gt;
| DOM interface | HTMLDivElement |
&lt;h2&gt;
  
  
  Sample of the HTML  Tag:


&lt;/h2&gt;
&lt;p&gt;Here is the sample of HTML division tag.&lt;br&gt;
&lt;/p&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html&amp;gt;
  &amp;lt;head&amp;gt;
    &amp;lt;title&amp;gt;HTML &amp;lt;div&amp;gt; Tag&amp;lt;/title&amp;gt;
  &amp;lt;/head&amp;gt;
  &amp;lt;body&amp;gt;
    &amp;lt;h2&amp;gt; Example of HTML &amp;lt;div&amp;gt; Tag &amp;lt;/h2&amp;gt;
    &amp;lt;div style="background-color:#dff0d8"&amp;gt;
    &amp;lt;p&amp;gt;Welcome to our website. Here is the example of HTML &amp;lt;div&amp;gt; tag.&amp;lt;/p&amp;gt;      
    &amp;lt;p&amp;gt;This is the sample paragraph.&amp;lt;/p&amp;gt;
    &amp;lt;/div&amp;gt;
  &amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;h2&gt;
  
  
  Result:
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--txoMExz5--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://sharepointanchor.com/wp-content/uploads/2021/02/Result-27.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--txoMExz5--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://sharepointanchor.com/wp-content/uploads/2021/02/Result-27.png" alt=""&gt;&lt;/a&gt;Result&lt;/p&gt;
&lt;h2&gt;
  
  
  Flexbox:
&lt;/h2&gt;

&lt;p&gt;Flex box is a &lt;strong&gt;one-dimensional layout&lt;/strong&gt; method for laying out items in rows or columns. This is used to control the alignment, direction, order, and size of the items inside the container.&lt;/p&gt;
&lt;h3&gt;
  
  
  Sample of a Flex box with HTML  tag:


&lt;/h3&gt;

&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html&amp;gt;
  &amp;lt;head&amp;gt;
    &amp;lt;title&amp;gt;Title of the document&amp;lt;/title&amp;gt;
    &amp;lt;style&amp;gt;
      .flex-container {
        display: flex;
        align-items: center;
        width: 100%;
        height: 200px;
        background-color: #43156D;
      }
      .flex-container &amp;gt; div {
        width: 35%;
        height: 60px;
        margin: 5px;
        border-radius: 3px;
        background-color: #D2B0F2;
      }
    &amp;lt;/style&amp;gt;
  &amp;lt;/head&amp;gt;
  &amp;lt;body&amp;gt;
    &amp;lt;div class="flex-container"&amp;gt;
      &amp;lt;div&amp;gt;&amp;lt;/div&amp;gt;
      &amp;lt;div&amp;gt;&amp;lt;/div&amp;gt;
      &amp;lt;div&amp;gt;&amp;lt;/div&amp;gt;
    &amp;lt;/div&amp;gt;
  &amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;h3&gt;
  
  
  Result:
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--3riHOthw--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://sharepointanchor.com/wp-content/uploads/2021/02/result-flex-1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--3riHOthw--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://sharepointanchor.com/wp-content/uploads/2021/02/result-flex-1.png" alt="Result"&gt;&lt;/a&gt;Result&lt;/p&gt;

&lt;h2&gt;
  
  
  Use CSS Float Property with HTML  Tag:


&lt;/h2&gt;
&lt;p&gt;The &lt;strong&gt;CSS&lt;/strong&gt; float property defines &lt;strong&gt;where the container should be placed&lt;/strong&gt; on the web page. It allows the elements to appear next to, or apart from, one another, etc.&lt;/p&gt;
&lt;h3&gt;
  
  
  Sample of the HTML  tag with CSS float property:


&lt;/h3&gt;

&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html&amp;gt;
  &amp;lt;head&amp;gt;
    &amp;lt;title&amp;gt;HTML &amp;lt;div&amp;gt; Tag&amp;lt;/title&amp;gt;
    &amp;lt;style&amp;gt;
      .content {
        overflow: auto;
        border: 2px solid #666;
      }
      .content div {
        padding: 10px;
      }
      .content a {
        color: darkgreen;
      }
      .blue {
        float: right;
        width: 40%;
        background-color: #D2B0F2;
      }
      .green {
        float: left;
        width: 30%;
        background-color: #EDFA84;
      }
    &amp;lt;/style&amp;gt;
  &amp;lt;/head&amp;gt;
  &amp;lt;body&amp;gt;
&amp;lt;h3&amp;gt;Example of HTML div tag&amp;lt;/h3&amp;gt;
    &amp;lt;div class="content"&amp;gt;
      &amp;lt;div class="blue"&amp;gt;
        &amp;lt;p&amp;gt;&amp;lt;b&amp;gt;This is the first paragraph&amp;lt;/b&amp;gt;&amp;lt;/p&amp;gt;
        &amp;lt;a href="#"&amp;gt;This is some hyperlink inside &amp;lt;div&amp;gt; tag.&amp;lt;/a&amp;gt;
        &amp;lt;ul&amp;gt;
          &amp;lt;li&amp;gt;List item 1&amp;lt;/li&amp;gt;
          &amp;lt;li&amp;gt;List item 2&amp;lt;/li&amp;gt;
        &amp;lt;/ul&amp;gt;
      &amp;lt;/div&amp;gt;
      &amp;lt;div class="green"&amp;gt;
        &amp;lt;p&amp;gt;This is some paragraph inside div tag.&amp;lt;/p&amp;gt;
        &amp;lt;ol&amp;gt;
          &amp;lt;li&amp;gt;List item 1&amp;lt;/li&amp;gt;
          &amp;lt;li&amp;gt;List item 2&amp;lt;/li&amp;gt;
        &amp;lt;/ol&amp;gt;
      &amp;lt;/div&amp;gt;
    &amp;lt;/div&amp;gt;
  &amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;h3&gt;
  
  
  Result:
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--O_GcB5ui--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://sharepointanchor.com/wp-content/uploads/2021/02/div-tag-result.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--O_GcB5ui--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://sharepointanchor.com/wp-content/uploads/2021/02/div-tag-result.png" alt="Result"&gt;&lt;/a&gt;Result&lt;/p&gt;
&lt;h2&gt;
  
  
  HTML  Tag with Negative Margins:


&lt;/h2&gt;
&lt;p&gt;The  &lt;strong&gt;margin&lt;/strong&gt;  property defines the space around an  &lt;strong&gt;HTML&lt;/strong&gt;  document. The Negative margins can be applied to both &lt;strong&gt;static or floated&lt;/strong&gt; elements in an HTML document.&lt;/p&gt;
&lt;h3&gt;
  
  
  Example:
&lt;/h3&gt;


&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html&amp;gt;
  &amp;lt;head&amp;gt;
    &amp;lt;title&amp;gt;Title of the document&amp;lt;/title&amp;gt;
    &amp;lt;style&amp;gt;
      .content div {
        padding: 2%;
      }
      .content a {
        color: darkblue;
      }
      .main-content {
        width: 30%;
        margin-left: 32%;
      }
      .blue {
        width: 25%;
        margin-top: -5%;
        background-color: #D2B0F2;
      }

    &amp;lt;/style&amp;gt;
  &amp;lt;/head&amp;gt;
  &amp;lt;body&amp;gt;
    &amp;lt;div class="content"&amp;gt;
      &amp;lt;div class="main-content"&amp;gt;
        &amp;lt;h1&amp;gt;&amp;lt;a href="#"&amp;gt;This is some hyperlink inside div tag.&amp;lt;/a&amp;gt;&amp;lt;/h1&amp;gt;
      &amp;lt;/div&amp;gt;
      &amp;lt;div class="blue"&amp;gt;
        &amp;lt;h2&amp;gt;Heading 2&amp;lt;/h2&amp;gt;
        &amp;lt;a href="#"&amp;gt;This is some hyperlink inside div tag.&amp;lt;/a&amp;gt;
        &amp;lt;ul&amp;gt;
          &amp;lt;li&amp;gt;List item 1&amp;lt;/li&amp;gt;
          &amp;lt;li&amp;gt;List item 2&amp;lt;/li&amp;gt;
        &amp;lt;/ul&amp;gt;
      &amp;lt;/div&amp;gt;
          &amp;lt;/div&amp;gt;
  &amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;h3&gt;
  
  
  Result:
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--GdcbUBNI--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://sharepointanchor.com/wp-content/uploads/2021/02/result-2-8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--GdcbUBNI--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://sharepointanchor.com/wp-content/uploads/2021/02/result-2-8.png" alt="Result"&gt;&lt;/a&gt;Result&lt;/p&gt;
&lt;h2&gt;
  
  
  Relative+absolute positioning in  Tag:


&lt;/h2&gt;
&lt;p&gt;If you want to position &lt;/p&gt; relative to a particular element you can use a combination of &lt;strong&gt;position: relative&lt;/strong&gt; and &lt;strong&gt;position: absolute&lt;/strong&gt;.
&lt;h3&gt;
  
  
  Example:
&lt;/h3&gt;


&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html&amp;gt;
  &amp;lt;head&amp;gt;
    &amp;lt;title&amp;gt;Title of the document&amp;lt;/title&amp;gt;
    &amp;lt;style&amp;gt;
      .content { 
        position: relative; 
        height: 200px;
        border: 1px solid #666;
      }
      .content div { 
        position: absolute; 
        width: 35%; 
        padding: 20px; 
      }
      .blue { 
        right: 20px;
        bottom: 0;
        background-color: #7FFFD4; 
      }
      .green { 
        top: 10px; 
        left: 15px; 
        background-color: #87CEEB; 
      }
    &amp;lt;/style&amp;gt;
  &amp;lt;/head&amp;gt;
  &amp;lt;body&amp;gt;
    &amp;lt;div class="content"&amp;gt;
      &amp;lt;div class="blue"&amp;gt;
        &amp;lt;p&amp;gt;This is some paragraph inside div tag.&amp;lt;/p&amp;gt;
      &amp;lt;/div&amp;gt;
      &amp;lt;div class="green"&amp;gt;
        &amp;lt;p&amp;gt;This is some paragraph inside div tag.&amp;lt;/p&amp;gt;
      &amp;lt;/div&amp;gt;
    &amp;lt;/div&amp;gt;
  &amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;h3&gt;
  
  
  Result:
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--n5TYjuhG--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://sharepointanchor.com/wp-content/uploads/2021/02/res.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--n5TYjuhG--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://sharepointanchor.com/wp-content/uploads/2021/02/res.png" alt="Result"&gt;&lt;/a&gt;Result&lt;/p&gt;
&lt;h2&gt;
  
  
  Attributes:
&lt;/h2&gt;

&lt;p&gt;The  &lt;strong&gt;  Division tag supports the  &lt;strong&gt;global attributes&lt;/strong&gt;  and the  &lt;strong&gt;event attributes&lt;/strong&gt; in HTML.

 th, td{ padding: 20px; } 

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Attribute&lt;/th&gt;
&lt;th&gt;Value&lt;/th&gt;
&lt;th&gt;Description&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;title&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;This attribute will &lt;strong&gt;specify the abbreviation of the definition term&lt;/strong&gt; when hovering the mouse over the term.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;
&lt;h2&gt;
  
  
  Styling Methods for  Tag:


&lt;/h2&gt;
&lt;p&gt;You can use the following properties to style an HTML &lt;strong&gt; Division tag.
&lt;h3&gt;
  
  
  Properties to style the visual weight/emphasis/size of the text in  tag:


&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;CSS font-style&lt;/strong&gt; – This CSS property helps to set the font style of the text such as normal, italic, oblique, initial, inherit.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CSS font-family&lt;/strong&gt; – This CSS property specifies a prioritized list of one or more font family names or generic family names for the selected element.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CSS font-size&lt;/strong&gt; – This CSS property will help to set the size of the font.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CSS font-weight&lt;/strong&gt; – This CSS property used to define whether the font should be bold or thick.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CSS text-transform&lt;/strong&gt; – This CSS property will control the text case and capitalization.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CSS test-decoration&lt;/strong&gt; – This CSS property specifies the decoration added to text such as &lt;strong&gt;text-decoration-line&lt;/strong&gt; , &lt;strong&gt;text-decoration-color&lt;/strong&gt; , &lt;strong&gt;text-decoration- style&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;
  
  
  Styles to coloring the text in  Tag:


&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;CSS color&lt;/strong&gt; – This CSS property will specify the color of the text content and decorations.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CSS background-color&lt;/strong&gt; – This CSS property helps to set the background color of an element. &lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;
  
  
  Text layout styles for  Tag:


&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;CSS text-indent&lt;/strong&gt; – This CSS property is used to specify the indentation of the first line in a text block.&lt;/li&gt;
&lt;li&gt;*&lt;em&gt;CSS text-overflow *&lt;/em&gt; – This CSS property helps to describe how overflowed content that is not displayed should be signaled to the user.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CSS white-space&lt;/strong&gt; – This CSS property describes how white-space inside an element is handled.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CSS word-break&lt;/strong&gt;  – This CSS property decides where the lines should be broken.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;
  
  
  Other Properties for  Tag:


&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;CSS text-shadow&lt;/strong&gt;  – This CSS property helps to add the shadow to text.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CSS text-align-last&lt;/strong&gt;  – This CSS property will set the alignment of the last line of the text.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CSS line-height&lt;/strong&gt; – This CSS property defines the height of a line.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CSS letter-spacing&lt;/strong&gt; – This CSS property helps to decide the spaces between letters/characters in a text.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CSS word-spacing&lt;/strong&gt; – This CSS property specifies the spacing between every word.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;
  
  
  Browser Support:
&lt;/h2&gt;

&lt;/h3&gt;
&lt;/h3&gt;
&lt;/h3&gt;
&lt;/h3&gt;
&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--B1jPk3w2--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://sharepointanchor.com/wp-content/uploads/2021/02/Browser-Support-10.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--B1jPk3w2--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://sharepointanchor.com/wp-content/uploads/2021/02/Browser-Support-10.png" alt=""&gt;&lt;/a&gt;Browser Support&lt;/p&gt;

&lt;h3&gt;
  
  
  Related Articles:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;&lt;a href="https://sharepointanchor.com/learn-html/html-dd-definition-description/"&gt;HTML &lt;dd&gt; Definition Description Tag&lt;/dd&gt;&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;a href="https://sharepointanchor.com/learn-html/html-center-tag/"&gt;HTML &lt;center&gt; Center Tag&lt;/center&gt;&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;a href="https://sharepointanchor.com/learn-html/basic-html-definitions-and-usages-in-real-world/"&gt;Basic HTML Definitions and Usages in the Real World&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;a href="https://sharepointanchor.com/learn-html/html-code-tag/"&gt;HTML &lt;code&gt; Code Tag&lt;/code&gt;&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;a href="https://sharepointanchor.com/learn-html/html-aside-tag/"&gt;HTML  Aside Tag&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The post &lt;a href="https://sharepointanchor.com/learn-html/html-div-division-tag/"&gt;HTML &lt;code&gt; Division tag appeared first on &lt;a href="https://sharepointanchor.com"&gt;Share Point Anchor&lt;/a&gt;.
&lt;/code&gt;&lt;/a&gt;&lt;/p&gt;

&lt;/strong&gt;&lt;/p&gt;
&lt;br&gt;
&lt;/strong&gt;&lt;/p&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;/strong&gt;&lt;/p&gt;&lt;/strong&gt;&lt;/strong&gt;&lt;/p&gt;&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>learnhtml</category>
      <category>htmld</category>
    </item>
    <item>
      <title>HTML &lt;dt&gt; Description Term Tag</title>
      <dc:creator>Share Point Anchor</dc:creator>
      <pubDate>Tue, 23 Feb 2021 20:35:32 +0000</pubDate>
      <link>https://dev.to/anchorshare/html-dt-description-term-tag-2jpk</link>
      <guid>https://dev.to/anchorshare/html-dt-description-term-tag-2jpk</guid>
      <description>&lt;p&gt;The &lt;strong&gt;&lt;dt&gt; tag&lt;/dt&gt;&lt;/strong&gt; stands for &lt;strong&gt;Description term&lt;/strong&gt; or &lt;strong&gt;definition term&lt;/strong&gt; in HTML. This tag is used to &lt;strong&gt;define the name of a term&lt;/strong&gt; in a definition list. It must be placed inside the &lt;strong&gt;&lt;dl&gt; Description List&lt;/dl&gt;&lt;/strong&gt; tag. The &lt;strong&gt;&lt;dt&gt;&lt;/dt&gt;&lt;/strong&gt; tag is found within the &lt;strong&gt;&lt;/strong&gt; tag.&lt;/p&gt;

&lt;h3&gt;
  
  
  Possible list to create &lt;dt&gt; tag:
&lt;/dt&gt;
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;A &lt;strong&gt;single term&lt;/strong&gt; followed by a &lt;strong&gt;single description&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;A &lt;strong&gt;single term&lt;/strong&gt; followed by &lt;strong&gt;multiple descriptions&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Multiple terms&lt;/strong&gt; followed by a &lt;strong&gt;single description&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Multiple terms&lt;/strong&gt; followed by &lt;strong&gt;multiple descriptions&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Estimated reading time: 4 minutes&lt;/p&gt;

&lt;h2&gt;
  
  
  Syntax:
&lt;/h2&gt;

&lt;p&gt;The &lt;/p&gt;
&lt;dt&gt; tag always comes in pairs. It contains both an &lt;strong&gt;opening &lt;dt&gt; tag&lt;/dt&gt;&lt;/strong&gt; and &lt;strong&gt;closing &lt;/strong&gt;
&lt;/dt&gt; tag. The content is written between these two tags.&lt;br&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
&amp;lt;dl&amp;gt;
&amp;lt;dt&amp;gt;Description Term&amp;lt;/dt&amp;gt;
&amp;lt;dd&amp;gt;Description Definition&amp;lt;/dd&amp;gt;
&amp;lt;/dl&amp;gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;h3&gt;
  
  
  HTML &lt;dt&gt; Tag Characteristics:
&lt;/dt&gt;
&lt;/h3&gt;

&lt;p&gt;th, td{ padding: 20px; } &lt;/p&gt;

&lt;p&gt;| HTML &lt;/p&gt;
&lt;dt&gt; tag | Defines a term in a description list. |&lt;br&gt;
| Content categories | None. |&lt;br&gt;
| Permitted content | Flow content. |&lt;br&gt;
| Tag omission | It has both opening and closing tags . But, the end tag may be omitted if this element is immediately followed by another &lt;/dt&gt;
&lt;dd&gt; element or a &lt;/dd&gt;
&lt;dt&gt; element. |&lt;br&gt;
| Permitted parents | It is a child element of &lt;/dt&gt;
&lt;dl&gt; tag. This element can be used before a &lt;dd&gt; tag. |&lt;br&gt;
| Implicit ARIA role | Term |&lt;br&gt;
| Permitted ARIA roles | List Items |&lt;br&gt;
| DOM interface | HTML Element |
&lt;h2&gt;
  
  
  Sample of the HTML &lt;dt&gt; Tag:
&lt;/dt&gt;
&lt;/h2&gt;



&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html&amp;gt;
   &amp;lt;head&amp;gt;
      &amp;lt;title&amp;gt;Title of the Document&amp;lt;/title&amp;gt;
   &amp;lt;/head&amp;gt;
   &amp;lt;body&amp;gt;
      &amp;lt;h2&amp;gt;Example of HTML &amp;lt;dt&amp;gt; Tag&amp;lt;/h2&amp;gt;
      &amp;lt;dl&amp;gt;
      &amp;lt;dt&amp;gt;HTML&amp;lt;/dt&amp;gt;
      &amp;lt;dd&amp;gt;Hypertext Markup Language &amp;lt;/dd&amp;gt;
      &amp;lt;dd&amp;gt;It is the language for authoring web documents.&amp;lt;/dd&amp;gt;
      &amp;lt;dt&amp;gt;CSS&amp;lt;/dt&amp;gt;
      &amp;lt;dd&amp;gt;Cascading Style Sheets&amp;lt;/dd&amp;gt;
      &amp;lt;dd&amp;gt;It is the language for defining the styles and presentation of an HTML document.&amp;lt;/dd&amp;gt;
      &amp;lt;dt&amp;gt; JavaScript&amp;lt;/dt&amp;gt;
      &amp;lt;dd&amp;gt;A scripting language built-in to most browsers and designed to be used with web documents.&amp;lt;/dd&amp;gt;
      &amp;lt;/dl&amp;gt;
   &amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;

&lt;/code&gt;&lt;/pre&gt;



&lt;h2&gt;
  
  
  Result:
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--a2w1MMvL--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://sharepointanchor.com/wp-content/uploads/2021/02/Result-29.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--a2w1MMvL--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://sharepointanchor.com/wp-content/uploads/2021/02/Result-29.png" alt=""&gt;&lt;/a&gt;Result&lt;/p&gt;

&lt;h3&gt;
  
  
  Download Sample File:
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://sharepointanchor.com/wp-content/uploads/2021/02/HTML-dt-Tag.html"&gt;HTML-dt-Tag&lt;/a&gt;&lt;a href="https://sharepointanchor.com/wp-content/uploads/2021/02/HTML-dt-Tag.html"&gt;Download&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Attributes:
&lt;/h2&gt;

&lt;p&gt;The &lt;/p&gt;


&lt;/dd&gt;
&lt;br&gt;
&lt;dt&gt; tag supports both the  &lt;strong&gt;global attributes&lt;/strong&gt;  and the  &lt;strong&gt;event attributes&lt;/strong&gt;.

&lt;h2&gt;
  
  
  Styling Methods for &lt;dt&gt; Tag:
&lt;/dt&gt;
&lt;/h2&gt;

&lt;p&gt;You can use the following CSS properties to style an HTML Description Term tag.&lt;/p&gt;

&lt;h3&gt;
  
  
  Properties to style the visual weight/emphasis/size of the text in &lt;dt&gt; tag:
&lt;/dt&gt;
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;CSS font-style&lt;/strong&gt; – This CSS property helps to set the font style of the text such as normal, italic, oblique, initial, inherit.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CSS font-family&lt;/strong&gt; – This CSS property specifies a prioritized list of one or more font family names or generic family names for the selected element.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CSS font-size&lt;/strong&gt; – This CSS property will help to set the size of the font.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CSS font-weight&lt;/strong&gt; – This CSS property used to define whether the font should be bold or thick.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CSS text-transform&lt;/strong&gt; – This CSS property will control the text case and capitalization.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CSS test-decoration&lt;/strong&gt; – This CSS property specifies the decoration added to text such as &lt;strong&gt;text-decoration-line&lt;/strong&gt; , &lt;strong&gt;text-decoration-color&lt;/strong&gt; , &lt;strong&gt;text-decoration- style&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Styles to coloring the text in &lt;dt&gt; Tag:
&lt;/dt&gt;
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;CSS color&lt;/strong&gt; – This CSS property will specify the color of the text content and decorations.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CSS background-color&lt;/strong&gt; – This CSS property helps to set the background color of an element. &lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Text layout styles for &lt;dt&gt; Tag:
&lt;/dt&gt;
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;CSS text-indent&lt;/strong&gt; – This CSS property is used to specify the indentation of the first line in a text block.&lt;/li&gt;
&lt;li&gt;*&lt;em&gt;CSS text-overflow *&lt;/em&gt; – This CSS property helps to describe how overflowed content that is not displayed should be signaled to the user.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CSS white-space&lt;/strong&gt; – This CSS property describes how white-space inside an element is handled.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CSS word-break&lt;/strong&gt;  – This CSS property decides where the lines should be broken.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Other Properties for &lt;dt&gt; Tag:
&lt;/dt&gt;
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;CSS text-shadow&lt;/strong&gt;  – This CSS property helps to add the shadow to text.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CSS text-align-last&lt;/strong&gt;  – This CSS property will set the alignment of the last line of the text.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CSS line-height&lt;/strong&gt; – This CSS property defines the height of a line.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CSS letter-spacing&lt;/strong&gt; – This CSS property helps to decide the spaces between letters/characters in a text.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CSS word-spacing&lt;/strong&gt; – This CSS property specifies the spacing between every word.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Browser Support:
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--slXVOaUP--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://sharepointanchor.com/wp-content/uploads/2021/02/Browser-Support-8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--slXVOaUP--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://sharepointanchor.com/wp-content/uploads/2021/02/Browser-Support-8.png" alt=""&gt;&lt;/a&gt;Browser Support&lt;/p&gt;

&lt;h3&gt;
  
  
  Related Articles:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;&lt;a href="https://sharepointanchor.com/learn-html/html-center-tag/"&gt;HTML &lt;center&gt; Center Tag&lt;/center&gt;&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;a href="https://sharepointanchor.com/learn-html/html-aside-tag/"&gt;HTML  Aside Tag&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;a href="https://sharepointanchor.com/learn-html/basic-html-definitions-and-usages-in-real-world/"&gt;Basic HTML Definitions and Usages in the Real World&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;a href="https://sharepointanchor.com/learn-html/html-big-tag/"&gt;HTML  Big Tag&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://sharepointanchor.com/learn-html/html-dd-definition-description/"&gt;&lt;strong&gt;HTML &lt;dd&gt; Definition Description Tag&lt;/dd&gt;&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The post &lt;a href="https://sharepointanchor.com/learn-html/html-dt-description-term-tag/"&gt;HTML &lt;code&gt;&lt;dt&gt;&lt;/dt&gt;&lt;/code&gt; Description Term Tag&lt;/a&gt; appeared first on &lt;a href="https://sharepointanchor.com"&gt;Share Point Anchor&lt;/a&gt;.&lt;/p&gt;


&lt;/dt&gt;
&lt;br&gt;
&lt;/dl&gt;

</description>
      <category>learnhtml</category>
      <category>htmld</category>
    </item>
  </channel>
</rss>
