100 Key Points for Course 13168 | Generated by AI
Question: Could you provide 100 essential knowledge points for the Guangdong Province Higher Education Self-Examination in Web Design and Production (Course Code 13168)?
Answer: To help you prepare for the Web Design and Production (Practical) exam, I have organized 100 key knowledge points based on the four modules outlined in your syllabus. These points cover the technical requirements, syntax, and practical logic needed to succeed.
Module 1: Browser and Editor Basic Operations
- Mainstream Engines: Chrome uses Blink, Firefox uses Gecko, and Edge uses Blink (formerly EdgeHTML).
- Browser Rendering: Differences in how browsers interpret code necessitate “Cross-browser testing.”
- Caching: Clearing the browser cache (Ctrl+Shift+Del) is essential to see real-time CSS updates.
- Developer Tools: Use
F12to inspect elements, debug CSS, and view the console. - VS Code Installation: The primary editor recommended for the exam.
- Extensions: Install “Chinese (Simplified)” for the UI and “JS-CSS-HTML Formatter” for code cleaning.
- Live Server: A common plugin to preview web pages instantly in the browser.
- File Naming: Use lowercase letters, numbers, or underscores; avoid spaces and Chinese characters.
- Saving Files: Use
Ctrl + Sfrequently; the exam requires specific naming (e.g.,Name_html.html). - VS Code Shortcuts:
! + Tabgenerates the HTML5 boilerplate. - Auto-indentation: Use
Shift + Alt + Fto format messy code. - Multi-cursor Editing: Hold
Altand click to type in multiple places at once. - Comment Toggle:
Ctrl + /is the shortcut for adding/removing comments in both HTML and CSS. - Project Structure: Keep images in an
images/folder and styles in acss/folder for organization.
Module 2: HTML5 Page Design (Structure)
- Doctype Declaration:
<!DOCTYPE html>tells the browser the document is HTML5. - Language Attribute:
<html lang="zh-CN">assists search engines and screen readers. - Character Encoding:
<meta charset="UTF-8">prevents garbled text. - The Head Section:
<head>contains metadata, titles, and links, not visible content. - The Body Section:
<body>contains all visible content of the web page. - Semantic Tags:
<header>,<footer>,<nav>,<aside>, and<article>improve SEO and accessibility. - Headings:
<h1>to<h6>define hierarchy;<h1>should only be used once per page. - Paragraphs:
<p>is a block-level element used for blocks of text. - Line Breaks:
<br>is a void element (no closing tag) for single line breaks. - Horizontal Rules:
<hr>creates a thematic break or horizontal line. - Preformatted Text:
<pre>preserves spaces and line breaks exactly as written in code. - Bold & Italic: Use
<strong>and<em>for semantic emphasis over<b>and<i>. - Divisions:
<div>is the ultimate generic block container for layout. - Spans:
<span>is an inline container used for styling specific text sections. - Relative Paths:
./for current folder,../to move up one level. - Absolute Paths: Full URLs like
https://www.google.com. - Hyperlinks:
<a href="url">creates a link. - Target Attribute:
target="_blank"opens a link in a new tab;_selfis the default. - Anchor Links: Use
<a href="#id">to jump to an element with that specific ID. - Image Tag:
<img src="..." alt="...">is required for displaying graphics. - Alt Attribute:
altprovides text if the image fails to load (essential for accessibility). - Image Dimensions:
widthandheightattributes (can be set in HTML or CSS). - Image Formats: Use JPG for photos, PNG for transparency, and GIF for simple animations.
- Image Maps:
<map>and<area>allow clickable regions on a single image. - Table Basics:
<table>,<tr>(row),<td>(cell). - Table Headers:
<th>defines a header cell, usually bold and centered by default. - Cell Spanning:
colspanmerges columns;rowspanmerges rows. - Table Caption:
<caption>provides a title for the table. - Form Container:
<form action="server-url" method="get/post">. - Text Inputs:
<input type="text">and<input type="password">. - Radio Buttons:
<input type="radio" name="group">; thenamemust be identical for grouping. - Checkboxes:
<input type="checkbox">allows multiple selections. - Dropdowns:
<select>with<option>child elements. - Textarea:
<textarea>for multi-line user input. - Submit Button:
<input type="submit">or<button type="submit">. - Placeholder:
placeholder="..."provides a hint inside an input field. - Required Attribute:
requiredprevents form submission if the field is empty. - HTML5 New Inputs:
email,url,number,date, andcolor. - Audio:
<audio src="..." controls>for music playback. - Video:
<video src="..." controls width="...">for movies. - Autoplay & Loop: Attributes for media; note that browsers often block autoplaying audio.
- Lists:
<ul>(unordered) and<ol>(ordered) both use<li>(list item).
Module 3: CSS3 Basics and Styles (Presentation)
- Inline CSS:
style="..."attribute inside an HTML tag. - Internal CSS:
<style>block inside the<head>. - External CSS:
<link rel="stylesheet" href="style.css">(best practice). - Element Selector: Selects all tags of a type (e.g.,
p { ... }). - Class Selector:
.classname(reusable on multiple elements). - ID Selector:
#idname(unique to one element). - Descendant Selector:
div pselects all paragraphs inside a div. - Priority Rules: Inline > ID > Class > Element.
- Color Keywords:
red,blue,transparent. - Hex Colors:
#RRGGBB(e.g.,#FFFFFFfor white). - RGB/RGBA:
rgba(255, 0, 0, 0.5)allows for transparency (alpha). - Font Family:
font-family: "Microsoft YaHei", sans-serif;. - Font Size: Use
pxfor fixed sizes orem/remfor relative sizes. - Font Weight:
boldor numeric values like700. - Text Align:
left,right,center, orjustify. - Text Decoration:
none(to remove link underlines) orunderline. - Line Height:
line-heightcontrols the space between lines of text. - Text Indent:
text-indent: 2em;is common for paragraph starts. - Box Model: Consists of Content, Padding, Border, and Margin.
- Width/Height: Defines the size of the content area.
- Padding: Inner space between content and border.
- Margin: Outer space between the border and other elements.
- Border Style:
solid,dashed,dotted, ordouble. - Border Radius:
border-radius: 50%;makes an element circular. - Background Color:
background-colorfills the element’s area. - Background Image:
background-image: url('bg.jpg');. - Background Repeat:
no-repeat,repeat-x, orrepeat-y. - Background Size:
cover(fills area) orcontain(shows whole image). - Float:
float: left;orright;used for simple horizontal layouts. - Clearfix: Use
clear: both;to stop elements from wrapping around floats. - Display Property:
block,inline,inline-block, ornone. - Visibility:
visibility: hidden;hides an element but keeps its space. - Pseudo-classes:
:hover(mouse over),:active(clicked),:visited. - List Style:
list-style: none;removes default bullets from<ul>.
Module 4: Comprehensive Web Development (Layout)
- DIV+CSS Concept: Using
divfor structure andCSSfor all visual styling. - Centering Blocks: Use
widthandmargin: 0 auto;. - Navigation Bars: Usually built using
<ul>and<li>withfloat: leftordisplay: inline-block. - Relative Positioning:
position: relative;moves element relative to its normal position. - Absolute Positioning:
position: absolute;moves element relative to its nearest positioned ancestor. - Fixed Positioning:
position: fixed;stays in the same place even when scrolling. - Z-index: Controls the stacking order of positioned elements (higher number = on top).
- Box Sizing:
box-sizing: border-box;includes padding and border in the total width. - Flexbox Basics:
display: flex;is the modern way to align items easily. - Page Structure: A standard page has a
.containerwrapping a.header,.nav,.main, and.footer.
References:
Would you like me to create a practice HTML/CSS template based on one of the sample exam questions?