Skip to content

[CSS: Syntax Basics] Rules, Selectors, Properties & Values, Declarations, Comments — Documentation #82

Closed

Description

@ajay-dhangar

This sub-issue covers the Syntax Basics module of the CSS tutorial.
Contributors will document the core building blocks of writing valid CSS—rules, selectors, declarations, properties, values, and comments.

This issue corresponds to the following files:

syntax-basics
├── rules
│   ├── selector.mdx
│   ├── properties-and-values.mdx
│   ├── declaration.mdx
├── comments.mdx

Each MDX file should teach:

  • What the syntax component is
  • Why it exists in the CSS language
  • How it works within a rule set
  • Clear code examples
  • Best practices
  • Pitfalls to avoid
  • Visual breakdowns (selectors → declarations → properties → values)

Tasks

  • Write documentation for selector.mdx
  • Write documentation for properties-and-values.mdx
  • Write documentation for declaration.mdx
  • Write documentation for comments.mdx
  • Include syntax diagrams (recommended)
  • Add examples showing valid vs invalid CSS
  • Add real-world use cases
  • Ensure MDX formatting works in Docusaurus
  • Add cross-links to Selectors, Typography, and Layout sections

Suggested Structure for Each File

  • Definition
  • Importance in CSS
  • Syntax format
  • Common examples
  • Mistakes to avoid
  • Best practices
  • Browser interpretation notes
  • Related links (Selectors, Box Model, Basics)

Expected Outcome

A foundational set of MDX documents that clearly explain the essential parts of CSS syntax.
These pages enable beginners to confidently read and write CSS before moving into selectors, layout systems, and advanced features.

Activity

  1. added this to the CSS Docs milestone on Nov 14, 2025
  2. github-actions commented on Nov 14, 2025

    @github-actions

    Hi @ajay-dhangar! Thanks for opening this issue. We appreciate your contribution to this open-source project. Your input is valuable and we aim to respond or assign your issue as soon as possible. Thanks again!

  3. github-actions commented on Nov 14, 2025

    @github-actions

    👋 Thanks for adding the documentation label!

    This issue is now marked as needing content updates for the CodeHarborHub site. Please ensure the description contains all necessary technical details.

  4. linked a pull request that will close this issueDone Syntax Basics #84on Nov 15, 2025
  5. self-assigned this
    on Nov 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions