<?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: Bulle Ouvrard</title>
    <description>The latest articles on DEV Community by Bulle Ouvrard (@blobbybobby).</description>
    <link>https://dev.to/blobbybobby</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%2F1419246%2Fd5331d82-c2be-4448-89bc-0a692499f825.jpeg</url>
      <title>DEV Community: Bulle Ouvrard</title>
      <link>https://dev.to/blobbybobby</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/blobbybobby"/>
    <language>en</language>
    <item>
      <title>Lesser-known HTML tags #1</title>
      <dc:creator>Bulle Ouvrard</dc:creator>
      <pubDate>Tue, 18 Jun 2024 21:50:41 +0000</pubDate>
      <link>https://dev.to/blobbybobby/lesser-known-html-tags-1-1697</link>
      <guid>https://dev.to/blobbybobby/lesser-known-html-tags-1-1697</guid>
      <description>&lt;h2&gt;
  
  
  Let's dive into HTML lands
&lt;/h2&gt;

&lt;p&gt;HTML is vast, and it's easy to overlook most of its tags, even the cool ones. That's why I decided to dive into HTML and share my findings. Here’s a first selection of HTML tags you might not know but would want to test for your next projects.&lt;/p&gt;




&lt;h1&gt;
  
  
  &lt;code&gt;&amp;lt;details&amp;gt;&lt;/code&gt; &amp;amp; &lt;code&gt;&amp;lt;summary&amp;gt;&lt;/code&gt;
&lt;/h1&gt;

&lt;h3&gt;
  
  
  For the collapsible content
&lt;/h3&gt;

&lt;p&gt;You know those accordion sections often seen in Q&amp;amp;A sections on websites? Well, with plain HTML, you can wrap your question in &lt;code&gt;&amp;lt;summary&amp;gt;&lt;/code&gt; and the question-answer block in &lt;code&gt;&amp;lt;details&amp;gt;&lt;/code&gt;. &lt;/p&gt;

&lt;p&gt;Introduced with HTML5, &lt;code&gt;&amp;lt;summary&amp;gt;&lt;/code&gt; allows toggling the content in &lt;code&gt;&amp;lt;details&amp;gt;&lt;/code&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;details&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;summary&amp;gt;&lt;/span&gt;How to pronounce Wingardium Leviosa ?&lt;span class="nt"&gt;&amp;lt;/summary&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;p&amp;gt;&lt;/span&gt;
    It's Le-VIO-sa. Not Levio-SAAAA !
  &lt;span class="nt"&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/details&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Below an example :&lt;br&gt;
&lt;iframe height="600" src="https://codepen.io/blobby-bobby-the-bashful/embed/PovEmWP?height=600&amp;amp;default-tab=result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;Using common HTML attributes (like open), you can add animations or a fancier layout with CSS, so you actually don't need JavaScript or an external library for these fun accordions 😉. &lt;/p&gt;

&lt;p&gt;Here's an example of how to animate &lt;code&gt;&amp;lt;details&amp;gt;&lt;/code&gt; and &lt;code&gt;&amp;lt;summary&amp;gt;&lt;/code&gt; with CSS:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="c"&gt;/* Replacing the arrow with a custom icon displayed at the end of &amp;lt;summary&amp;gt; */&lt;/span&gt;
&lt;span class="nt"&gt;summary&lt;/span&gt;&lt;span class="nd"&gt;::after&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;content&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;''&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;18px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;height&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;18px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;background&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sx"&gt;url('https://cdn-icons-png.flaticon.com/512/32/32339.png')&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;background-size&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;cover&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;margin-left&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;.75em&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;transition&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;0.2s&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="c"&gt;/* Then we animate this icon on click on details */&lt;/span&gt;
  &lt;span class="nt"&gt;details&lt;/span&gt;&lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="nt"&gt;open&lt;/span&gt;&lt;span class="o"&gt;]&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="nt"&gt;summary&lt;/span&gt;&lt;span class="nd"&gt;::after&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;transform&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;rotate&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="m"&gt;45deg&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And here's the result :&lt;/p&gt;

&lt;p&gt;&lt;iframe height="600" src="https://codepen.io/blobby-bobby-the-bashful/embed/RwmgEdG?height=600&amp;amp;default-tab=result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;




&lt;h1&gt;
  
  
  &lt;code&gt;&amp;lt;ins&amp;gt;&lt;/code&gt; &amp;amp; &lt;code&gt;&amp;lt;del&amp;gt;&lt;/code&gt;
&lt;/h1&gt;

&lt;h3&gt;
  
  
  For the text edits annotations
&lt;/h3&gt;

&lt;p&gt;Have you seen Git commits where added code is highlighted in green and deleted code in red? Need to mark up text changes ? Introduced with HTML4, &lt;code&gt;&amp;lt;ins&amp;gt;&lt;/code&gt; and &lt;code&gt;&amp;lt;del&amp;gt;&lt;/code&gt; serve this purpose, allowing version control within a document, and displaying the range of text that has been inserted/removed.&lt;/p&gt;

