I did my first Microsoft certification exam ever and I passed 70-480 last Sunday! Yeah I know, I should have done this long time ago. Although I have prepared myself for Microsoft certification exams before this, I never attend for any as I hate sitting for an exam.
Table of Contents
Microsoft 70-480 Programming in HTML5 with JavaScript & CSS3
Why 70-480
I am using C# for most of my working life. As time passes, I moved to full stack developer. I am using Javascript, HTML, and CSS in my daily work. I thought instead of preparing for Exam 70-483: Programming in C#, preparing for 70-480 would help to learn more. And it turns out there are many things I was missing.
Overview
This is not an exam guide. If you are looking for a brief guide you can check the post A Brief Guide On How to Pass the 70-480 Certification Exam from Jaime González García. To know the syllabus you can check here. Over here, I will just add some interesting stuff that I learned. You may consider this as an overview of the exam.
I will divide my learning into three areas,
Today I am posting only CSS3
CSS3
- External CSS is added by link.
- Link has a property media -> that can specify the target device.
- Property media setting overrides the @charset setting in the CSS file
- @import rules must be at the top of your style sheet, before any other content except the @charset rule. If you even have a comment above the @import rules, they will not work properly.
- The first argument to the transition property is the name of the property to be changed (PDTD – Property Duration Timing-fashion Delay)
- The flex container properties are:
- The flex item properties are:
- CSS box model – margin area is always transparent
- Container display : grid/inline-grid
- grid-gap, grid-column-gap, grid-row-gap:
- grid-template-columns:
- grid-template-rows
- grid-template-areas
- justify-content:
- align-content
- Grid Item
- order
- grid-column
- grid-row
- grid-area
CSS Position
– | Static | relative | absolute | fixed | sticky |
Default | Y | – | – | – | – |
TRLB | N | Y | Y | Y | Y |
z-index | N | Y | Y | Y | Y |
Page Flow | Y | Y | N | N | Y |
Relative To doc | N | Y | |||
Scrolling | – | – | – | – | Y |
TRLB – Top Right Left Bottom positions
- Using the fixed position The element position is calculated much like it is with absolute positioning, but this is always in relation to the browser window.
- Using the absolute position The element is removed from the HTML flow and positioned within the first non-static element. If all parent elements are static (the default), then the element is positioned within the browser window.
- Regardless of where on the page, Next Button exists finish button is placed 50 pixel right of the Next button {position: relative; left: 50}
CSS Selectors
- avoid using the universal selector * because of the performance cost
- using descendant selectors can cause performance problems due to the amount of searching required.
- child selectors li > a
- To access information that is either outside the DOM tree or difficult to access in the DOM tree, you can use pseudo classes and pseudo elements.
- Pseudo-classes classify elements based on something other than name, attributes, or content and, usually, something that cannot be deduced from the DOM tree. Exceptions to the rule are :first-child and :lang(), which can be deduced from the DOM tree.
- Order of link’s pseudo-classes: Louis Vuitton For Hells Angels – :link :visited :focus :hover :active
- a:hover MUST come after a:link and a:visited in the CSS definition in order to be effective!
- a:active MUST come after a:hover in the CSS definition in order to be effective!
- You can provide alternate style rules to validation elements by implementing style rules on the :valid, :invalid, :required, and :optional pseudo classes.
- :nth-child
- Is one-based, not zero-based
- You can provide a formula based on an + b when a is cycle count and n is a counter variable, and b represents the element within the cycle that you want to select. For example, li:nthchild(10n + 3) selects the third element of every 10 elements, so if a <ul> element contains 45 <li> elements, elements 3, 13, 23, 33, and 43 will be selected.
- You can also use the keywords odd and even
- nth-of-type is also one based
- pseudo elements
- :first-line
- ::before
- ::after
- Sibling Selectors div + h1 selects the <h1> element that immediately follows a <div> element.
- The tilde (~) character denotes the sibling selector. For example, div ~ h1 selects all <h1> elements that follow a <div> element
- This excludes the first child
- An attribute selector selects elements based on the existence of the specified attribute. For example, a[title] selects all hyperlinks whose title attribute is defined.
- The attribute contains value selector selects all elements that contain the specified attribute value within the specified attribute.
- To specify the attribute contains value selector, add an asterisk (*) suffix to the attribute name.
a[href*='contoso.com']:hover { background-color: yellow; }
- To specify the attribute value starts with a selector, add a caret (^) suffix to the attribute name.
- To specify the attribute value ends with a selector, add a dollar sign ($) suffix to the attribute name.
- An attribute contains a value in list selector selects all elements whose specified attribute contains the specified value when the attribute has a space-delimited list of values and there is a match to one of the values.
a[data-linktype ~='externalLink'] { background-color: yellow; }
CSS Colors
- The color value of an anchor (a) link is usually not inherited from the parent element
- Rgba: the alpha component can be a number between 0 and 1
- Colour rgb() – If the integer value is above or below the valid 0–255 range, the value is automatically interpreted as the minimum or maximum value.
- hue-saturation-lightness (HSL) colors
- The hue is calculated as an angle of the color circle where red is 0 or 360 (degrees), and other colors are spread around the circle
- Red 0 or 360
- Yellow 60
- Lime green 120
- Blue 240
- The hue is calculated as an angle of the color circle where red is 0 or 360 (degrees), and other colors are spread around the circle
- The saturation and lightness values are represented in percentages.
- Saturation is the amount of color to provide, and lightness is the amount of lightning to provide.
CSS Font
- Serif and sans serif font families have characters of proportional width, meaning that characters have different widths, unlike the monospaced font families.
- @font-face Firefox, Chrome, Safari, and Opera support True Type Files (.ttf) files, IE supports .eot
- Font Families
- Font families that have curls at the top and bottom of characters belong to the serif font family group.
- Font families that don’t have curls belong to the sans serif font family group.
- Font families whose characters are all the same width belong to the mono-spaced font family group.
- Font families that imitate handwriting belong to the cursive font family group.
- Font families that are decorative belong to the fantasy font family group.
CSS Unit
- The following is a list of the available measurement units.
- remis only relative to the HTML (root) font-size
- em A relative measurement multiplier of the parent element’s computed font size
- pc An absolute measurement pica unit, 12 points per pica – 6 pica per inch
- pt An absolute measurement point unit – 72 points per inch
- px An absolute measurement pixel unit – 96 pixels per inch
- in An absolute measurement inch unit – 2.54cm
- cm An absolute measurement centimeter unit – 10mm
- mm An absolute measurement millimeter unit
- There is also a set of absolute sizes whose size is controlled by the browser, but the recommended size is 1.2 em from the previous size. These sizes are xx-small, x-small, small, medium, large, x-large, and xx-large.
- The following example sets the top and bottom to 5 pixels and the left and right to 15 pixels.
padding: 5px 15px;
If the padding property has two values:
padding: 25px 0 25px;
top and bottom paddings are 25px, right and left paddings are 0px
CSS Properties
- The clear property instructs the browser to place the clear element after the floating elements
- change the way the browser calculates the width by setting the box-sizing property
- content-box The default setting; calculates the width based on the content width only.
- padding-box Calculates the width based on the padding and content width.
- border-box Calculates the width based on the border, padding, and content width.
- you can add the following style rule to center the container’s contents. The width must be set, or the centering will not work.
#container { width: 600px; margin-left: auto; margin-right: auto; }
Helpful links
- overflow-wrap
- word-break
- transitions or MDN
- flexbox
- grid
- orientation
- keyframes
- CSS Units
- @font-face
- Transform
Follow up
I’ll post about HTML5 and Javascript on the following two posts. Please subscribe to the newsletter. And also don’t forget to add your valuable feedback. I am looking forward to your comments. Next up HTML5
Thanks for this post
Hello, Jack speaking. I’ve bookmarked your site and make it a habit to check in daily. The information is top-notch, and I appreciate your efforts.