DEFINING STYLE WITHIN HTML TAGS
Style within an HTML tag is assigned using the style tag followed by an attribute.
In the above the style tag is written within the HTML tag. The style sheet tag used three properties color font-style-weight and font-family. Their respective values are blue color code, italic, bold and the Helvetica font. Notice there is a colon in between color and blue color code and a semicolon after each property. Isn’t it simple all you have to do is refer to a list of style sheet property and their values and use them according to you Denver web page design.
Defining style in the head section
Defining styles within an html tag is simple but can be quite tedious, especially when you intend using it on multiple html tags .A simpler way out be to declare the style within the head section of the page. By doing so all you intend to format.A style declaration in the head section must begin with the tag and end with the tag.
Style sheet as you know by now are groups of styles that define how an html element may appear in a web browser.
Cascading style sheet viewed within the Microsoft internet explorer.
The link tag attributes ask the browser to refer to the external style sheet for all formatting and other styling elements. You can use any name for the style sheet file, just be sure you have the .css extension at the end. In this, it assumes that your style sheet a name to be referred with.
Your file basics defines your formatting style. Therefore any formatting change in this file will be subsequently reflected in the html layout. Suppose you want to display all the tags in your html document in red color, italics and in comic sans ms, arial or Helvetica as the font preferences. The structure of your basics would be as follows and the resulting screen.
Source: Free Articles








