Anyway, today we're going to talk about the font tag. It can only be used in HTML, not XHTML. CSS is better for this sort of thing, but i prefer the font tag. The font tag has three parts, face, color, and size. Each of these comes after the tag and can be separated by commas, but i don't like the commas.
Well, I wrote the story about tutor.com below, by the way, it's on my website as well. It seems the Internet isn't down today, which is...well...take it how you want to take it. Continuing with our HTML theme, the tag is only available in non-XHTML, HTML webpages, meaning only in HTML, in case you didn't figure that out. Yes, well, call me someone with bad jokes, but I bet you think something as simple as shouting "rabies" during class is funny, you shallow, crass individual. Anyway, the tag is what I must use for every web page, until I start using more CSS, though I did a great deal of editing with it to my homepage already, which Alec initially provided (personally, I might add, it's not the same template he posted online, it's just similar).
The p tag can best be used only for non-pictured texts, just plain text. The align = left, right, center, or justify can be used as well, but justify and center are the only ones you should use. If people with high rezzes are viewing your page, text aligned to the left or the right can look very strange. justify evens out the text across the screen, making it the best option, or for small titles center can be used, which obviously centers the text at the middle of the screen.
If you have have pictures and text, the p tag cannot be used very well, and it will look bad for people with high rezzes, so tables can be used. Tables can be made in MS Word and then saved into HMTL, or you can look it up. My HTML code will just disappear again, thank you. This is Josh, signing off.
Sunday, November 11, 2007
The font tag, the p tag, and tables
Posted by
Josh
at
Sunday, November 11, 2007
1 comments
Tuesday, November 6, 2007
The abbr tag
The abbr tag is somewhat useful. Look for your self. Example:
CSS
The title attribute is the thing that make the hover over effect.
'nuf said.
Posted by
Alec
at
Tuesday, November 06, 2007
2
comments
Monday, November 5, 2007
The a Tag
The a tag is one of the most used tags in all of XHTML and HTML for that matter. The a means anchor and it links between XHTML pages or other files like PDFS or downloads like executables. When people click on them it sends them to the linked file. The browser knows to interpret files like .html .xhtml .xml .htm .php. aspx .asp and on until the cows come home. However, when the browser encounters a file that it doesn't know what to do with it gives you a popup box like this:
But what do you write to get the a tag to go where you want? The href attribute tells it where to go. Example:
<a href="http://cnn.com">Click Me</a>
The href part is the attribute and http://cnn.com is the value of the attribute.
The official name is a hyperlink but it is more commonly known as a link. I personally find this particular tag quite useful.
Posted by
Alec
at
Monday, November 05, 2007
0
comments
Sunday, November 4, 2007
XHTML
Here are all the XHTML Strict tags in alphabetical order. Once per day I will write about one of these tags starting with the a tag and working my way down to the var tag. I will describe each tag, tell what it does, give my two cents on it and show some examples. But first you might ask, "What is XHTML and how is it different than HTML. Is it better? Why or why not?" I will answer those questions right now. XHTML stands for Extensible HyperText Markup Language. From Wikipedia:
Whereas HTML is an application of Standard Generalized Markup Language (SGML), a very flexible markup language, XHTML is an application of XML, a more restrictive subset of SGML. Because they need to be well-formed, true XHTML documents allow for automated processing to be performed using standard XML tools—unlike HTML, which requires a relatively complex, lenient, and generally custom parser. XHTML can be thought of as the intersection of HTML and XML in many respects, since it is a reformulation of HTML in XML. XHTML 1.0 became a World Wide Web Consortium (W3C) Recommendation on January 26, 2000. XHTML 1.1 became a W3C recommendation on May 31, 2001.Here are the basic of XHTML
- Declare a DOCTYPE
- Declare an XML namespace
- Declare your content type
- Close every tag, enclosing or non-enclosing
- All tags must be nested correctly
- Inline tags can't contain block level tags
- Write tags in lowercase
- Attributes must have values and must be quoted
- Use encoded equivalents for left brace and ampersand
- a
- abbr
- acronym
- address
- area
- b
- base
- bdo
- big
- blockquote
- body
- br
- button
- caption
- cite
- code
- col
- colgroup
- dd
- del
- dfn
- div
- dl
- DOCTYPE
- dt
- em
- fieldset
- form
- h1, h2, h3, h4, h5, and h6
- head
- html
- hr
- i
- img
- input
- ins
- kbd
- label
- legend
- li
- link
- map
- meta
- noscript
- object
- ol
- optgroup
- option
- p
- param
- pre
- q
- samp
- script
- select
- small
- span
- strong
- style
- sub
- sup
- table
- tbody
- td
- textarea
- tfoot
- th
- thead
- title
- tr
- tt
- ul
- var
Posted by
Alec
at
Sunday, November 04, 2007
0
comments