HTML And CSS: P1: Cascading Style Sheet

Decent Essays
HTML and CSS – P1
What CSS this?
CSS stands for Cascading Style Sheets. CSS is a language that describes the layout and formatting of any mock-up language for example HTML, XML and XHTML. The majority of web pages these days use CSS to present their data because CSS really brings the web pages to life.
Why it should be used?
CSS defines how the HTML structure will be presented. Being able to style the HTML elements makes it so that you can present your data in a more readable and understandable manner. It is also great for helping people with disabilities for example, creating a button that increases the font size or changes the text and background colour.
CSS is what controls the design and formatting of the majority of the web pages we
…show more content…
This can be done by using the link tag in the header section of the document. External styling can be overwritten by both internal and in-line styling.

The box model – P2
The box model can be used in all HTML elements and is essentially a box that goes around the HTML element. The style of the box is defined by the element 's attributes. The box module consists of four different parts: margin, border, padding and content. The margin creates a transparent space outside the border. The border creates a border around the padding and content. The padding defines the space between the element and the boarder. The content is actually the contents of the box. This is where the element is displayed. I have written some HTML with an internal style script:

As you can see above, I am styling the P element and three classes.
P: I am styling the p element so that it will have a grey box shadow of 5px; with a pink background.
P.pad: I am styling a P class attribute with a padding property which will give the element a 20px to and bottom and a 50px left and right.
P.bdr: this class is going to give the element with the class a nice blue outset border of 5px.
P.mgn: in this class I am changing the colours of the border and give the element a

