Adding CSS to HTML Documents

Two ways to apply CSS to a web page. Internal CSS You can add CSS to your HTML documents by simply placing it within the document header. For example, you can specify background color for your HTML document like this: < html> < head> … < style type="text/css"> body { background-color: red;} < /style> < [...]

What is CSS?

Cascading Stylesheets (CSS) is a web design and development technique which has quickly become the de-facto standard for creating web pages. The main purpose of using HTML and CSS is to separate presentation from content: HTML is used for the text and images, while CSS is used to determine their position and look on the [...]

HTML Coding Rules : Rule 7

Deprecated Tags and Attributes Here’s the List of Deprecated Tags and Attributes, for info and to check because you may want to avoid them. applet basefont center dir font (use CSS) isindex menu s and strike u You should also know the deprecated attributes too. align alink background bgcolor clear code compact color border hspace [...]

HTML Coding Rules : Rule 6

Map tag < img src="hotdog.gif" alt="hotdog" usemap="#planetmap" /> < map name="planetmap"> < area shape="rect" coords="0,0,118,28" href="a.html" alt="A" /> < /map> If you never used map tags, then consider yourself lucky. Newer technique such as image slicing or Macromedia Flash has allowed us the flexibility of performing everything this tag has to offer. It was useful [...]

HTML Coding Rules : Rule 5

Frames < frameset cols="20%, 80%"> < frame src="a.html" /> < frame src="b.html" /> < /frameset> Yep, that’s right. I said it. If you’re implementing frames for a client, you should be shot. Frame and frameset are ugggg-ly. Maybe it’s due to their old age. If you’re using frames to avoid multiple instances of the same [...]

HTML Coding Rules : Rule 3

GOOGLE FRIENDLINESS < title> EasyWebTutorials.net < title/> < meta name="Description" content="foo" /> < meta name="Keyword" content="bar" /> On this planet, google is king. Have you seen their stock prices lately?! If you plan on publishing your webpage on the Internet, then you must not omit the title and meta tags. Google has a spider that [...]

HTML Coding Rules : Rule 2

TAGS < html>< head>< body>… All tags should be lowercase. Call it the lazy man rule of coding, but I love this rule. It’s one of a handful of rules for being XHTML 1.0 compliant. Now you’re thinking, what the heck?! HTML (w3) standards was a mess, now there’s XHTML?? Yes, a bunch of whacked [...]

HTML Coding Rules : Rule 1

DOCTYPE < !DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Strict//EN" "http://www.w3.org/TR/html4/strict.dtd"> The DOCTYPE is used to determine how the browser will render your code. There is one standard for HTML, but not one browser. Having the DOCTYPE in the beginning of all your HTML pages helps keep the browser defined in a specific set of standards. [...]

HTML Useful Tips

When you write HTML text, you can never be sure how the text is displayed in another browser. Some people have large computer displays, some have small. The text will be reformatted every time the user resizes his window. Never try to format the text in your editor by adding empty lines and spaces to [...]

Getting Codes from Other Sites

At times when you want to save on time, there are a lot of codes for audio, images, and videos available on the web which you can use. Some can even be embedded and all you have to do is to copy and paste them. Such is existent even in social networking sites such as [...]