Published using Google Docs
C777 Exam CRAM Notes
Updated automatically every 5 minutes

C777 Course CRAM Notes

C777 HTML "Speed Run" Cheat Sheet

Core Concepts: The Big Three 🧱


HTML Versions: A Little History 📜


Multimedia: Audio & Video 🎬🎵


Semantic/Structure Elements (HTML5): Tags with Meaning 🧐

These tags tell the browser and developers what kind of content is inside them, improving accessibility and SEO.


Lists: Organizing Information 📋


Attributes: Extra Info for Elements ✨


Validation: Keeping Your Code Clean ✅


User Agent: Who's Looking? 🕵️


Responsive Web Design (RWD): One Site Fits All 📱💻🖥️


HTML5 APIs: Superpowers for Your Browser 💪


Key Takeaways for the Exam:

C777 Forms - Last Minute Cheat Sheet

Think of this as your "brain dump" for the exam. Scan it, look for bolded keywords, and connect them to their main job.


What are HTML Forms? Imagine a paper form (like for a doctor or a contest), but on a webpage. Users type info, and the form sends it somewhere (a server).

Part 1: Building the Form – The Basic Blocks

1. The Main Container: <form>

2. Input Fields: <input> – The Workhorse!

3. Other Ways to Get Input:

4. Buttons: <button>


Part 2: Making Forms Clear & Organized

1. Labeling Fields: <label>

2. Grouping Fields: <fieldset> & <legend>


Part 3: Checking User Input (Validation)

What is Validation?

1. HTML5 Built-in Validation Attributes (for <input>, <select>, <textarea>):

2. Common pattern Examples (Recognize the Gist):

3. How Validation Works & User Experience:

4. Browser Quirks:


Quick Answers - Key Concepts Test Might Hit:


Final Cram Tip: When in doubt on the test, think about the most straightforward, common-sense meaning of the HTML tag or attribute. Good luck! You've got this!

C777 Mobile Web Design

Focus: Making websites awesome on phones/tablets. Think: Simple, Fast, Easy-to-Tap!


1. Mobile Site vs. App vs. Responsive: What's What?


2. Making Mobile Pages Easy to Use (Mobile Page Layout)


3. Getting Around: Navigation & Links on Mobile


4. Responsive Web Design (RWD) Magic Tricks - KEY SECTION!


5. Measuring Things in CSS: Units


6. Checking Your Work: Validation & Testing


7. Special Links for Mobile Actions (Hyperlink Protocols)


Key Exam Takeaways - Quick Recall:

Scan this before the test. You've got this! Good luck!

C777 HTML5 APIs - Last Minute Brain Boost

What's an API (Application Programming Interface)?


1. Document Object Model (DOM)


2. Canvas API (Drawing with Code)


3. Offline Web Applications (AppCache - Older technology, but good to know concepts)


