<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Robert's Software and Technology blog]]></title><description><![CDATA[I am a C# software developer from South Africa]]></description><link>https://blog.devrmj.com</link><generator>RSS for Node</generator><lastBuildDate>Fri, 01 May 2026 18:26:40 GMT</lastBuildDate><atom:link href="https://blog.devrmj.com/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[How to start a new project using HTML, CSS and JavaScript]]></title><description><![CDATA[Thinking back to my days as a junior and not knowing much, I remember the one thing that always held me back. I never knew where to begin, how do I start a new project? How do I get that starting point and then continue from there onward? This is a s...]]></description><link>https://blog.devrmj.com/how-to-start-a-new-project-using-html-css-and-javascript</link><guid isPermaLink="true">https://blog.devrmj.com/how-to-start-a-new-project-using-html-css-and-javascript</guid><category><![CDATA[HTML]]></category><category><![CDATA[CSS]]></category><category><![CDATA[JavaScript]]></category><category><![CDATA[Tutorial]]></category><dc:creator><![CDATA[Robert]]></dc:creator><pubDate>Wed, 26 Aug 2020 12:06:25 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/upload/v1598286966586/nfZn2YXuu.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Thinking back to my days as a junior and not knowing much, I remember the one thing that always held me back. I never knew where to begin, how do I start a new project? How do I get that starting point and then continue from there onward? This is a small tutorial on just how to get started with a basic shell of a project. </p>
<p>Let's get started</p>
<h2 id="step-by-step">Step by Step</h2>
<p>Create a new folder somewhere that you will run your projects from. I prefer one of two options:</p>
<ul>
<li>Create a '<code>development</code>' folder on your C:/ drive or your home folder in Linux/Mac OS</li>
<li>Create a '<code>development</code>' folder on another partition or external HDD</li>
</ul>
<blockquote>
<p>Normally at this stage, I would create a new project with GIT in <a target="_blank" href="https://bitbucket.com">Bitbucket</a> or <a target="_blank" href="https://github.com">GitHub</a>, but in this tutorial, I will skip source control as this is a more advanced topic to discuss.</p>
</blockquote>
<p>Let's create a new folder in our '<code>development</code>' folder which we just created. Let's call this new folder '<code>HelloWorld</code>' as it is customary to create our '<code>HelloWorld</code>' application as our first project. </p>
<p>Next, open the folder in your favourite IDE or text editor. I prefer Visual Studio Code over other text editors due to its rich features and performance. </p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1598285416471/anHld2Su5.png" alt="fileNewProject_vscode.png" />
You will now see something similar to this in your text editor.</p>
<p>Now let's create the structure of our first project.</p>
<p>We will need the following: </p>
<ul>
<li>An index.html page. This will be our first page that loads when our website loads.</li>
<li>A folder for all our <code>cascading style sheets(CSS)</code>. This will contain all our <code>CSS</code>. This will hold all the files that make our website look pretty.</li>
<li>A folder for all our JavaScript files. This will contain all script files that will be in use by our website.</li>
</ul>
<p>First, we will create the <strong>index.html</strong> page. Now the index page cannot just be empty. Every HTML page must have the standard format and skeleton of an HTML page. This includes the '<code>DOCTYPE</code>', '<code>head</code>' and <code>body</code>. Now we need to add this to our <code>index.html</code> as seen below.</p>
<pre><code class="lang-html"><span class="hljs-meta">&lt;!DOCTYPE <span class="hljs-meta-keyword">html</span>&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-name">html</span> <span class="hljs-attr">lang</span>=<span class="hljs-string">"en"</span>&gt;</span>

<span class="hljs-tag">&lt;<span class="hljs-name">head</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">meta</span> <span class="hljs-attr">charset</span>=<span class="hljs-string">"UTF-8"</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">meta</span> <span class="hljs-attr">name</span>=<span class="hljs-string">"viewport"</span> <span class="hljs-attr">content</span>=<span class="hljs-string">"width=device-width, initial-scale=1.0"</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">meta</span> <span class="hljs-attr">http-equiv</span>=<span class="hljs-string">"X-UA-Compatible"</span> <span class="hljs-attr">content</span>=<span class="hljs-string">"ie=edge"</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">title</span>&gt;</span>HelloWorld<span class="hljs-tag">&lt;/<span class="hljs-name">title</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">head</span>&gt;</span>

