Mod 1 PDF
Mod 1 PDF
Flashcard 1
Q: What is HTML?
A: HTML stands for HyperText Markup Language, a system of tags used to structure and
display content on the web.
Flashcard 2
Q: What is the “Web Development Trifecta”?
A: The combination of HTML (structure), CSS (style), and JavaScript (functionality) used
together to build modern web pages.
Flashcard 3
Q: What is the difference between the Internet and the World Wide Web?
A: The Internet is the global network of interconnected computers, and the World Wide
Web is a subset of the Internet consisting of interlinked web pages accessed through
browsers.
Flashcard 4
Q: What is an HTML5 structural tag introduced to separate content from the main content
area, such as a sidebar?
A: The <aside> tag.
Flashcard 5
Q: Why is responsive design important?
A: Responsive design allows web pages to adapt their layout to different screen sizes and
devices, ensuring a consistent user experience.
Flashcard 6
Q: What does the <!DOCTYPE html> declaration indicate?
A: It tells the browser that the page is using HTML5 standards.
Imagine building a house. First, you put up the walls, floors, and roof – that’s the structure.
In web development, HTML is like these building materials; it gives your page its shape and
where each piece of content goes.
Next, you choose the paint color, add furniture, and decorate your house – that’s like using
CSS. CSS lets you change how everything looks: colors, fonts, spacing, and layouts.
Finally, you add things that make the house more “alive,” such as lights that turn on when
you enter a room or a doorbell that rings. In web terms, that’s JavaScript. It makes your site
interactive – buttons react when clicked, forms validate your input, and animations play.
Example:
JavaScript: Adding onclick to a button can make something happen when the
button is pressed, like showing a hidden message.
1. HTML Provides Structure: HTML is the backbone of any web page, telling the
browser what to display and how to organize content.
2. Web Development Trifecta: HTML, CSS, and JavaScript work together. HTML
structures the content, CSS styles it, and JavaScript adds interactive functionality.
3. Internet vs. World Wide Web: The Internet is the global network, while the World
Wide Web is the system of linked web pages that we browse every day.
4. Doctype and Versions: Declaring <!DOCTYPE html> ensures the browser uses
modern HTML5 standards. Older HTML versions required different doctype
declarations and “flavors” (strict, transitional, frameset).
6. Responsive Design: Modern web pages must adapt to various devices and screen
sizes, ensuring usability on phones, tablets, and desktops.
7. Structural Tags: HTML5 adds semantic tags like <aside>, <main>, and <section> to
better organize content and improve both user experience and accessibility.
HTML (HyperText Markup Language): The code that structures web content into
elements, such as headings, paragraphs, and images.
Example: <p>This is a paragraph.</p>
CSS (Cascading Style Sheets): The styling language that modifies the appearance of
HTML elements, including colors, layouts, and fonts.
Example: p {color: blue;} makes paragraph text blue.
World Wide Web (Web): The collection of interlinked web pages accessed via
browsers over the Internet.
Doctype: A declaration at the top of an HTML file that informs the browser which
version of HTML is being used.
Example: <!DOCTYPE html> tells the browser the page is in HTML5.
Responsive Design: The approach that enables a web page’s layout to adjust to
different screen sizes and devices.
Example: A page that looks good on a phone and a laptop without needing different
code.
Semantic Tags (HTML5): Tags like <aside>, <section>, <header>, and <footer> that
describe the content’s purpose and structure more clearly.
Example: <aside> for side content like a sidebar.
1. Which of the following best describes the role of HTML in web development?
A. HTML adds dynamic, interactive features to a webpage.
B. HTML defines the structure and layout of content on a webpage.
C. HTML is used primarily to style and format the text.
D. HTML is a programming language that calculates data.
Answer: B
2. What do CSS and JavaScript provide that HTML alone does not?
A. HTML structure and tags
B. Greater consistency in displaying text
C. Dynamic styling and interactive functionality
D. A connection to the Internet
Answer: C
3. What is the difference between the Internet and the World Wide Web?
A. They are interchangeable terms.
B. The Internet is a global network of computers, while the Web is a collection of
interlinked web pages accessed through the Internet.
C. The Web is a hardware system, and the Internet is software-based.
D. The Internet is only for streaming media, while the Web is for reading documents.
Answer: B