4. Geolocation API (Finding User's Location)


5. Drag-and-Drop API (Moving Things Around)


6. File API (Working with User's Files)


7. Web History API (Browser Back/Forward Buttons)


8. XMLHttpRequest (XHR) & AJAX (Dynamic Content Updates)


9. jQuery (Simplified JavaScript - A Library, not a native HTML5 API)


Quick Recall - Match API to Task:

Good luck – you've got this!

C777 CSS - "Last Minute Pass" Cheat Sheet

Part 1: CSS Fundamentals - The What, Why, and How

1. What is CSS?

2. How to Include CSS: Three Ways

3. CSS Comments (Notes for Yourself, Browser Ignores)

4. CSS Terminology - The Building Blocks of Style


Part 2: Selectors - Targeting HTML Elements Like a Pro 🎯

1. Basic Selectors:

2. Attribute Selectors (Target based on HTML attributes & their values): * element[attribute$=value]: Attribute value ENDS with the string. (Think $ = end of money/string). * Example: a[href$=".pdf"] { font-weight: bold; } (links to PDF files). * Test Tip: $="value" means "ends with value". * element[attribute*=value]: Attribute value CONTAINS the substring. (Think * = wildcard, contains). * Example: img[alt*="icon"] { border: 1px solid grey; } (images with "icon" in alt text). * Test Tip: *="value" means "contains value". * element[attribute^=value]: Attribute value BEGINS with the string. (Think ^ = start/point up). * Example: input[type^="text"] { padding: 5px; } (input types "text", "textarea", "textsomething"). * Test Tip: ^="value" means "begins with value".

3. Pseudo-Selectors (Target based on state, position, or characteristics): * :checked: Targets checked form elements (checkboxes, radio buttons). * Test Tip: Styling something that's currently checked. * :disabled: Targets disabled (un-editable, non-interactive) form elements. * Test Tip: Styling a grayed-out, unusable input. * :enabled: Targets enabled (interactive) form elements. * :first-of-type: Targets the first sibling of its specific element type. * Example: p:first-of-type { font-weight: bold; } (styles the first <p> within its parent, even if it's not the very first child element). * Test Tip: Differentiate from :first-child (which must be the absolute first child). :first-of-type is more specific to the tag type. * :last-of-type: Targets the last sibling of its specific element type.

4. Combinator Selectors (Target based on relationships): * element1 ~ element2 (General Sibling): Targets element2 that is a sibling of element1 AND comes after it (they share the same parent). * Example: h3 ~ p { color: red; } (styles any <p> that follows an <h3> at the same nesting level). * Test Tip: The ~ (tilde) means "any sibling that comes after."


Part 3: The Box Model - Every Element is a Box! 📦


Part 4: Positioning - Arranging Elements on the Page 🗺️


Part 5: Text & Font Styling - Making Words Pretty ✍️

1. CSS Text Properties:

2. CSS Font Properties:


Part 6: Backgrounds & Visuals - Beyond Solid Colors ✨

1. CSS Background Properties:


Part 7: CSS Transformations - Moving, Rotating, Scaling (No Layout Shift!) 🌀


Part 8: CSS Transitions - Smooth Animations Between States 🎞️


Part 9: CSS Animations - Complex, Multi-Step Sequences 🎬

Example:
CSS
@keyframes slide-in {

  from { transform: translateX(-100%); opacity: 0; } /* Start state */

  50%  { opacity: 0.5; }                             /* Mid state */

  to   { transform: translateX(0); opacity: 1; }    /* End state */

}


Remember to connect CSS properties to what they visually do. Good luck with the C777 exam! You can do this! 👍


C777 JavaScript: Printable Pass-It Cheat Sheet 📝

Page 1: JavaScript Basics & Data

A: Key Concepts - The Core of JS

  1. Think of the DOM as how JS "sees" your HTML page as a structured object (like a tree). JS uses the DOM to find, change, add, or delete HTML elements and their content/styles.
  2. Test Tip: If a question is about JS changing something on the webpage (text, styles, elements), it's interacting with the DOM.
  1. Example: <script> alert('Hello from embedded JS!'); </script>
  2. Test Tip: Good for small scripts specific to one page.
  1. Example: <button onclick="alert('Button was clicked!')">Click Me</button>
  2. Test Tip: Quick way to handle a simple event directly on an element.
  1. Example: <script src="my_scripts.js"></script>
  2. Test Tip: If the question is about organizing JS for multiple pages or larger projects, an external script is the best practice.
  1. Example: var x = 5; or alert("Hi!");
  1. Example: 5 + 10 (produces 15), or x * 2, or isLoggedIn === true.
  2. Test Tip: An expression can be part of a statement. var y = 5 + 10; ( 5 + 10 is an expression, the whole line is a statement).
  1. Example: var message = (age >= 18) ? "Adult" : "Minor";
  2. Test Tip: A compact way to write a simple if...else that assigns a value. Look for the ? and :.
  1. Test Tip: Look for the quotes! If it's wrapped in quotes, it's a string, even if it looks like a number (e.g., "42" is a string).
  1. Test Tip: null is an assigned "nothing," undefined is an unassigned "nothing."
  1. Example: parseInt("42px") becomes 42. parseInt("3.99") becomes 3. parseInt("abc") becomes NaN.
  2. Test Tip: For getting whole numbers from strings.
  1. Example: parseFloat("3.14rate") becomes 3.14. parseFloat("7") becomes 7.0.
  2. Test Tip: For getting numbers with decimals from strings.
  1. Display a pop-up box with the question "What is your name?".
  2. Wait for the user to type something and click OK (or Cancel).
  3. The text the user types (a string) will be returned by prompt() and then stored into the userName variable.

Page 2: Objects, Methods, Events & Functions

Function Code Example Breakdown:

 JavaScript
var num = 7; // 'num' is a global variable holding 7

// --- Function Definition/Declaration ---

function calculate(x) { // 'calculate' is the function name. 'x' is a PARAMETER (placeholder).

    // --- Function Block (code inside the function) ---

    var calculationResult = x * 3 + 2;

    return calculationResult; // This expression's value is the RETURN VALUE.

    // --- End of Function Block ---

}

// --- End of Function Definition —

// --- Calling Statement ---

// 'calculate(num)' calls the function.

// 'num' (which holds the value 7) is the ARGUMENT passed to the function.

// Inside 'calculate', the parameter 'x' will receive the value 7.

var sum = calculate(num);

// 'sum' will now store the returned value from calculate(7), which is (7 * 3 + 2 = 23).

// So, sum will be 23.


Print this out, review it often, and connect these simple explanations to potential test scenarios. Good luck! You've got this! 👍