How to: HTML

Want to know what it takes to code a website? Well, here are some basics!

All web pages are coded using HTML (HyperText Markup Language); here is the basic format of a properly coded website:

< !DOCTYPE HTML >
< html >
< p >Hello, this is a paragraph!< /p >

The < p > tags define a paragraph, just like the one I am writing here.
If we want to < em >italicize< /em > a word or sentence we simply insert the < em > tags around the word or sentence. Don’t forget to use < /em > to close your tag! Anytime you see a tag with the < / > in it you can be sure that it is a closing tag, which is necessary for all codes.

Inserting an image is easy, and will look like this:
< img src="happyface.jpg" alt="Happy face" >. img src will insert the image, and alt will bring up your alternative text, a.k.a description of the text.

Moving on:

we have

html
body
p
Where body is the body of your text, here you will insert a variety of other tags depending on what it is you want to do!

< strong > will make your text bold.

A full example of what a typical webpage looks like under our HTML microscope (minus the <, >, signs):
!DOCTYPE HTML
html lang=”en”
head
title /title
/head
body
h1 /h1
p
/p
/body
/html