<span class="hljs-tag">&lt;<span class="hljs-name">body</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">h1</span>&gt;</span>Hello World!<span class="hljs-tag">&lt;/<span class="hljs-name">h1</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">p</span>&gt;</span>This is my first web application<span class="hljs-tag">&lt;/<span class="hljs-name">p</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">body</span>&gt;</span>

<span class="hljs-tag">&lt;/<span class="hljs-name">html</span>&gt;</span>
</code></pre>
<p>This is the basic shell of your <code>index.html</code> page. </p>
<p>Next, we will create two folders in our project, one called <code>scripts</code> and one called <code>content</code>. The <code>content</code> folder will become the home for all your <code>CSS</code> and the <code>scripts</code> folder will become the home of all your <code>JavaScript</code> files. </p>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1598285437381/Ngn8X2jW4.png" alt="fileNewProject_projectlayout.png" /></p>
<p>This is the general idea of how your project folder would look at this stage if you followed all instructions.</p>
<p>Now that we have our basic structure lets go one step further and see how all this connects.</p>
<p>Create a new <code>JavaScript</code> file in the <code>scripts</code> folder and call it <code>index.js</code>. Now add this file to your <code>index.html</code>  to tell your browser that we need this file and that it must be loaded. We will add only <code>&lt;script src="scripts/index.js"&gt;&lt;/script&gt;</code> to the file to let the browser know that it must load this file.</p>
<pre><code class="lang-html"><span class="hljs-meta">&lt;!DOCTYPE <span class="hljs-meta-keyword">html</span>&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-name">html</span> <span class="hljs-attr">lang</span>=<span class="hljs-string">"en"</span>&gt;</span>

<span class="hljs-tag">&lt;<span class="hljs-name">head</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">meta</span> <span class="hljs-attr">charset</span>=<span class="hljs-string">"UTF-8"</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">meta</span> <span class="hljs-attr">name</span>=<span class="hljs-string">"viewport"</span> <span class="hljs-attr">content</span>=<span class="hljs-string">"width=device-width, initial-scale=1.0"</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">meta</span> <span class="hljs-attr">http-equiv</span>=<span class="hljs-string">"X-UA-Compatible"</span> <span class="hljs-attr">content</span>=<span class="hljs-string">"ie=edge"</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">title</span>&gt;</span>HelloWorld<span class="hljs-tag">&lt;/<span class="hljs-name">title</span>&gt;</span>

    <span class="hljs-tag">&lt;<span class="hljs-name">script</span> <span class="hljs-attr">src</span>=<span class="hljs-string">"scripts/index.js"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">script</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">head</span>&gt;</span>

<span class="hljs-tag">&lt;<span class="hljs-name">body</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">h1</span>&gt;</span>Hello World!<span class="hljs-tag">&lt;/<span class="hljs-name">h1</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">p</span>&gt;</span>This is my first web application<span class="hljs-tag">&lt;/<span class="hljs-name">p</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">body</span>&gt;</span>

<span class="hljs-tag">&lt;/<span class="hljs-name">html</span>&gt;</span>
</code></pre>
<p>In <code>index.js</code> we will just put something simple to know its there and loaded.</p>
<pre><code class="lang-javascript"><span class="hljs-built_in">console</span>.log(<span class="hljs-string">"Hello World!"</span>);
</code></pre>
<p>This will write to your developer console <code>Hello World!</code> when the <code>index.js</code> file has loaded. Now open up your <code>index.html</code> in the browser. You will see nothing for the moment but if you open up your developer tools, by pressing F12, and navigating to the <code>console</code> area you will see a <code>HelloWorld!</code> message. </p>
<p>Let's get something onto the page to load and to make it pretty!</p>
<p>Create a new <code>CSS</code> file in your contents folder and call it <code>styles.css</code>. Now to add the stylesheet to <code>HTML</code> to allow the browser to load our stylesheet. We will need to add <code>&lt;link rel="stylesheet" href="content/styles.css" /&gt;</code> to our <code>HTML</code> to allow the browser to load our <code>CSS</code></p>
<pre><code class="lang-html"><span class="hljs-meta">&lt;!DOCTYPE <span class="hljs-meta-keyword">html</span>&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-name">html</span> <span class="hljs-attr">lang</span>=<span class="hljs-string">"en"</span>&gt;</span>

