In
order to decorate or design the plain web text with the addition of colors,
fonts, hyperlinks, and graphic, web pages are mostly applying standard way in
which they are made from hypertext markup language or HTML. Once a website
becomes bigger, HTML might not be able to do such thing easily. In this case,
those websites can use CSS
in order to decorate the website easily again. Some of you probably do not
really understand well about what is being discussed. So, let’s know it further
from the explanation below.
What is CSS?
It
stands for Cascading Style Sheet
which could be said as kind of dress code for computer. It is used to
describe the look or appearance of a web page as it should be. It is even
better that it can be separated easily from HTML. So, it will be easier to be
found and to be modified. It is also able to change rapidly regarding the
entire appearance of websites.
As
a dress code of computer, you are allowed to change it as well. This cascading
sheet also allows you to alter the entire websites rapidly as you like to. The
neat thing of this computer dress code is regarding the cascade. You can define
each style to be added as overall theme to make your website shows recent
style.
When
it comes to the style, this dress code for computer consists of three types.
The first style is external sheet as separate files which are full of
instructions. Any website that includes this type of style will have the feel
and look that can be controlled by the file. Second type of style is internal.
It is placed on top part of each document in web page before listing the
content. This style could be included as the second best one after the external
since it is easy to be found. The last style is inline which is placed in the
place where it is needed. You are allowed to place it next to graphic or text you
are going to decorate.
There
are also CSS selectors in
this computer dress code. The selector itself will declare which markup part
that styles apply by matching the attribute and tag in that markup itself. The
application of selectors may be done to all specific type elements, specific
elements based on attribute, and elements in document tree. Selector could also
be combined through various ways for great flexibility and specificity. small example in the manufacture css :
body {
margin: 0;
padding: 0;
position: relative;
width: auto;
}
body
Referring
to the explanation above, you may also need the information on how to write CSS. In this case,
there are some guidelines of writing rules to apply. You need to know the rules
of style system including ID rules, class rules, tag rules, and universal
rules. How the system of style will match the rules could be necessary as well
in the guideline. Sheet style of cascading will be able to give you benefit in
term of the appearance or look of web page you have as mentioned before. It has
different aspects to decorate web page which are related to the layout,
background, lists, and much more.
0 komentar:
Posting Komentar