Basic HTML Explained

Welcome to a little instruction manual about HTML.

First of all, what is HTML?

HTML, or HTML5 (5 means the fifth version of HTML), is a widely used coding language for making websites. Even this post has been created using html and also javascript and css which are other programming languages that go along with html.

When you start making a website, you’ll need to create a boilerplate. It’ll look like this:

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width-device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie-edge">
    <title></title>
    <link rel="stylesheet" href="style.css">
  </head>
  <body>
    <script src="script.js"></script>
  </body>
</html>

The <link> tag connects the css file to your html file.

The <script> tag connects the js (javascript) file to your html file.

Most tags will look like this:

<p></p>

But some tags, such as the <br /> and <hr /> only need one tag, since they don’t need to contain any content.

Basic html tag directory:

• <p> The most basic tag. It is used for paragraphs.

• <h1>, <h2>, <h3>, <h4>, <h5>, <h6> Used for headings. they vary in size and shade from <h1> (big and bold) to <h6> (small and thin).

• <div> An object that can be sized using css.

• <br /> This tag is for breaks in text or skipping a line. You can use this in <p> tags.

• <hr /> This tag creates a straight line that will fill the entire width of the object is in, unless otherwise specified using css.

These are only very basic tags, but this is all you really need to know.

 

Leave a Reply

Your email address will not be published. Required fields are marked *

Back To Top
Skip to toolbar