HTML/CSS

HTML (HyperText Markup Language)

  • HTML is the standard language used to create web pages.

  • It structures the content of a website using elements and tags.

  • HTML defines headings, paragraphs, images, links, tables, forms, and more.

  • It acts as the skeleton of a webpage.

  • HTML files usually have the .html extension.

  • Common HTML tags:

    • <h1> to <h6> → Headings

    • <p> → Paragraph

    • <img> → Image

    • <a> → Hyperlink

    • <table> → Table

    • <form> → Form

  • HTML is easy to learn and widely used in web development.

  • Modern HTML version is HTML5, which supports audio, video, and advanced features.

CSS (Cascading Style Sheets)

  • CSS is used to style and design HTML webpages.

  • It controls colors, fonts, spacing, layouts, and animations.

  • CSS makes websites attractive and responsive.

  • It acts as the design layer of a webpage.

  • CSS files usually have the .css extension.

  • Types of CSS:

    • Inline CSS

    • Internal CSS

    • External CSS

  • Common CSS properties:

    • color → Text color

    • background-color → Background color

    • font-size → Text size

    • margin → Space outside elements

    • padding → Space inside elements

    • border → Element border

  • CSS supports responsive web design using media queries.

  • Modern CSS includes Flexbox, Grid, transitions, and animations.