![code website from scratch code website from scratch](https://i.ytimg.com/vi/WSN_fQXjgjw/maxresdefault.jpg)
Open a new (blank) page (eg, File > New.).Open up a text editor (such as Notepad or Simpletext) or HTML editor.To create a web page like the above example, do the following: Now I'm going to show you how to do this yourself. I've also showed you what that web page looks like in a browser. So far I've showed you the code used to create a basic web page. Some tags are used for formatting (like h1), other tags are used for displaying objects (such as images, forms, tables, etc). There are many more HTML tags (more than 100). You can add as many HTML tags as you like to a web page. The text within the p tags displays as normal paragraph text. If you were to open the above HTML file in your browser, it should look something like this:Īs you can see, any text surrounded by h1 and /h1 appears as a heading (heading level 1 to be exact). The actual tags that you use will depend on the content you want to appear. Some tags are mandatory (all web pages must use them), but most tags are optional. The source code of a web page is made up of HTML tags. Developers often use this when debugging their websites. There are also other options for viewing a page's source code, such as Inspect Element which allows you to open the source code in a side panel with the selected element highlighted in the source code. Depending on your device and browser, you might also be able to right click anywhere on the page to bring up the View Source option. If you use Firefox, go Tools > Web Developer > Page Source. For example, if you use Google Chrome, go View > Developer > View Source. To do this, use your browser's View Page Source feature. The source code will usually open in a new tab. You can view the source code of any web page on the web. The "source code" view - This is the "behind the scenes" code that specifies the content and how the page should appear.The "rendered" view - This is what you see when you view the web page in your browser.Therefore, a web page consists of 2 views: When it is viewed in a text editor (such as Notepad), it displays the text and markup code. When the document is viewed in a web browser, it displays (or "renders") as intended. What is a Web Page?Ī web page is a text file that contains a combination of text and "markup" code. A hosting provider is simply a company that provides web hosting to their customers. This web hosting is usually done by a hosting provider (otherwise known as a hosting company or web host). In order for the world to see it, the website (or collection of web pages) needs to be hosted on a web server. To build a website, you simply create one or more web pages. The web pages are usually linked together, but not always. As you'll soon discover, building your own website is much easier than it sounds! What is a Website?īefore we make our own website, we should understand what a website actually is.Ī website is simply a collection of web pages. Here I show you how to code your own website, then publish it to the web. In fact, coding a basic website can be extremely simple, as long as you know a few HTML tags. The thought of building a website from scratch can be somewhat daunting for beginners.