List Of HTML Tags You Can Use

I just wanted to compile a quick list of the various html tags that you can use when building your website and pages:

<!DOCTYPE> – Specifies the rules for the markup language that the page is written in

<!–> – Used to put any comments on your page, ignored by browsers but there so you can explain anything necessary in your html. Helps when you edit your source in the future

<html> – Begins your HTML document

<head> – Contains information about your page including the title, any meta tags, style tags, and any javascript coding.

<title> – The title of you page

<meta> – Identifies any specifications about the page along with keywords and description

<link> – Shows the relationship between the page and an external source (i.e. your stylesheet)

<script> – Used to define a script used on your page, most common would be javascript

<body> – Defines the pages body or content shown

<h1> – <h6> – Defines HTML headings

<a> – defines an anchor on your page. You can use this to create a link to another page or bookmark inside your page.

<img> – Embeds an image in the HTML page

<input> – Used to select user information

<br> – Inserts a single line break

<b> – Renders bold text

<i> – Renders italic text

<table> – Defines an HTML table

<tbody> – Used to group the body content of a table

<tr> – Defines a row in an HTML table

<td> – Defines a column in an HTML table

<th> – Defines a header cell in an HTML table

<div> – Defines a division or section in your page

<p> – Defines a paragraph

<font> – Specifies the font of the readable text on your page

<q> – Defines a short quotation

There are many more, but those are some of the more common tags that I use when building HTML pages.

Remember that all html tags have an opening and a closing tag. The closing tag usually contains a forward slash at the beginning of it to signify the close (i.e. </html> closes the html document).

Leave a Reply

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