<?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: Kristian Hviid Nielsen</title>
    <description>The latest articles on DEV Community by Kristian Hviid Nielsen (@kristianhnielsen).</description>
    <link>https://dev.to/kristianhnielsen</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%2F791108%2F56261355-da42-4b2f-b4d4-85380146b86a.png</url>
      <title>DEV Community: Kristian Hviid Nielsen</title>
      <link>https://dev.to/kristianhnielsen</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/kristianhnielsen"/>
    <language>en</language>
    <item>
      <title>How to structure your html?</title>
      <dc:creator>Kristian Hviid Nielsen</dc:creator>
      <pubDate>Wed, 12 Jan 2022 12:45:52 +0000</pubDate>
      <link>https://dev.to/kristianhnielsen/how-to-structure-your-html-46l2</link>
      <guid>https://dev.to/kristianhnielsen/how-to-structure-your-html-46l2</guid>
      <description>&lt;p&gt;I've been learning web dev for a few months now, and getting comfortable with the basics. But I find it hard to keep track of my html files when it becomes too nested, so I've been looking at ways to structure it and create modules.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Have a div with an onload link to an external html file. It can end up being a lot of files for a single page of a site, but other than that, it seems to work okay.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;To use vanilla JS to createElement() with loops and appendChild() to divs on window.onload. This makes it easy to create, add, remove and reuse elements as needed.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;I'm wondering if there's a best practice for structuring your html in a modular way that I'm not aware of?&lt;/p&gt;

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