Upsorn Praphamontripong, Fall 2014
(based in part on class materials by Jeff Offutt)
This is a short introduction to writing HTML.
Please feel free to compare page source with the screen.
What is HTML?
It is a special kind of text document
that is used by Web browsers to present text and graphics.
HTML documents are often referred to as "Web pages".
HTML tag = container (thus requires an opening tag and a closing tag)
Example:<p> content </p>
where <p> is an opening tag defining a paragraph and
</p> is a closing tag.
HTML element = container and content
This page will introduce you to :
basic structure of html
some basic html tags
Some examples are presented below.
If you are looking for more detail or something else,
check out the book.
Basic structure of html
<title>Example: Basic html</title>
<!-- this is a comment: browser does not render the head element -->
<!-- this is a comment: browser renders the content of the body element -->