Tag: HTML

Using HTML Tag Attributes

HTML tags provide the foundation for web page design. To provide more flexibility with HTML design, attributes have been defined for HTML tags to alter the behavior of any particular HTML tag. There are many instances while designing a web page when you will want to change the default behavior of the tag. For instance, you might want to change the background color of the whole page or some section of the page. You might want to change the alignment of a section of text or apply a unique style to a tag’s representation. There are many instances when you would want to identify an HTML tag by giving it a name to identify it so that it can be referred to elsewhere. Some tags, such as the one used to present an image (

) don’t do much of anything without having at least one attribute defined. In the case of the image tag, you would need to have an attribute that tells the browser where the find the image to be displayed.

Some Examples of HTML Attributes

Using bgcolor and background with the body tag
A very visible example of the effect of an attribute used in an HTML tag is changing the background color or image for the entire body of a web page. Browsers understand that the contents of the tag will be displayed on the main part of the web page. By default, the background used by browsers when they encounter the tag is white. If you want a background color other than white, you would use the bgcolor attribute. The following tag changes the background color of a web page from the default white to gray:
If you want to have an image comprise the background for a web page, you could use the following code:

This example assumes that you have a folder on your web server called images, and that inside that folder there is an image named background.gif. In the case of a background image, if the image isn’t large enough to fill the entire background of your web page, the browser will repeat the image vertically and horizontally to fill the background.

Linking using the anchor tag
The world wide web’s fundamental usefulness hinges on its ability to link documents, providing web users with a quick connection from one page to another related page. Linking documents in HTML is done using the anchor () tag. The anchor tag by itself doesn’t tell the browser where to link. Instead, you have to include the href attribute as in the following example:

Visit our sponsor
This piece of HTML code tells the browser that the text “Visit our sponsor” is the anchor text for a link. When the user clicks on the anchor text, he is taken to the url oursponsorswebsite.com.
Displaying a picture using the image tag
HTML pages would be pretty boring without the use of images. The need to tell the browser where to find an image is a good example of how to use HTML attributes. Images are included using . Similar to the anchor tag example above, using the tag alone wouldn’t suffice. The image tag attribute “src” is required to tell the browser where to find the image to be displayed, as in the following example:

This block of code tells the browser to place an image in the document. The browser is instructed to get the logo.gif image from the images folder located in the top level folder for the document. You also notice a width attribute defined in the tag. This constrains the image to be 150 pixels wide. Conveniently, the height of the image is constrained proportionally when the width attribute is defined.

HTML Attributes Reference
Don’t feel like you have to memorize all the HTML tags and their corresponding attributes. Instead, it is convenient to access a reference when trying to determine which attributes can be used with particular HTML tags. The official definition for HTML tags and attributes can be found at www.w3.org You can also find other resources for understanding the same information by using a search engine to search for “html tags” or “html attributes”

Beyond HTML Attributes
In the mid-1990′s, a methodology called Cascading Style Sheets (CSS) was developed for use in web pages to make them more streamlined. CSS is a standard for defining the layout and formatting for a web page. Many of the attributes that were commonly used with HTML tags before CSS came around are now handles by CSS definitions. For designers unfamiliar with CSS or who, for whatever reason, don’t choose to use CSS, HTML attributes that overlap with CSS definitions can still be used to change the behavior of HTML tags. However, to be considered vogue in the world of web design, it is recommended that you learn and use CSS.

Richard Robbins is one of the founders of WebsiteTemplateDatabase.com, a resource for free blogger templates and free website templates

Pro HTML 5 Programming

The biggest revolution since Ajax, Pro HTML 5 Programming: Powerful APIs for Richer Internet Application Development introduces the most revolutionary new feature of HTML 5, the ability to build Real-Time Web applications using Web Sockets.

For the first time, developers can build Rich Internet Applications with Web standards and without Ajax, Comet, Flash, Silverlight, or any of the difficult-to-use non-standard and proprietary standards currently in use. Every professional Web develope

List Price: $ 44.99

Price: [wpramaprice asin="1430227907"]


W3C Validated HTML and Page Loading Speed

W3C is the main international organization for World Wide Web. They have set of standard and rules for HTML pages. When you make HTML pages you have to follow those standards to produce valid HTML. They have published these standard and rules in their website. But when you go to website you will find lot of complex stuffs. You do not want to know everything there just focus on how to validate the HTML. In simple terms validation is a measure that the web page has done according to the defined standard

Once you make your HTML page you can use the W3C validation service to check whether you have validated HTML. If there are errors in your markup it will show the errors and some guide lines to fix it. This is not difficult process, Hints they give with errors are very helpful for you to make the valid HTML pages

We did some experiment with W3C validated pages and same page with more than 100 errors and warring.

We could examine some delay of rendering when you have lot of HTML errors in the HTML, It is not only the loading speed but also it affects the visibility in the different browser in different platforms. One advantage with validate HTML is, you can reduce the number of bytes of the page to some level. Because validated HTML means you are using good coding practice. That will end up with clean and optimized code

Use proper HTML code to mark up your page, proper HTML means you should use correct HTML tags where you need, because same information can be represented with several kinds of HTML tags. This is not something that you cannot learn one day or just reading a book. But there is a significant role that web designer play when he is doing the design in Photoshop, Designer should have idea about how  HTML page layout going to be. He should always select the best layout that can be done with fewer amounts of HTML tags and images. Then only PSD to HTML coder can markup those pages in proper way to improve the loading speed of that page

markupmypage.com is one of the best PSD to HTML conversion company in the world who support hundred of designers to convert their design to validated and optimized HTML

Mark Taylor : Over 15 years experienced client side programming expert and now working for markupmypage.com as independent consultant

Adobe CS5.5 Design Premium Student and Teacher Edition

  • Ultimate software toolkit for eye-catching print, web, interactive, and mobile design
  • Rich code hinting and completion for HTML5 and CSS3 in Dreamweaver CS5.5
  • Multiscreen preview in Dreamweaver; Folio Producer tools in Adobe InDesign
  • Authoring for the latest platforms and devices with Flash Professional
  • Enhanced eBook authoring in InDesign; more efficient delivery of accessible documents

Creative Suite 5.5 Design Premium enables designers to deliver ideas that captivate audiences in print, online and on devices. Design compelling page layouts for immersive digital magazines and visually elegant e-books to reach readers on tablets and e-reading devices and develop world-class websites based on the latest standards (HTML5 and CSS3). Enjoy enhanced features for creating accessible PDF documents and access to CS Live online services for accelerating key project workflows. And if you

List Price: $ 1,899.00

Price: [wpramaprice asin="B004TH7NDW"]


  • Copyright © 1996-2010 Programming tutorials for beginners,. All rights reserved.
    iDream theme by Templates Next | Powered by WordPress