Welcome guest


Document

DOCTYPE Declaration

Every web document must start with a definition containing the type of the document you are trying to share. With XHTML, that looks like the following:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

HTML

After the doctype declaration, every XHTML document has a <html> tag. This tag tells your browser that this is the start of an XHTML document. Each XHTML document also ends with an </html> which tells your browser that this is the end of the HTML document.

<html xmlns="http://www.w3.org/1999/xhtml">content of your webpage</html>

 

HEAD

The <head> tag contains information that is not viewed directly in the browser window such as the webpage title or any additional elements to your page such as javascript.

<head>content of header</head>

TITLE

The text between the <title> tags contains the title of your webpage. The title appears in the caption bar of your browser.

<title>My webpage title</title>

BODY

The text in between the <body> tags is the text that will be displayed in your browser.

<body>content of the body of your webpage</body>

Comments

Comments are pieces of code that are invisible to the user until they view your source code. They are a critical part of coding, used to put "mental notes" so that when editing later, you remembered what you were doing. Also, if you are not finished with something and want to come back to it later, comments are very beneficial.

<!--Put Comment Here -->



Example: <!-- Put Formula Table Here -->