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

    Additions in Properties include border-radius, image-source, image-slice, and the values for width outset and stretch have been added in CSS3. It also features properties for managing boxes like shadowing, wrapping and breaking have been added. The best part of CSS3 is that it has done away with complex structures for div tag and makes it easy for hassle free designing of multiple table-less columns. This can be simply done by putting in the number of columns in the browser that need to be added in the body element along with their width, color and height to make the text flow through the columns with ease.…

    • 272 Words
    • 1 Page
    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
  • Good Essays

    Nt1310 Final Exam

    • 746 Words
    • 3 Pages

    If you have several Web pages and need a consistent style that can be easily updated, __________ is a good choice.…

    • 746 Words
    • 3 Pages
    Good Essays
  • Good Essays

    HTML is currently in its fifth revision or HTML53. With HTML5 a standard is set for how to display the web page; where pictures are displayed, fonts used for text and total layout of the page. XML (extensible markup language) is used for web documents. CCS (cascading style sheet) is written into the HTML document or attached as a file to define the appearance of the displayed page.…

    • 897 Words
    • 4 Pages
    Good 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
  • 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
  • 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
  • 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

    The famed Medici family of Florence produced 4 Popes, 3 queen regents of France, and engaged in countless acts of assassination and subterfuge. This was representative of the Italian society where Baldassare Castiglione wrote his masterwork, The Book of the Courtier. Italian politics and culture was shaped by the fact that Italy consisted of many autonomous city states that each had their own royal courts, standing armies, cultures, and rulers. This divisiveness in politics helped to foster an extremely stratified society in regards to class and gender. This social stratification causes Castiglione’s definition of the perfect courtier to differ immensely from his definition of the perfect Court woman, and it causes the characteristics of his…

    • 753 Words
    • 4 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
  • 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
  • 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
  • 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
  • Good Essays

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

    • 425 Words
    • 2 Pages
    Good Essays