&lt;p&gt;There are two ways of using &lt;code&gt;&amp;lt;ins&amp;gt;&lt;/code&gt; and &lt;code&gt;&amp;lt;del&amp;gt;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Case 1 - inner text edit&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;p&amp;gt;&lt;/span&gt;“It's Le-&lt;span class="nt"&gt;&amp;lt;ins&amp;gt;&lt;/span&gt;viooooo&lt;span class="nt"&gt;&amp;lt;/ins&amp;gt;&lt;/span&gt;-sa&lt;span class="nt"&gt;&amp;lt;del&amp;gt;&lt;/span&gt;aaaa&lt;span class="nt"&gt;&amp;lt;/del&amp;gt;&lt;/span&gt;!”&lt;span class="nt"&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Case 2 - Like those good old commits&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt; &lt;span class="nt"&gt;&amp;lt;p&amp;gt;&lt;/span&gt;“Wingardium Leviosa”&lt;span class="nt"&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;

 &lt;span class="nt"&gt;&amp;lt;ins&lt;/span&gt; &lt;span class="na"&gt;cite=&lt;/span&gt;&lt;span class="s"&gt;"../howtobeawizard.html"&lt;/span&gt; &lt;span class="na"&gt;datetime=&lt;/span&gt;&lt;span class="s"&gt;"2024-05"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;p&amp;gt;&lt;/span&gt;“It’s Wing-&lt;span class="nt"&gt;&amp;lt;b&amp;gt;&lt;/span&gt;GAR&lt;span class="nt"&gt;&amp;lt;/b&amp;gt;&lt;/span&gt;-dium Levi-&lt;span class="nt"&gt;&amp;lt;b&amp;gt;&lt;/span&gt;O&lt;span class="nt"&gt;&amp;lt;/b&amp;gt;&lt;/span&gt;-sa”&lt;span class="nt"&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/ins&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;del&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;p&amp;gt;&lt;/span&gt;“Not Levio-&lt;span class="nt"&gt;&amp;lt;b&amp;gt;&lt;/span&gt;SAAAAAAA&lt;span class="nt"&gt;&amp;lt;/b&amp;gt;&lt;/span&gt;”&lt;span class="nt"&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/del&amp;gt;&lt;/span&gt;

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

&lt;/div&gt;



&lt;p&gt;As shown in the example above, &lt;code&gt;&amp;lt;ins&amp;gt;&lt;/code&gt; and &lt;code&gt;&amp;lt;del&amp;gt;&lt;/code&gt; come with the attributes &lt;code&gt;cite&lt;/code&gt; and &lt;code&gt;datetime&lt;/code&gt;, so you can provide the date and source as additional information.&lt;/p&gt;

&lt;p&gt;&lt;iframe height="600" src="https://codepen.io/blobby-bobby-the-bashful/embed/dyERQZj?height=600&amp;amp;default-tab=result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;




&lt;h1&gt;
  
  
  &lt;code&gt;&amp;lt;address&amp;gt;&lt;/code&gt;
&lt;/h1&gt;

&lt;h3&gt;
  
  
  For your contact informations
&lt;/h3&gt;

&lt;p&gt;&lt;code&gt;&amp;lt;address&amp;gt;&lt;/code&gt; is designed to define the contact information for a person or an organization, typically the author of the site or a specific post.&lt;/p&gt;

&lt;p&gt;Therefore, the &lt;code&gt;&amp;lt;address&amp;gt;&lt;/code&gt; tag can include an email address, URL, physical address, phone number, or social media handle, and it is displayed in italics by default. The most appropriate places to use this tag are within the footer, of an &lt;code&gt;&amp;lt;article&amp;gt;&lt;/code&gt; or of the &lt;code&gt;&amp;lt;body&amp;gt;&lt;/code&gt; in a web page.&lt;/p&gt;

&lt;p&gt;Here’s an example of how to use the &lt;code&gt;&amp;lt;address&amp;gt;&lt;/code&gt; tag:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;p&amp;gt;&lt;/span&gt;Contact information&lt;span class="nt"&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;address&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;a&lt;/span&gt; &lt;span class="na"&gt;href=&lt;/span&gt;&lt;span class="s"&gt;"mailto:just@curious.com"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;just@curious.com&lt;span class="nt"&gt;&amp;lt;/a&amp;gt;&amp;lt;br&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;a&lt;/span&gt; &lt;span class="na"&gt;href=&lt;/span&gt;&lt;span class="s"&gt;"tel:+33666666666"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;06 66 66 66 66&lt;span class="nt"&gt;&amp;lt;/a&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/address&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And below a playground with this tag:&lt;/p&gt;

&lt;p&gt;&lt;iframe height="600" src="https://codepen.io/blobby-bobby-the-bashful/embed/bGyROJY?height=600&amp;amp;default-tab=result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;




&lt;p&gt;And that's it for this first exploration ^^.&lt;/p&gt;

&lt;p&gt;Many other cool but sadly ignored HTML tags are waiting to be discovered 👀. I’ll share more of them later.&lt;/p&gt;

&lt;p&gt;See you soon 👋!&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>html</category>
      <category>css</category>
      <category>beginners</category>
    </item>
  </channel>
</rss>
