<?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: Diego Gonzalez</title>
    <description>The latest articles on DEV Community by Diego Gonzalez (@diekus).</description>
    <link>https://dev.to/diekus</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%2F819032%2Faf865da0-fe8c-43c5-b7ae-b1297ad064b7.jpg</url>
      <title>DEV Community: Diego Gonzalez</title>
      <link>https://dev.to/diekus</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/diekus"/>
    <language>en</language>
    <item>
      <title>HTML document subtitles?</title>
      <dc:creator>Diego Gonzalez</dc:creator>
      <pubDate>Thu, 10 Nov 2022 16:27:06 +0000</pubDate>
      <link>https://dev.to/diekus/html-document-subtitles-533m</link>
      <guid>https://dev.to/diekus/html-document-subtitles-533m</guid>
      <description>&lt;p&gt;&lt;strong&gt;TLDR: Explainer for adding a document.subtitle (subtitle meta value) to a web page/app;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/MicrosoftEdge/MSEdgeExplainers/blob/main/DocumentSubtitle/explainer.md"&gt;Read the explainer here&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Hola!&lt;/p&gt;

&lt;p&gt;We all know and love (and abuse) the html &lt;code&gt;&amp;lt;title&amp;gt;&lt;/code&gt; tag. Before all the new fancy APIs allowed us to do badging and notifications and all other sorts of bells and whistles, the &lt;code&gt;&amp;lt;title&amp;gt;&lt;/code&gt; element was where most of this information started appearing. It's not uncommon to see:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Web (email) apps that show number of unread emails on the title.&lt;/li&gt;
&lt;li&gt;Web (IM) apps that notify when there is a new instant message on the title.&lt;/li&gt;
&lt;li&gt;Web (productivity) apps that put contextual information about an open file that is being edited. &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;And we can go on with the list of examples. Generally, the UA takes the content of the &lt;code&gt;&amp;lt;title&amp;gt;&lt;/code&gt; tag and displays it in a prominent useful position within the browser, generally &lt;strong&gt;this is the text that appears on a tab&lt;/strong&gt;. &lt;/p&gt;

&lt;p&gt;Title continues to be a really useful tag, but with the increased complexity that a web app can portray, it seems useful to have a new bucket in which we can store relevant content for our app. Hence, the idea of having a &lt;code&gt;document.subtitle&lt;/code&gt;. Let's say, I can have as the title of my web app &lt;strong&gt;Word Processing Web App&lt;/strong&gt; and as the subtitle &lt;strong&gt;openDocTitle.docx&lt;/strong&gt;. &lt;/p&gt;

&lt;p&gt;Furthermore, if in an installed PWA scenario, the UA can take the information from the subtitle and use it to customize the text that appears on the title bar of the installed PWA. This way, for the example mentioned before, my installed word processor PWA would display in its title bar "&lt;strong&gt;Word Processing Web App - openDocTitle.docx&lt;/strong&gt;". &lt;/p&gt;

</description>
      <category>pwa</category>
      <category>webdev</category>
      <category>html</category>
      <category>javascript</category>
    </item>
  </channel>
</rss>
