Lecture 7 Flashcards
What does HTML stand for?
HyperText Markup Language.
What is HTML?
A set of markup symbols or codes used to display content on the internet.
What is the purpose of HTML?
To tell web browsers how to display a webpage’s words, images, and other elements.
What is HyperText in HTML?
A feature that allows users to click a link and navigate to a new page.
What is a markup in HTML?
The text that appears between pointed brackets <
and >
.
What are HTML tags?
Markup codes enclosed between <
and >
characters.
How does HTML use tags?
Tags are used to indicate when display effects begin and end.
What are paired HTML tags?
Tags that come in pairs, such as <p>
and </p>
.
How has HTML evolved over time?
Early versions were static (Web 1.0), while newer versions (Web 2.0, 3.0) support dynamic and interactive content.
What is the purpose of <!DOCTYPE>
in HTML?
It specifies the version of HTML and ensures consistent parsing across browsers.
What does <!DOCTYPE>
mean in HTML 4.01?
It refers to a Document Type Definition (DTD).
What is the basic structure of an HTML document?
It includes <html>
, <head>
, and <body>
tags.
What is the function of the <html>
tag?
Wraps the entire HTML document.
What is the function of the <head>
tag?
Contains metadata like the title, character set, and styles.
What is the function of the <title>
tag?
Sets the document title displayed in the browser tab.
What is the function of the <body>
tag?
Contains the main content of the HTML document.
What are HTML headings?
Tags <h1>
to <h6>
define headings, where <h1>
is the largest and <h6>
is the smallest.
What is the function of the <p>
tag?
Defines paragraphs in HTML.
What is the function of the <a>
tag?
Creates hyperlinks to other documents or resources.
What attributes are used with the <a>
tag?
href
for the link address and target
for opening in a new tab or window.
What is the function of the <img>
tag?
Embeds images in an HTML document.
What attributes are used with the <img>
tag?
src
for the image source and alt
for alternative text.
What are <ul>
and <ol>
tags used for?
Define unordered (<ul>
) and ordered (<ol>
) lists.
What is the <li>
tag used for?
Represents list items in unordered or ordered lists.
What is the <div>
tag used for?
Groups content for styling or layout purposes.
What is the <span>
tag used for?
Applies styles to inline elements.
What is the purpose of the <br>
tag?
Inserts a line break within text.