Comprehensive HTML and CSS Study Notes

HTML (Hyper Text Markup Language)

  • Definition: Standard markup language for creating web pages.

  • Elements: Fundamental building blocks of HTML documents.

CSS (Cascading Style Sheet)

  • Definition: Style sheet language used for describing the presentation of a document written in HTML.

  • Purpose: CSS defines how HTML elements are to be displayed.

Programming Languages

  • JavaScript: A programming language primarily used for client-side scripting, executed inside the web browser.

  • PHP (Hypertext Preprocessor): A server-side scripting language designed for web development but also used as a general-purpose programming language.

HTML Comments

  • Syntax: <!-- comment -->

  • Purpose: Used to insert comments in the code. Comments are not displayed in the browser.

HTML Document Structure

  • : Declaration that defines the document type and version of HTML being used.

  • : Root element of the HTML document, containing all other HTML elements (noting that it’s a container element).

Head Section

  • : Contains metadata (data about the HTML document) and links to external resources.