Related Documents

  • Improved Essays

    Hagia Triada Sarcophagus

    • 504 Words
    • 3 Pages

    The entire piece is filled with colour, though now most of it has faded. Strong lines separate each part of the patterns and main register. The emphasis on line is apparent, especially when looking at a work comprised of different registers. Horizontal and vertical lines are used to break the sections up clearly as well as add detail. Different lighter line weights adorn the…

    • 504 Words
    • 3 Pages
    Improved Essays
  • Improved Essays

    Nt1310 Unit 3 Assignment

    • 867 Words
    • 4 Pages

    ISP: An Internet Service Provider is a company that provides you with services that provide you with the connection to the internet. The main services the company provides are: Broadband, TV and Phone. Here are some ISP’s: Virgin Media, Sky, BT and Talk Talk. Different companies offer different broadband speeds, Virgin Media provide speeds from 50Mb, 100Mb and 200Mb.…

    • 867 Words
    • 4 Pages
    Improved Essays
  • Improved Essays

    Foundation is a colored makeup that comes in both liquid and powder forms. Foundation is used to visually even out skin discolorations, cover flaws, lessen the look of pores, level out skin texture, disguise blemishes and offer a base for other types of makeup. Being a versatile makeup, foundation can be applied in different colors, and styles. For example, foundation can be applied thinly or densely over the skin depending on the coverage needed or it can be selected based on the users skin type. With so many different types and consistencies of foundation, there are also different application tools that can be used.…

    • 584 Words
    • 3 Pages
    Improved Essays
  • Superior Essays

    Business Unit 9 P5

    • 1484 Words
    • 6 Pages

    The task in which I was given was to create a presentation, using Microsoft PowerPoint 2013, to advertise The Redhill Academy. The information given to us was that the presentation was for an adult audience, and that we could not use any of the pre-set templates in the software. To begin with, I decided to create a design for my presentation. I did this as I wanted my presentation to look consistent and professional.…

    • 1484 Words
    • 6 Pages
    Superior Essays
  • Superior Essays

    The main factor of Orangetheory Fitness’s future growth rests in repairing their effort to establish a community using the brand and social media involvement. The first factor that Orangetheory’s Ann Arbor locations need to consider is the target audience for community growth efforts. It seems that the strategy and scope used to reach the social media target audience does not match the desired target audience for both Ann Arbor locations. However, the lack of diversity is stemming from social media content that is ubiquitous among all Orangetheory Fitness social media, not just the Ann Arbor location’s social media. Thus, it seems that this content is corporate created content, and as a result, it appears the target audience of the national brand of Orangetheory Fitness is not aligned with the Ann Arbor target audience.…

    • 733 Words
    • 3 Pages
    Superior Essays
  • Improved Essays

    Ethos Pathos Logo

    • 467 Words
    • 2 Pages

    Sometimes, the portfolio of a model plays magic for earning him a high-paying modeling contract. It is true, that not all the models are as good looking as they are portrayed in their glamorous avatars, when you see them on the covers of some reputable magazines. Similarly, a well-designed business logo helps to earn the separable identity of different corporate houses. However, it is equally essential to involve the company's logo during the promotion and advertisement. This will help in building brand reorganization in a simple and precise manner.…

    • 467 Words
    • 2 Pages
    Improved Essays
  • Decent Essays

    Unit 28 P1 And P3

    • 1265 Words
    • 6 Pages

    Unit 28 – P1 & M1 In this report I will explain the brief outline of the web architecture and components which allow the internet and website to function. I will construct a flow diagram to show the various different stages and processes that information must pass through to get from server to screen. Web Architecture Web architecture is the term used for web design, this is a method to plan and design websites. Web architecture focuses on the user and user requirements.…

    • 1265 Words
    • 6 Pages
    Decent Essays
  • Decent Essays

    End-Of-Chapter Quiz

    • 680 Words
    • 3 Pages

    Correct answer DCOUNT 15) Formatting characteristics that are applied to cells when the value in the cell meets a specified condition are called: (1 point) Correct answer Conditional formats 16) In Excel, you can insert an image of an open window called a: (1…

    • 680 Words
    • 3 Pages
    Decent Essays
  • Improved Essays

    John Lewis's Typography

    • 254 Words
    • 2 Pages

    Typography chapter beings with the history and the philosophical approached from John Lewis. Typography is compared with architect on how classic forms are developed. Typography has focused on aspects of the overall layout: use simple typefaces, use typefaces appropriate for the amount of reading to be done, use mixed case, control line length, use single spacing, and users prefer sans serif typefaces. In the chapter, she mentioned how the modern typeface is a thick and thin, and crisp serif.…

    • 254 Words
    • 2 Pages
    Improved Essays
  • Improved Essays

    Inspiration Page: American Diabetes Association. Great navigation bars for everything that is important to their organization in the footer are all the links in the navigations bar. Navigation bar drops down into more detailed information. Top Navigation bar goes to other sites that the organization supports Tour de Cure, Step out walk for diabetes.…

    • 312 Words
    • 2 Pages
    Improved Essays
  • Decent Essays

    On page 2, I stated the issue which was the fact that there is an increasing prevalence of type 2 diabetes occurring in children. I also listed facts on how type 2 affects Americans which shows how this cookbook is actually relevant to the community. All of the information used in my cookbook is scientifically accurate. - Pages 3 and 4 talked about the readers' risk for type 2. - Pages 5 and 6 were on the anatomy and physiology of type 2 diabetes.…

    • 530 Words
    • 3 Pages
    Decent Essays
  • Improved Essays

    A large fish stands on two legs, the vibrant colors luring onlookers in, while standing as a massive structure. Alexander Calder’s stabiles have become extremely famous for their simplicity and hidden beauty. Calder’s work inspired a new movement of hanging wire sculptures and gargantuan firmly planted structures, each seemingly abstract, but with a true inspiration. Alexander Calder was born into a family of artists, with his mother, father and grandfather famous artists. When he was growing up, he created jewelry out of wire for his sister.…

    • 1007 Words
    • 5 Pages
    Improved Essays
  • Decent Essays

    This includes tapping into both physical and emotional factors. According to Shoulders, the concept of creating this website came to her during a time where she was jugging many things in her life. She was simultaneously taking care of her sick parent, toddler, and teenager. At the same time, she was working as a consultant for the…

    • 414 Words
    • 2 Pages
    Decent Essays
  • Great Essays

    Hi Everyone, The following students are registered to take the Common Core (Tues., 1/26 at 1:15 pm) and Comprehensive (Wed., 1/27 at 1:15 pm) ELA Regents (even though some may not necessarily take both exams). Purple Highlight = students not currently registered in Cycle 2’s 2nd or 6th period Comp. Lit. ; names in bold green = have been personally and highly recommended to take both exams; * = ineligible to take the Comprehensive exam - can only take the Common Core exam; everyone else = has been strongly encouraged to only take the Common Core exam: Aguilera, Milan Alvarez, Deysi* Amemiya, Haruka Antunez, Sandra Artis, Ceray Baez, Ismael…

    • 436 Words
    • 2 Pages
    Great Essays
  • Decent Essays

    Chapter 2: The Habit

    • 586 Words
    • 3 Pages

    Chapter 2: The Habit Life sucks! Either you have discipline to work toward your goals or you lack discipline and end up in a life you never wanted to live. Discipline is a funny word. On one hand, it is something you really wish you had a ton of and, on the other hand, it reminds you of a mindless robot and makes you feel like discipline means giving up on your freedom.…

    • 586 Words
    • 3 Pages
    Decent Essays