Thursday, 20 October 2016

HTML Basics

HTML (HyperText Markup Language), CSS (Cascade Styling Sheet), JS (JavaScript) are the very basic programming languages used to create and build websites. On this blog I will help and aid you to use the tools needed to build a basic website. The easiest way to write code for HTML, CSS or JS is to have a text editor. The text editor you use should be able to edit your code and run it through a browser such as FireFox or Google Chrome. The text editor I would suggest is Notepad++. Please find the link below if you wish to download this editor.
We will first take a look at HTML. HTML uses building blocks known as 'Elements' to create a webpage or certain applications. The most basic element tags would be:

  • <body>
  • <html>
  • <h1> ... <h6>
  • <p>
Every HTML document begins with the type declaration: <!DOCTYPE html>
The HTML document itself is contained between the <html> tag, followed by the <body> tag.
Within these tags is where you find the main bulk of your website, which include tags such as your <p> and <h1> to <h6> tags.
Every tag has an opening and a closing tag. This is denoted by a '/' in front of every closing tag. Within the opening and closing tags is where you will type what you want to be outputted on your website.
See the screenshot below for an example.
Download link for Notepad++:

1 comment:

  1. This comment has been removed by the author.

    ReplyDelete