GRUEN INTERNATIONAL SCHOOLS, PORT HARCOURTA webpage is a document displayed in a web browser. A website is a collection of related webpages and resources. HTML means HyperText Markup Language and provides the structure of webpage content. CSS means Cascading Style Sheets and controls the appearance and layout of that content.
HTML identifies the structure and meaning of content, such as headings, paragraphs, links and images. CSS controls presentation, including fonts, spacing, borders, backgrounds and layout. Separating structure from presentation makes websites easier to maintain.
A basic HTML document contains a document declaration, html element, head section and body section. The head contains document information such as the title, while the body contains content displayed in the browser.
Headings use h1–h6, paragraphs use p, hyperlinks use a, images use img, and lists commonly use ul/ol with li. Attributes provide extra information, such as the destination of a link or the source of an image.
CSS uses rules to control how HTML elements look. A rule normally contains a selector and declarations consisting of properties and values. CSS can control fonts, sizes, margins, borders, backgrounds and positioning.
HTML answers what content is on the page and how it is structured, while CSS answers how that content should look and be arranged. Both work together to create usable webpages.