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

Sunday, July 15, 2012

HTML elements

This is lesson 4 of HTML. The elements of HTML are
(the code to test all of these elements is given at the bottom)
<a> … </a>
The a (anchor) element is used to set link.
Attributes: href, name
Example: <a href="www.websitebuildingguide.blogspot.com">build website</a>

<b> … </b>
This is used to bold a text.

Attributes: none
Example: <b>this is bold text</b>

HTML basics

 A HTML document has elements. Elements have attributes. Attributes have values. For example,The elements of basic HTML document is

<html>
<head>
<title> … </title>

</head>
<body>

</body>
</html>

HTML: where to write and test on desktop

This is lesson 1 of HTML. If you are making website or trying code of HTML, you have can do any of the following:  

1) Write on Notepad
Go to Start > programs > accessories > notepad. write you HTML code and save it with HTML extension. It means if you are saving file with the name of "new", you have to save it by the name of "new.html". Then save it. And run it in a browser.

2) Use a software
You can use Macromedia Dreamweaver or Microsoft Frontpage, and test your code there. These are commercial software.

Saturday, July 14, 2012

Test HTML of a website maintains w3 standard or not

It is necessary to test whether HTML of your website maintains standard of W3 or not. To test that you can try any or more than one ways described below. First one is validator of W3. This validator tells your errors of your websites. This validator can be found on http://validator.w3.org/.
You just enter domain of your website on the address bar and click check. Then this validator shall tell you errors of your website and also suggestion.

Favicon HTML

Favicon (pronounced fav-eye-con) is the short name for “favorites icon” and is otherwise called as a shortcut icon. It is a square icon that is shown next to the URL of any webpage in a browser that supports tabs like Firefox, Google Chrome, Opera and Internet Explorer. It works as an identity of the website and company. It must be 16×16 (most common) or 32×32 pixel using 8 bit or 24 bit color.

If you are using Blogger blog, you might have already noticed that Blogger shows default favicon next to the URL of your blog as shown here:

HTML to redirect website/ blog

Redirect htmlRedirection is process where url of a website/ blog is redirected to another website/ blog. sometimes, website owners and blogger change their domain. To keep visitors of past domain, website owners and bloggers have to redirect their past domain to new one.
For example, if you have a blog of which domain is www.pastdomain.co and you redirect that blog to www.presentdomain.com. Then when visitors shall attempt to visit www.pastdomain.com, they will automatically be redirected to www.presentdomain.com. And they shall see your present website.