A web page is stored in a file whose named ends with .html
.
For example, the file you are reading is named page.html
.
Put the file in the public_html
subdirectory of your home directory on our server
storm.cis.fordham.edu
.
A web page in the language HTML is made of elements. Each element usually begins and ends with a tag, so the tags usually come in pairs. A tag is easy to recognize because it is enclosed in angle brackets, i.e., a less than sign and a greater than sign. The two tags of a pair have the same name, and the second tag also has a diagonal slash. Between the two tags is the text that the element contains.
For example, each paragraph counts as an element. Each paragraph begins with a P tag and ends with a slash P tag. Between the two tags is the text of the paragraph.
A bigger element can contain smaller elements inside of it. For example, in this page see the CODE elements in the first paragraph, and the I elements in the second paragraph.
The web page begins with a doctype line. The rest of the web page is one big element called the HTML element. The HTML elements contains two smaller elements, the HEAD element and the BODY element. The BODY element should begin with an H1 element, specifying the heading for the page. The HEAD element should begin with a TITLE element, specifying the text in the page's tab in the web browser.
A very small element that contains no text
is written with only one tag,
ending with a diagonal slash.
For example, the BR element causes a line break,
and the HR element draws a horizontal line.