1/56
Comprehensive practice flashcards covering web writing, visual design principles, forms, JavaScript, SEO marketing, multimedia, responsive design, and HTML tables.
How do online users typically read content on a web page?
Online users rarely read word-for-word; instead, they scan text looking for keywords, headings, and specific pieces of information, frequently reading in an F-pattern.
What is the Inverted Pyramid writing style used in web writing?
A journalistic writing structure that places the most essential information first, followed by supporting details, so users understand the core message from the very first paragraph.
What is the sentence pattern of the active voice?
The active voice follows the pattern Subject→Verb→Object, making statements clear and direct (e.g., 'Jennifer taught the class today').
What is 'chunking' in web content design?
Breaking large walls of text into smaller, digestible pieces ('chunks') with short sentences and paragraphs to enhance readability.
What is the recommended line length for optimal readability on web pages?
Between 50 and 60 characters per line.
What font sizes in pixels are recommended for text-heavy pages versus standard body paragraphs?
Text-heavy pages (such as news articles) should use 18px, while standard body text and paragraphs have a browser default minimum of 16px, with secondary text at 14px.
Which color contrast combinations produce the highest and lowest readability?
Black text on a white background provides the highest readability, whereas text displayed on a black background provides the lowest readability.
What are the four core Visual Design Principles?
Contrast, Repetition, Alignment, and Proximity.
How is contrast defined and applied in web design?
Contrast is the accentuation of differences between elements to create a visual focal point, typically achieved using color, font choices, size, or shape.
What is the primary guideline for the principle of proximity (grouping)?
Elements that are related should be placed close to one another on the page, using white space to separate unrelated elements.
What is white space in web layout?
The unoccupied space left between design elements and content blocks (not necessarily white in color) used to declutter pages and establish visual hierarchy.
What three core questions must a homepage answer immediately for a user?
1) What type of website is this? 2) Who is the target audience? 3) What can users do on the site?
What is the recommended word limit for Call-to-Action (CTA) buttons?
Keep CTAs concise and under 4 words (e.g., 'Sign Up', 'Join', 'Start Free Trial').
What are the recommended guidelines for image carousels on a homepage?
Use 5 or fewer images, display indicators showing how many frames are present, and place the most critical content on the first slide.
What is a hero image in homepage design?
The primary, high-quality photograph located at the top of a website homepage that spans the viewport, captures attention, and reinforces brand messaging.
What are the three essential components of an HTML form?
The <form> element, the form controls (input fields, textareas, etc.), and the submit button that sends the data to the server.
How does the form method="get" differ from method="post"?
get appends form data directly to the URL string (default), whereas post sends form data within the HTTP request body, providing greater security.
What does the HTML5 placeholder attribute do?
It displays temporary, faded gray hint text inside a form field that disappears once the user begins typing.
Why must radio buttons within the same question share the exact same name attribute?
Assigning identical, case-sensitive name attributes groups the buttons so that selecting one automatically deselects all others in that group.
Which HTML elements provide semantic grouping and accessible descriptions for forms?
The <label> element (linked via for to an id), <fieldset> (which renders a visual border around controls), and <legend> (which supplies the text title for the fieldset).
What is the difference between client-side validation and server-side validation?
Client-side validation happens locally in the browser before data transmission, while server-side validation occurs on the web server after data submission.
Which CSS pseudo-classes allow conditional styling based on form input validation?
:valid and :invalid (e.g., input:invalid { border: 2px dashed red; }).
When is the CSS :focus pseudo-class applied to a form field?
When an element receives focus via a mouse click, mobile tap, or keyboard navigation with the 'Tab' key.
What is JavaScript and who originally created it?
An object-based, client-side scripting language interpreted directly by the web browser, originally developed by Netscape Communications Corporation.
How do let and const differ when declaring variables in JavaScript?
Variables declared with let can have their values reassigned but cannot be redeclared; variables declared with const cannot be reassigned or redeclared.
In JavaScript terminology, how do objects, methods, and properties interact?
An object represents an entity (e.g., document), a property is an attribute or state of that object (e.g., document.lastModified), and a method is an action the object can execute (e.g., document.write()).
What is the Document Object Model (DOM)?
A platform structure where the browser window, document, and every individual HTML element are organized as addressable objects with unique properties and methods.
Which DOM method accesses an HTML element using its unique ID?
document.getElementById("id").
What is a JavaScript function and how is it executed?
A named block of reusable code defined using function name(parameters) { ... }, which executes only when explicitly invoked with name(arguments);.
What event handler intercepts form submission to perform validation in JavaScript?
The onsubmit event handler, which calls a validation function and cancels submission if it returns false.
What are the four foundational components of a search engine?
1) The robot (spider or web crawler), 2) The database (catalog of indexed web pages), 3) The search form (user search interface), and 4) The Search Engine Results Page (SERP).
What role does a search engine robot (spider) perform?
It traverses hyperlinks across the web to catalog, download, and index web page contents into the search engine's database.
What is Search Engine Optimization (SEO)?
The practice of optimizing web page content, code structure, meta tags, and links to make sites search-engine-friendly and increase organic search rankings.
What illicit search engine spamming practices harm a website's ranking?
Keyword stuffing (repeating non-relevant words), hidden text/links (manipulating spiders with invisible text), and link farms (networks of sites created solely for cross-linking).
In web advertising models, what is the difference between CPC and CPM?
CPC (Cost Per Click) charges the advertiser only when a visitor clicks their link; CPM (Cost Per Mille) charges a fee for every 1,000 times the advertisement is rendered.
What is guerrilla marketing?
An unconventional, low-budget marketing strategy that relies on high creativity, imagination, and unexpected public engagements to promote products.
According to October 2026 U.S. statistics, how does web traffic divide between mobile and desktop devices?
Mobile devices account for 59.9%, desktop devices represent 38.51%, and tablets make up 1.59%.
In digital multimedia, what is the distinction between a media container and a codec?
A container (designated by the file extension) packages media streams and metadata together, while a codec is the algorithmic program that compresses and decompresses the digital audio or video stream.
What four factors determine Fair Use of copyrighted material under copyright law?
1) Educational rather than commercial purpose; 2) Factual rather than creative nature; 3) Using the smallest portion possible; 4) No negative impact on the marketability of the original work.
What actions do the CSS rotate(), scale(), skew(), and translate() transform functions perform?
rotate() turns an element by degrees; scale() alters element dimensions along the x/y axes; skew() angles the sides; translate() moves an element relative to its original position.
What three steps are necessary to build a CSS animation?
1) Define the animation sequence using @keyframes; 2) Assign animation properties (animation-name, animation-duration, etc.) to a CSS rule; 3) Apply that selector to the HTML element.
What is the function of jQuery's $(document).ready() statement?
It ensures that jQuery scripts execute only after the entire DOM has fully loaded and initialized in the browser.
What visual action does the jQuery .toggle() method execute?
It switches the visibility of selected elements, alternately showing hidden elements and hiding visible elements.
What values can the CSS Flexbox flex-direction property accept?
row (default, left to right), row-reverse (right to left), column (top to bottom), and column-reverse (bottom to top).
In Flexbox layouts, which properties align items along the main axis versus the cross axis?
justify-content aligns flex items along the main axis, while align-items and align-content align flex items along the perpendicular cross axis.
What do the three parameters represent in the shorthand declaration flex: 1 1 auto;?
They represent flex-grow (rate of expansion), flex-shrink (rate of contraction), and flex-basis (initial base size before distribution).
What is the fundamental architectural difference between CSS Flexbox and CSS Grid?
Flexbox is a one-dimensional layout model (handling content along a single row OR column), while CSS Grid is a two-dimensional layout model (handling rows AND columns simultaneously).
What does a fractional unit (fr) designate in CSS Grid layouts?
It allocates a proportional fraction of the container's remaining available free space to a grid column or row.
What <meta> tag code is required in the <head> to initialize responsive viewport scaling?
<meta name="viewport" content="width=device-width, initial-scale=1.0">.
What CSS rule makes embedded images fluid and scalable in responsive layouts?
img { max-width: 100%; height: auto; } combined with omitting fixed HTML width and height attributes.
What is the core premise of Mobile-First Design?
Designing and styling the interface for mobile smartphones first, using min-width media queries to layer on advanced styles for larger screens (tablets and desktops).
What does the CSS declaration table { border-collapse: collapse; } accomplish?
It merges adjacent cell and table borders into a single, unified border line rather than rendering default double separated lines.
When collapsed table borders have the same width but different styles, what is their precedence order?
Double borders possess the highest priority, followed by solid, dashed, and dotted borders.
How do colspan and rowspan attributes alter table cells?
colspan="n" allows a single cell to span across n columns horizontally, while rowspan="n" allows a cell to span across n rows vertically.
What are the three semantic HTML elements used to organize table rows?
<thead> (header rows), <tbody> (body data rows), and <tfoot> (footer or calculation rows).
What elements do the CSS structural pseudo-classes :first-of-type, :last-of-type, and :nth-of-type(n) select?
:first-of-type selects the first matching element among siblings, :last-of-type selects the last matching sibling, and :nth-of-type(n) selects based on a formula, number, odd, or even.
What is the precedence hierarchy between <td>, <tr>, and <table> CSS styling rules?
Cell styles (<td> and <th>) hold the highest priority, overriding row styles (<tr>), which in turn override global table rules (<table>).