Preview

Css: Introduction to Cascading Style Sheets

Powerful Essays
Open Document
Open Document
6537 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Css: Introduction to Cascading Style Sheets
:Introduction to Cascading Style Sheets
 CSS (Cascading Style Sheets) offer a way of keeping content and design elements separate.  This separation allows us to include more meaningful content on each page

12/2/2010

University of the Punjab

1

Introduction to Cascading Style Sheets
 Briefly, the main advantages for any business that embraces CSS:  Ease of Maintenance  More Search Engine Visibility  Accessibility  Uniformity

12/2/2010

University of the Punjab

2

What is CSS?
CSS stands for Cascading Style Sheets Styles define how to display HTML elements Styles are normally stored in Style Sheets External Style Sheets can save you a lot of work  External Style Sheets are stored in CSS files    

12/2/2010

University of the Punjab

3

Why We Use CSS?
Some of the reasons I feel that learning CSS for layout is important are:  It's the standard  Style Sheets Can Save a Lot of Work  layouts load more quickly than table layouts.  layouts are more accessible.  is more flexible  provides better SEO.
12/2/2010 University of the Punjab 4

Cascading Order
1. Browser default 2. External style sheet 3. Internal style sheet (inside the tag) 4. Inline style (inside an HTML element) Note: where number four has the highest priority: inside an HTML element has the highest priority, which means that it will override a style declared inside the tag, in an external style sheet, or in a browser (a default value).
12/2/2010 University of the Punjab 5

Syntax selector { property: value }
 The CSS syntax is made up of three parts: a selector, a property and a value:  The selector is normally the HTML element/tag you wish to define, the property is the attribute you wish to change, and each property can take a value. The property and value are separated by a colon, and surrounded by curly braces: Example: body {color: black}
12/2/2010 University of the Punjab 6

Syntax selector { property: value }
 Note: If the value

You May Also Find These Documents Helpful

  • Satisfactory Essays

    Other major changes include CSS Selectors which CSS2 had simple selectors and the new version calls the components as a sequence of simple selectors. Pseudo elements because many Pseudo elements have been added that allow in-depth yet easy styling. Also a new convention of double colons ‘::’ has been introduced. Style properties let multiple background images be layered in the box using different elements like background image position and repeat. Border style is the styling of borders that extended to images and rounded designs which includes creating image of the borders and then automatically apply image to the borders through CSS.…

    • 272 Words
    • 1 Page
    Satisfactory Essays
  • Satisfactory Essays

    9. This attribute of the <li> XHTML element configures the appearance of the unordered or ordered list: type…

    • 335 Words
    • 1 Page
    Satisfactory Essays
  • Satisfactory Essays

    Using the links below and Internet research, list the usage for each of the HTML tags in the table below.…

    • 242 Words
    • 1 Page
    Satisfactory Essays
  • Good Essays

    <p> This paragraph would be in blue font. The background color for this page would be gray because we changed it with the CSS style sheet! </p>…

    • 520 Words
    • 3 Pages
    Good Essays
  • Powerful Essays

    Ap Calculus

    • 2722 Words
    • 11 Pages

    | A defined set of formatting characteristics, such as font, font size, font color, cell borders,…

    • 2722 Words
    • 11 Pages
    Powerful Essays
  • Good Essays

    14fa MIDTERM

    • 882 Words
    • 5 Pages

    5 On a link statement to an external CSS file, which keyword is used after the media attribute to indicate that the CSS file should be used when the web page will be viewed on a computer screen or monitor?…

    • 882 Words
    • 5 Pages
    Good Essays
  • Good Essays

    In the first few chapters of the book, Johnson stresses the importance of structuring a website with user goals in mind and creating a layout that is both predictable and easy to navigate. These are the principles that information architecture is based on and is something that sassyfox.com heavily violates. Examples of this include the website’s category-based navigation and accessibility of important information.…

    • 659 Words
    • 3 Pages
    Good Essays
  • Good Essays

    WFV1 Notes

    • 4474 Words
    • 16 Pages

    Jpeg/png/gif Site Development Associate v2.0, Lesson 3: Cascading Style Sheets (CSS) and Graphical Elements, section "Images in Web Pages.”…

    • 4474 Words
    • 16 Pages
    Good Essays
  • Satisfactory Essays

    The purpose and importance of a style guide is to create a standard and unify a form to help people who write a variety of things. It is time saving in a manner that you already know how it has to be formatted so you know what needs to be put in it. It also is a plus when things are formatted due to it being consistent throughout all papers. It shows professionalism because it is neat and well formed. When format is not used, there is chance on the paper looking unfinished and cluttered. If you have inadequate spacing and indentations are offset then your paper will suffer. When…

    • 391 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    It is a tool that you can use to eliminate repetitive types of information on your web pages. It is a file the server includes in a web page before sending it out to a browser. It uses headers, navigation panels, and footers. It’s useful because you only need to change one file and every web page using that element picks up the update.…

    • 411 Words
    • 2 Pages
    Good Essays
  • Good Essays

    Web standards include recommendations for HTML, XHTML, Cascading style sheets, Dom, and the standardized version of…

    • 425 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    Documentation

    • 291 Words
    • 2 Pages

    html code: Holidays at Sunny Acres h2, h3 {color: white; background-color: rgb(0, 154, 0)} Home The Corn Maze The Haunted Maze Petting Barn Produce Holidays on the Farm Holidays on the Farm Saint Nick visits Sunny Acres in December This year Sunny Acres becomes Wintery Acres as we institute our first Holidays on the Farm. Join us on weekends from November 23 through January 5 for holiday cheer and festivities.…

    • 291 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Color plays an extremely crucial role in your website’s usability. That is why you need to make a lot of contemplation before web choosing colors. A prime reason why this is necessary is due to the fact that color psychology plays a vital function in user experience. For instance, if your background and foreground colors are not aesthetically pleasing, the visitors will get agitated and leave the site. Also, relevance of colors with the business orientation is also necessary. For instance, a corporate website may not look suitable with flashy and juvenile color scheme. (Blog.insightsoft.ae -2013)…

    • 775 Words
    • 4 Pages
    Satisfactory Essays
  • Satisfactory Essays

    What are the advantages of external cascading style sheets (CSS) compared to internal CSS and the embedded ? Explain situations in which each is the appropriate type. Given these situations, which type do you think would be more useful for the majority of web pages?…

    • 426 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    Web sites are swiftly becoming, and in some cases are already, the preferred media choice for information search, company presentation, shopping, education, gaming, socialising, and much more. In this day and age, where visual symbols play an increasingly important role in our day to day lives, the design, content, and function of web pages, play a pivotal part in influencing the meaning and value of information. The meaning and value of information can be worked out by a few simple questions; who is the author of this information? Who is the supplier? Why is it provided/what is its purpose? Who are the intended audience? What is the source? And finally, how current and accurate is it? The last two questions are probably the most relevant when it comes to the value, as if it were a secondary, out-dated, and inaccurate source, it would not be very valuable. The terms design, function, and content must be looked at and defined to answer this question. Design of a web page mainly refers to how the page looks to the user and the layout of it as well. Whereas function is all about how the website works, whether it is easy or not for the user to navigate around the site or whether or not links and images work on the site. Finally, content is the text, images and other elements that make up the core of the web page. In this essay we will be looking at issues ranging from the opportunities the web provides us with to present information, to the challenges that are created when information is displayed online. In addition to this, we will also be looking at issues such as how we are able to establish the quality of our information as well as how the presentation and design of web pages influence the value of our information in particular.…

    • 1924 Words
    • 8 Pages
    Powerful Essays