<span class="hljs-tag">&lt;<span class="hljs-name">head</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">meta</span> <span class="hljs-attr">charset</span>=<span class="hljs-string">"UTF-8"</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">meta</span> <span class="hljs-attr">name</span>=<span class="hljs-string">"viewport"</span> <span class="hljs-attr">content</span>=<span class="hljs-string">"width=device-width, initial-scale=1.0"</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">meta</span> <span class="hljs-attr">http-equiv</span>=<span class="hljs-string">"X-UA-Compatible"</span> <span class="hljs-attr">content</span>=<span class="hljs-string">"ie=edge"</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">title</span>&gt;</span>HelloWorld<span class="hljs-tag">&lt;/<span class="hljs-name">title</span>&gt;</span>

    <span class="hljs-tag">&lt;<span class="hljs-name">script</span> <span class="hljs-attr">src</span>=<span class="hljs-string">"scripts/index.js"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">script</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">link</span> <span class="hljs-attr">rel</span>=<span class="hljs-string">"stylesheet"</span> <span class="hljs-attr">href</span>=<span class="hljs-string">"content/styles.css"</span> /&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">head</span>&gt;</span>

<span class="hljs-tag">&lt;<span class="hljs-name">body</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">h1</span>&gt;</span>Hello World!<span class="hljs-tag">&lt;/<span class="hljs-name">h1</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">p</span>&gt;</span>This is my first web application<span class="hljs-tag">&lt;/<span class="hljs-name">p</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">body</span>&gt;</span>

<span class="hljs-tag">&lt;/<span class="hljs-name">html</span>&gt;</span>
</code></pre>
<p>We will create a little dark mode stylesheet by adding the CSS below to our stylesheet.</p>
<pre><code class="lang-css"><span class="hljs-selector-tag">body</span> {
    <span class="hljs-attribute">background</span>: black;
    <span class="hljs-comment">/* Changes the entire background color to black */</span>
}

<span class="hljs-selector-tag">h1</span> {
    <span class="hljs-attribute">color</span>: white;
    <span class="hljs-comment">/* Changes the text color of all H1 tags to white */</span>
}

<span class="hljs-selector-tag">p</span> {
    <span class="hljs-attribute">color</span>: gray;
    <span class="hljs-comment">/* Changes the text color of all p tags to gray */</span>
}
</code></pre>
<h2 id="conclusion">Conclusion</h2>
<p>That's all there is to it. We got to create our first 'skeleton' project and added some basics to it. Hope this helped someone else as this would have helped past me. </p>
<p>Happy coding :)</p>
<p>o/</p>
<h3 id="links">Links</h3>
<ul>
<li><a target="_blank" href="https://github.com/devrmj/newprojectexample">GitHub Repository with finished tutorial</a></li>
<li><a target="_blank" href="https://code.visualstudio.com/download">Visual Studio Code</a></li>
</ul>
<h3 id="credits">Credits</h3>
<ul>
<li>Banner image by <a target="_blank" href="https://unsplash.com/@matthewhenry">Matthew Henry</a> <ul>
<li>https://unsplash.com/photos/nvFpb_MMRj8</li>
</ul>
</li>
</ul>
]]></content:encoded></item><item><title><![CDATA[Hello World!]]></title><description><![CDATA[Hello 👋, I am Robert, a self-taught software developer from Cape Town, South Africa. 
I specialise in developing software using C#, HTML, JavaScript and CSS. I have been in the software industry for about 7 years now and I am learning something new ...]]></description><link>https://blog.devrmj.com/hello-world</link><guid isPermaLink="true">https://blog.devrmj.com/hello-world</guid><category><![CDATA[Hello World]]></category><category><![CDATA[Productivity]]></category><category><![CDATA[social media]]></category><category><![CDATA[C#]]></category><category><![CDATA[software development]]></category><dc:creator><![CDATA[Robert]]></dc:creator><pubDate>Mon, 24 Aug 2020 10:50:32 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/upload/v1598266031951/sFIMLQlF5.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Hello 👋, I am Robert, a self-taught software developer from Cape Town, South Africa. </p>
<p>I specialise in developing software using C#, HTML, JavaScript and CSS. I have been in the software industry for about 7 years now and I am learning something new every day! </p>
<p>I love tinkering with new software and tools to see what they can do or how it can benefit my working day. I am always looking at new productivity tools like <a target="_blank" href="https://todoist.com">Todoist</a>, <a target="_blank" href="https://notion.so">Notion</a> and <a target="_blank" href="https://toggl.com">Toggl</a> to improve my productivity on a daily basis.</p>
<p>I am currently learning React and I am planning a series of articles as I go along with my journey. </p>
]]></content:encoded></item></channel></rss>