HTML by Function

Ordered by Function

DTD: indicates in which HTML 4.01 / XHTML 1.0 DTD the tag is allowed. S=Strict, T=Transitional, and F=Frameset

Tag Description DTD
Basic
<!DOCTYPE> Defines the document type STF
<html> Defines an HTML document STF
<body> Defines the document’s body STF
<h1> to <h6> Defines HTML headings STF
<p> Defines a paragraph STF
<br /> Inserts a single line break STF
<hr /> Defines a horizontal line STF
<!–…–> Defines a comment STF
Formatting
<acronym> Defines an acronym STF
<abbr> Defines an abbreviation STF
<address> Defines contact information for the author/owner of a document STF
<b> Defines bold text STF
<bdo> Defines the text direction STF
<big> Defines big text STF
<blockquote> Defines a long quotation STF
<center> Deprecated. Defines centered text TF
<cite> Defines a citation STF
<code> Defines computer code text STF
<del> Defines deleted text STF
<dfn> Defines a definition term STF
<em> Defines emphasized text STF
<font> Deprecated. Defines font, color, and size for text TF
<i> Defines italic text STF
<ins> Defines inserted text STF
<kbd> Defines keyboard text STF
<pre> Defines preformatted text STF
<q> Defines a short quotation STF
<s> Deprecated. Defines strikethrough text TF
<samp> Defines sample computer code STF
<small> Defines small text STF
<strike> Deprecated. Defines strikethrough text TF
<strong> Defines strong text STF
<sub> Defines subscripted text STF
<sup> Defines superscripted text STF
<tt> Defines teletype text STF
<u> Deprecated. Defines underlined text TF
<var> Defines a variable part of a text STF
<xmp> Deprecated. Defines preformatted text
Forms
<form> Defines an HTML form for user input STF
<input /> Defines an input control STF
<textarea> Defines a multi-line text input control STF
<button> Defines a push button STF
<select> Defines a select list (drop-down list) STF
<optgroup> Defines a group of related options in a select list STF
<option> Defines an option in a select list STF
<label> Defines a label for an input element STF
<fieldset> Defines a border around elements in a form STF
<legend> Defines a caption for a fieldset element STF
<isindex> Deprecated. Defines a searchable index related to a document TF
Frames
<frame /> Defines a window (a frame) in a frameset F
<frameset> Defines a set of frames F
<noframes> Defines an alternate content for users that do not support frames TF
<iframe> Defines an inline frame TF
Images
<img /> Defines an image STF
<map> Defines an image-map STF
<area /> Defines an area inside an image-map STF
Links
<a> Defines an anchor STF
<link /> Defines the relationship between a document and an external resource STF
Lists
<ul> Defines an unordered list STF
<ol> Defines an ordered list STF
<li> Defines a list item STF
<dir> Deprecated. Defines a directory list TF
<dl> Defines a definition list STF
<dt> Defines a term (an item) in a definition list STF
<dd> Defines a description of a term in a definition list STF
<menu> Deprecated. Defines a menu list TF
Tables
<table> Defines a table STF
<caption> Defines a table caption STF
<th> Defines a header cell in a table STF
<tr> Defines a row in a table STF
<td> Defines a cell in a table STF
<thead> Groups the header content in a table STF
<tbody> Groups the body content in a table STF
<tfoot> Groups the footer content in a table STF
<col /> Defines attribute values for one or more columns in a table STF
<colgroup> Defines a group of columns in a table for formatting STF
Styles
<style> Defines style information for a document STF
<div> Defines a section in a document STF
<span> Defines a section in a document STF
Meta Info
<head> Defines information about the document STF
<title> Defines the document title STF
<meta> Defines metadata about an HTML document STF
<base /> Defines a default address or a default target for all links on a page STF
<basefont /> Deprecated. Defines a default font, color, or size for the text in a page TF
Programming
<script> Defines a client-side script STF
<noscript> Defines an alternate content for users that do not support client-side scripts STF
<applet> Deprecated. Defines an embedded applet TF
<object> Defines an embedded object STF
<param /> Defines a parameter for an object STF

Source: http://www.w3schools.com/tags/ref_byfunc.asp

  • Share/Bookmark

HTTP Status Messages

When a browser requests a service from a web server, an error might occur.

This is a list of HTTP status messages that might be returned:

1xx: Information

Message: Description:
100 Continue Only a part of the request has been received by the server, but as long as it has not been rejected, the client should continue with the request
101 Switching Protocols The server switches protocol

2xx: Successful

Message: Description:
200 OK The request is OK
201 Created The request is complete, and a new resource is created
202 Accepted The request is accepted for processing, but the processing is not complete
203 Non-authoritative Information
204 No Content
205 Reset Content
206 Partial Content
Your Ad Here

Click here to get 1 Million Guaranteed Real Visitors, FREE!
Cheap Linux Dedicated server starts at $37/mo. FREE SETUP!

3xx: Redirection

Message: Description:
300 Multiple Choices A link list. The user can select a link and go to that location. Maximum five addresses
301 Moved Permanently The requested page has moved to a new url
302 Found The requested page has moved temporarily to a new url
303 See Other The requested page can be found under a different url
304 Not Modified
305 Use Proxy
306 Unused This code was used in a previous version. It is no longer used, but the code is reserved
307 Temporary Redirect The requested page has moved temporarily to a new url

4xx: Client Error

