• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 1 out of 3 pages
Exam (elaborations)

HTML & CS: Study Guide

Document preview thumbnail
Preview 1 out of 3 pages

HTML & CS: Study Guide

Content preview

HTML & CS: Study Guide
1. The web and the roles of HTML/CSS
HTML (HyperText Markup Language) defines the structure and meaning of web
content. It marks up
headings, paragraphs, navigation, images, links, forms, and other elements.
CSS (Cascading Style Sheets) controls presentation: colors, typography, spacing,
borders, layout, and
responsive behavior. JavaScript is commonly used to add behavior and interactivity.
How a browser uses them
• The browser requests a page from a server or opens a local file.
• It parses HTML into a document structure called the DOM (Document Object Model).
• It reads CSS rules and determines the styles that apply to elements.
• It calculates layout, paints pixels, and displays the page.
HTML and CSS are not programming languages in the same sense as JavaScript or
Python: HTML is a markup
language, and CSS is a style-sheet language. Both are essential technologies for front-
end web development.
A minimal document
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-
scale=1">
<title>My First Page</title>
</head>
<body>
<h1>Welcome</h1>
<p>This is my first web page.</p>
</body>
</html>
Why these lines matter: the doctype selects standards mode; lang identifies the
document language; charset
supports Unicode text; the viewport meta tag helps the layout match the device width;
and title supplies the
browser-tab title.
Common mistake: placing visible page content inside the head element. Most visible
content belongs inside
body.
2. HTML structure and semantic markup
An HTML element usually consists of a start tag, content, and an end tag. Some
elements, such as img and
input, are void elements and do not have closing tags.
<p>This is a paragraph.</p>

Document information

Uploaded on
October 15, 2026
Number of pages
3
Written in
2026/2027
Type
Exam (elaborations)
Contains
Questions & answers
$13.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Sold
0
Followers
0
Items
1342
Last sold
-



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions