(X)HTML ((eXtensible) HyperText Markup Language)
Posted on May 1st, 2008
XHTML is a hybrid of HTML (Hypertext Markup Language) and XML (eXtensible Markup Language). But all you need to know is XHTML is a slightly cleaner more powerful version of regular HTML, so when you hear references to XHTML or HTML it’s basically referring to the same thing: the code used to write web pages.
This web page is written in XHTML. To understand how this works, imagine you have an article, with a headline, several paragraphs of text, an image and a link to another web page.
In order to make this content display as a web page you need to surround each of the different parts with the correct HTML ‘tags’.
So the headline would go between heading tags, for example like this:
<h1>This is the article headline</h1>
Now, because you’ve put those h1 tags around the headline, browsers like Internet Explorer and Firefox will interpret the content between the tags as a heading and thus display it larger than paragraph text and on it’s own line.
The same applies with paragraphs, images and so forth. Without surrounding the content with the various tags, the content will just display like this:
Headlineparagraphlinktext
This is a very simple explanation of HTML. There is a lot more you can do with it. But hopefully this gives you the idea.
How do you make this HTML look good?
You might think that by adding lots of tags and images you can make your web pages look nice just using HTML. That is possible to some extent, but really, in order to make a web page look nice you need to style it with CSS.
Browsers have a number of default ways of displaying HTML. But they’re really ugly. So if you want to make a web page look nice you’re going to have to use CSS.
May 8th, 2008 at 8:26 am
[...] standards are best practices for HTML based web design. Generally a website that is ‘web standards compliant’ will be coded [...]