Introduction to Web Development
Html is the most basic so we will start there. The foundation of any website begins with html. There are several basic sections of an html webpage.
The first line of code in a html text file will always define that it is a html file.
This is done by using <!doctype html> and <html> tags. The next section is the <head> and contains the website title (what displays on the browser tab.) This is done by using the <title> tag. The actual webpage is contained inside of the <body> tag. At the end of each section there will almost always be a closing tag.
A Simple Website Example
So a very simple website code will start with something like this:
<head><title>My Website’s Title</title> </head>
My simple website example would display this text on the page. The text within the title tags above would display on the browser tab.
Creating Links and Images
Html is also used to create links. This is done by using a different tag sometimes referred to as an anchor tag. For example this code would create a link to Amazon.com that would display as click here to go to amazon.com.
<a href=”http:/www.amazon.com”> click here to go to Amazon.com</a>
Html is also used to display images. This is done using the following tag.
<img src=”image url”>