Friday, November 9, 2018

HTML tags

<html> </html> 

Indicates the start and end of the HTML document.

<head> </head>

Head of the HTML document. Has no attribute that displays directly on the document. Contains only metadata of the HTML document.

<body> </body>

The body of the HTML document. This part is what you will display on your page.

MOST USED TAGS YOU CAN USE BETWEEN HEAD TAGS

<title> </title>

Title of the page. Basically, the tab name that you see on your browser.

<style> </style>

The part that you can customize the colors and styles of your document. The CSS part. We will give more information about it.

<meta  />

It hasn't got a different ending tag. We use this tag to indicate character set that we are using, keywords that you can use to search on google, description, and content of the page. We will talk about it more.

<link>

Has no ending tag. You can use it to use CSS or JS documents from a link. We will talk more about it.

<script> </script>

Javascript part if you want to add.

<base>

Has no ending tag. It specifies default URLs and default link targets on a page.


MOST USED TAGS YOU CAN USE BETWEEN BODY TAGS

<p> </p>

Stands for PARAGRAPH. What you write between will be displayed as a paragraph.

<h1> </h1> , <h2> </h2>, <h3> </h3>, ...

Stands for HEADER1, HEADER2, ... Displays text as a header. H1 indicates the main header.

<a> </a>

An abbreviation for ANCHOR. What it does is anchoring to another link.

<button> </button>

Adds BUTTON.

<ul> </ul>

Stands for UNORDERED LIST. Starts a list with unordered bullets.

<ol> </ol>

Stands for ORDERED LIST. Starts a list with ordered bullets.

<li> </li>

Stands for LIST ITEM. Every item you add to your list should start and end with these.

<br> or </br>

Stands for BREAK. You can use it as enter button.

<img>

Stands for IMAGE. You can use it to add images.

<table> </table>

Indicates the start and end of a TABLE.

<caption> </caption>

Indicates the CAPTION of the table.

<tr> </tr>

Stands for TABLE ROW. Indicates the start and end of a table row.

<th> </th>

Stands for TABLE HEADER. Indicates the start and end of a table column header.

<td> </td>

Stands for TABLE DATA. Indicates the start and end of a table data.



No comments:

Post a Comment