Class 2 Fri 8/24 Comp 416
Basic HTML - hn, p, ul, ol, li, a, br, pre, em, strong
Text files
HTML structure - html, head, body
Tags
Start tag paired with end tag
Must be properly nested
HTML code validation web service
validator.w3.org
Attributes
A text file is composed of characters, digits, symbols, etc.
Anything that can be found on your keyboard. The .txt suffix
is sometime used to specify that the file type is text. However,
it is not necessary. All web pages (file types .html or .htm)
are text files.
There are many other file types
.jpg - image
.mp3 - audio
.zip - compressed archive
.class - compiled Java code (bytecode)
The first line of every HTML document must specify the HTML
version being used. All of our pages will start with
where 'html' specifies HTML5. Older version of HTML will have
a differe DOCTYPE statement.
The rest of the page is contained within a pair of html tags.
Every tag has 3 parts: start tag, content, end tag.
In the following, '....' indicates a comment about the web
page that is not actually in the web page itself.
.... start tag
..... web page goes here
..... this is the *content* of the html tag
.... end tag. The backslash is standard syntax for
all end tags