Udjuni.com

udjuni.com search:




Introduction to CSS


Cascade Style Sheet (CSS) is a web page presentation language used together with HTML. While HTML is focused on what to display or markup, CSS is mainly used to specify the layout or how such HTML page items are displayed. This could still be done with HTML, but the amount of coding involved would be enormous. CSS can be used to design tables, create web templates and so forth.

Imagine coding an HTML page with several tables, each of the table attributes and content will have different display requirements. This means using a lot of tag attributes in your code and some of it may even get repetitive. While this has no impact on the human eye reading the page, search engine bots trying to index your content will be bogged by too much code before they even get to your page content. Plus, less code will enable your pages to load faster.

Just to give you an idea of how things work, if we were to create HTML bold text for each of our pages, with the following properties:
color: brown
size : 12
font: Arial
font style : italic
bacground : yellow

we would then have to use the following tag on every page:
<b bgcolor='yellow'><i><font size="12" color="brown">Bold Text</font></i></b> 

to produce text like this:
Bold Text 

This means every time you want to create bold text like this you will have to repeat the code above. With CSS, you could define these properties in one location and each of your pages can link to that page and use these properties as follows:

first create your CSS code file as follows:
b {
color: brown;
text-size: 12pt;
font-family: "Arial";
font-style: italic;
background: yellow;
}


save you file as stylesheet.css
in the section of each of your HTML files include this:
<link href="style.css" rel="stylesheet" type="text/css">

Then all you have to do in your HTML body is simply use the bold tag and it should pick up the properties specified in the CSS file.




RELATED ARTICLES:


Introduction to HTML
HTML is a computer language used to create websites. The fact that you are looking at this page, means you are also looking at the outcome of html code. It is relatively easy to learn, with the majority of what you really need to know being readily available and for free on the internet.

Introduction to Accounting


Introduction to Operations Management
Operations management encompasses the process of how businesses produce goods and/or services. This involves responsibilities, activities and decisions of those tasked with managing production processes. Almost everything we use, eat or wear is made somewhere, possibly a manufacturing plant or simil

Introduction to Programming
What exactly is programming? Programming can be defined as the art of telling a computer to do whatever you want it to. If you are reading this posting you probably started off with switching the computer on and then opened the browser that got you to this page. Every comp

Introduction to SQL
The term SQL stands for structure query language. It consists of a set of command that humans use to instruct a computer to store, modify and retrieve information. This posting and a few more to come will discuss the commands used to create/allocate storage space, how data is stored,

Introduction to Geometry
By definition geometry is considered to be the study of space, shapes and their configurations. Almost every one of us use geometry on a daily basis ranging from computer scientist, to engineers to less sophisticated and ordina

Introduction to Accounting
Accounting can be defined as "a means of communication among all segments of the business". It provides reliable or at least relevant financial information useful for making business decisions. Main users of accounting information are external users such as investors and owners, cre

breaking code periodic table


Introduction to Java programming
Computer program as we learned in the posting Introduction to Programming

Introduction to Oracle PL/SQL
PL/SQL stands for Procedural Language/ SQL, and is a pretty sophisticated language used to access Oracle databases. It is integrated within the server environment to ensure smooth and fast execution of PL/SQL code or queries. The bigger part of this language is the SQL componen

Did not find it? Try udjuni.com search:







© 2009 UdjunI LLC. All rights reserved | Privacy policy | Tutorial Index | RSS Feed