skip to main |
skip to sidebar
ASCII = American Standard Code for Information Interchange
- standard used for encoding text
HTML HyperText Markup Language
XHTML eXtensible HyperText Markup Language
- somewhat stricter form of HTML
- written in XML
- one set of rules + syntax
* tags always enclosed in angle brackets: < >
* closing tags required for non empty elements: <p>, </p>
Indenting codes such as this example:
<html>
<head>
<title>My First Web Page< title >
</head>
<body>
Hello World!
</body>
</html>
... will allow for the eye to find what you need. Databases can read your code when it's precise. Viewing page sources on different websites allow people to view a website's codes.
<center>
this tag is an old tag. It's still used in browsers.
All tags above are container tags.
An empty element needs to look different. In the past, a line break like <br> would be used. You declare it as an empty element by putting <br/>. This means it's not marking something up.
Web Conventions
index.html
Windows (hyphens used for SEO purposes)
Mac (most flexible, can use upper and lower case, and can have spaces)
Unix: Linux (case sensitive (don't mix up with capital letters), can have up to 255 letters in character name, no spaces allowed)
some for Windows are index.htm (it's just different but it's also a different page!)
- notes - bits - codes -
Pages
Wednesday, February 1, 2012
HTML and XHTML Notes Day 1
ASCII = American Standard Code for Information Interchange
- standard used for encoding text
HTML HyperText Markup Language
XHTML eXtensible HyperText Markup Language
- somewhat stricter form of HTML
- written in XML
- one set of rules + syntax
* tags always enclosed in angle brackets: < >
* closing tags required for non empty elements: <p>, </p>
Indenting codes such as this example:
<html>
<head>
<title>My First Web Page< title >
</head>
<body>
Hello World!
</body>
</html>
... will allow for the eye to find what you need. Databases can read your code when it's precise. Viewing page sources on different websites allow people to view a website's codes.
<center>
this tag is an old tag. It's still used in browsers.
All tags above are container tags.
An empty element needs to look different. In the past, a line break like <br> would be used. You declare it as an empty element by putting <br/>. This means it's not marking something up.
Web Conventions
index.html
Windows (hyphens used for SEO purposes)
Mac (most flexible, can use upper and lower case, and can have spaces)
Unix: Linux (case sensitive (don't mix up with capital letters), can have up to 255 letters in character name, no spaces allowed)
some for Windows are index.htm (it's just different but it's also a different page!)

0 comments:
Post a Comment