/home/web-programming/

HTML Tags

HTML commands are not case sensitive. HTML tags are located between the <> brackets, but symbols are not. Below are some common HTML commands with descriptions.

HTML Tag Purpose of HTML Command
<html></html> Open and close an html (hypertext markup language) page.
<head></head> Open and close the head section, which contains information about each page, including the title, description, meta tags, etc.
<title>Page name goes here</title> Open and close the title, which displays at the top of the browser window.
<meta name="description" content="Add your page description here."> Some search engines use the description to rank the page and to display when listing the page.
<meta name="keywords" content="keyword, keyword"> Some search engines use the keywords to rank the page.
<body></body> Open and close the body section, which contains the information displayed in the browser window.
<p></p> Open and close a paragraph.
<br> Start a new line.
<b></b> Start and end bold.
<i></i> Start and end italics.
<hr> Horizontal rule.
background="images/background.gif" Background image of page located in the images folder.
bgcolor="#ff0000" Background color of the page (red) using hexidecimal.
text="#00ff00" Text color for the page (green) using hexidecimal.
link="#0000ff" Link color for the page (blue) using hexidecimal.
vlink="red" Visited link color for the page without hexidecimal.
alink="green" Click on a link and it changes to this color.
<img src="images/photo.gif"> Display an image located in the images folder.
<img src="images/photo.gif" alt="My Photo" width="50" height="75" border="0" align="right"> Display an image with specific attributes.
<a href="mypage.html">My page</a> Hyperlink to an html page located in the same folder.
<a href="../mypage.html">My page</a> Hyperlink to an html page located in the parent folder.
<a href="http://www.rlwd.biz">My page</a> Hyperlink to the home page of www.rlwd.biz.
<a href="mypage.html"><img src="images/photo.gif"></a> Hyperlink to an html page located in the same folder using an image.
<font face="Arial,Helvetica,Geneva" size="2">Hi!</font> Designate the font style and size of the text between the html tags.
&nbsp; Spacer between text.
&copy; Copyright symbol.
&#149; Bullet point symbol.