Message: Description:
400 Bad Request The server did not understand the request
401 Unauthorized The requested page needs a username and a password
402 Payment Required You can not use this code yet
403 Forbidden Access is forbidden to the requested page
404 Not Found The server can not find the requested page
405 Method Not Allowed The method specified in the request is not allowed
406 Not Acceptable The server can only generate a response that is not accepted by the client
407 Proxy Authentication Required You must authenticate with a proxy server before this request can be served
408 Request Timeout The request took longer than the server was prepared to wait
409 Conflict The request could not be completed because of a conflict
410 Gone The requested page is no longer available
411 Length Required The “Content-Length” is not defined. The server will not accept the request without it
412 Precondition Failed The precondition given in the request evaluated to false by the server
413 Request Entity Too Large The server will not accept the request, because the request entity is too large
414 Request-url Too Long The server will not accept the request, because the url is too long. Occurs when you convert a “post” request to a “get” request with a long query information
415 Unsupported Media Type The server will not accept the request, because the media type is not supported
416
417 Expectation Failed

5xx: Server Error

Message: Description:
500 Internal Server Error The request was not completed. The server met an unexpected condition
501 Not Implemented The request was not completed. The server did not support the functionality required
502 Bad Gateway The request was not completed. The server received an invalid response from the upstream server
503 Service Unavailable The request was not completed. The server is temporarily overloading or down
504 Gateway Timeout The gateway has timed out
505 HTTP Version Not Supported The server does not support the “http protocol” version

Source Reference: http://www.w3schools.com/tags/ref_httpmessages.asp

  • Share/Bookmark

SQL Quick Reference

The following are the list of  SQL Statement  and its  Syntax:

AND / OR

Syntax

SELECT column_name(s)

FROM table_name

WHERE condition

AND|OR condition

ALTER TABLE

Syntax

ALTER TABLE table_name

ADD column_name datatype

or

ALTER TABLE table_name

DROP COLUMN column_name

AS (alias)

Syntax

SELECT column_name AS column_alias

FROM table_name

or

Your Ad Here

Click here to get 1 Million Guaranteed Real Visitors, FREE!
Cheap Linux Dedicated server starts at $37/mo. FREE SETUP!

SELECT column_name

FROM table_name AS table_alias

BETWEEN

Syntax

SELECT column_name(s)

FROM table_name

WHERE column_name

BETWEEN value1 AND value2

CREATE DATABASE

Syntax

CREATE DATABASE database_name

CREATE TABLE

Syntax

CREATE TABLE table_name

(

column_name1 data_type,

column_name2 data_type,

column_name2 data_type,

) Read More »

  • Share/Bookmark

HTML Quick Reference

Currently, I am self-studying anything about computer programming and for the moment I am reading HTML from W3schools online tutorials.  Here’s my notes for HTML Quick Reference.

HTML Basic Document

<html>

<head>

<title>Document name goes here</title>

</head>

<body>

Visible text goes here…

</body>

</html>

Heading Elements

<h1>Largest Heading</h1>

<h2> . . . </h2>

<h3> . . . </h3>

<h4> . . . </h4>

<h5> . . . </h5>

<h6>Smallest Heading</h6>

Text Elements

<p>This is a paragraph</p>

<br /> (line break)

<hr /> (horizontal rule)

<pre>This text is preformatted</pre>

Logical Styles

<em>This text is emphasized</em>

<strong>This text is strong</strong>

<code>This is some computer code</code>

Physical Styles

<b>This text is bold</b>

<i>This text is italic</i>

Links, Anchors, and Image Elements

<a href=”http://www.example.com/”>This is a Link</a>

<a href=”http://www.example.com/”><img src=”URL” alt=”Alternate Text”></a>

<a href=”mailto:webmaster@example.com”>Send e-mail</a>

A named anchor:

<a name=”tips”>Useful Tips Section</a>

<a href=”#tips”>Jump to the Useful Tips Section</a>

Unordered list

<ul>

<li>First item</li>

<li>Next item</li>

</ul>

Ordered list

<ol>

<li>First item</li>

<li>Next item</li>

</ol>

Definition list

<dl>

<dt>First term</dt>

<dd>Definition</dd>

Your Ad Here

Click here to get 1 Million Guaranteed Real Visitors, FREE!
Cheap Linux Dedicated server starts at $37/mo. FREE SETUP!

<dt>Next term</dt>

<dd>Definition</dd>

</dl>

Tables

<table border=”1″>

<tr>

<th>Tableheader</th>

<th>Tableheader</th>

</tr>

<tr>

<td>sometext</td>

<td>sometext</td>

</tr>

</table>

Frames

<frameset cols=”25%,75%”>

<frame src=”page1.htm” />

<frame src=”page2.htm” />

</frameset>

Forms

<form action=”http://www.example.com/test.asp” method=”post/get”>

<input type=”text” name=”email” value=”someone@example.com” size=”40″ maxlength=”50″ />

<input type=”password” />

<input type=”checkbox” checked=”checked” />

<input type=”radio” checked=”checked” />

<input type=”submit” />

<input type=”reset” />

<input type=”hidden” />

<select>

<option>Apples</option>

<option selected=”selected”>Bananas</option>

<option>Cherries</option>

</select>

<textarea name=”comment” rows=”60″ cols=”20″></textarea>

</form>

Entities

&lt; is the same as <

&gt; is the same as >

&#169; is the same as ©

Other Elements

<!– This is a comment –>

<blockquote>

Text quoted from a source.

</blockquote>

<address>

Written by W3Schools.com<br />

<a href=”mailto:us@example.org”>Email us</a><br />

Address: Box 564, Disneyland<br />

Phone: +12 34 56 78

</address>

Source : http://www.w3schools.com/html/html_quick.asp

  • Share/Bookmark