Showing posts with label HTML. Show all posts
Showing posts with label HTML. Show all posts

Tuesday, March 11

Different Methods to define colors in HTML using CSS

html-css-tutorial
To add colors in a HTML web page we use CSS . A CSS color can be either a keyword or a numerical specification(according to W3C).In CSS we can define colors in five different way:

Monday, March 10

Why doesn't TABLE WIDTH="100%" use the full browser width?

html-table-tutorialThis is a common problem we face when we try to adjust width of table in HTML.Graphical browsers leave a narrow margin between the edge of the display area and the content.So when we set the table width=100% the browser will leave a margin for the table.To solve this problem we need to use some CSS tricks.



Sunday, March 9

How to create a mail link


Having a link that allows visitors to send email from your website can be a great addition to your site, making it easy for your visitors to send questions or comments.To create a link on your website that opens an email window, you simply use a mailto link.

How to add Javascript in HTML

Here i will show you how to use JavaScript on HTML page.JavaScript code can be inserted either in the head of the document (between the <head> and </head> tags) or in the body (between the <body> and </body> tags). However, it is a good idea to always place JavaScript code in the head if you can.

Logical and Physical tag in HTML



A tag that is applied to an individual character is known as a character tag. A character tag can be grouped into two categories: physical and logical. (Note: physical styles are associated with physical character tags; logical styles are associated with logical character tags.)

As you work with these tags to style your text in different ways, you will discover that there is not really big difference how the text is displayed on a browser. For instance, you can italicize your text using the <i> tag (a physical character tag) or <em> tag (a logical character tag). Why does that make any difference? It depends on whether you are using italics for the sake of using italics or whether you are using italics to convey some special meaning. While a physical character tag controls how to format the text, a logical character tag describes how the text is being used, without regard to how it should be formatted. Thus a logical style would be used to convey some meaning while a physical style would not.