Podcast
Questions and Answers
What HTML tag is used to create a paragraph element?
What HTML tag is used to create a paragraph element?
p
What is the purpose of the meta
tag with the charset
attribute?
What is the purpose of the meta
tag with the charset
attribute?
To specify the character encoding for the HTML document.
What does the href
attribute in an anchor tag (<a>
) specify?
What does the href
attribute in an anchor tag (<a>
) specify?
The URL or the destination link for the anchor.
What is the purpose of the alt
attribute in an image tag (<img>
)?
What is the purpose of the alt
attribute in an image tag (<img>
)?
What HTML element is used to create an unordered list?
What HTML element is used to create an unordered list?
What HTML attribute is used to specify the style of the list items in an unordered list?
What HTML attribute is used to specify the style of the list items in an unordered list?
What HTML attribute is used to remove the underline from a link?
What HTML attribute is used to remove the underline from a link?
What CSS property is used to align text to the center?
What CSS property is used to align text to the center?
What HTML element is useful for creating a horizontal rule to visually separate content in a document?
What HTML element is useful for creating a horizontal rule to visually separate content in a document?
Which HTML tag is used to define a section in a document, often with a semantic meaning?
Which HTML tag is used to define a section in a document, often with a semantic meaning?
What HTML element is used to create a header for the document, often with a background color?
What HTML element is used to create a header for the document, often with a background color?
Which HTML element is specifically used to create the main content area of a page?
Which HTML element is specifically used to create the main content area of a page?
What HTML tag is used to create a table element?
What HTML tag is used to create a table element?
What HTML tag is used to define a row within a table?
What HTML tag is used to define a row within a table?
Which HTML tag is used to define a cell within a table row?
Which HTML tag is used to define a cell within a table row?
What HTML tag is used to define a table header element?
What HTML tag is used to define a table header element?
What HTML element is often used to define the footer of a web page, typically displayed at the bottom?
What HTML element is often used to define the footer of a web page, typically displayed at the bottom?
What CSS property is used to define the background color of a web page or element?
What CSS property is used to define the background color of a web page or element?
What CSS property controls the font family used for text?
What CSS property controls the font family used for text?
What CSS property adjusts the line spacing between lines of text?
What CSS property adjusts the line spacing between lines of text?
What CSS property is used to set the margin around an element?
What CSS property is used to set the margin around an element?
What CSS property is used to set the padding within an element, the space between the content and the border?
What CSS property is used to set the padding within an element, the space between the content and the border?
What CSS property is used to set the width of an element?
What CSS property is used to set the width of an element?
What CSS property is used to set the alignment of text within an element?
What CSS property is used to set the alignment of text within an element?
What CSS property sets the position of an element on the web page?
What CSS property sets the position of an element on the web page?
Which CSS property is used to control the display style of an element?
Which CSS property is used to control the display style of an element?
What is the purpose of the 'style' tag in HTML?
What is the purpose of the 'style' tag in HTML?
The href
attribute in an <a>
tag is used to specify the text displayed for the link.
The href
attribute in an <a>
tag is used to specify the text displayed for the link.
HTML elements are case-sensitive.
HTML elements are case-sensitive.
The alt
attribute in an img
tag is used to display a caption below the image.
The alt
attribute in an img
tag is used to display a caption below the image.
The body
tag contains all the visible content of the web page.
The body
tag contains all the visible content of the web page.
Which of the following is NOT a valid HTML5 doctype declaration?
Which of the following is NOT a valid HTML5 doctype declaration?
Which CSS property is used to align text to the left?
Which CSS property is used to align text to the left?
Which CSS property is used to set the background color of an element?
Which CSS property is used to set the background color of an element?
Which HTML element is used to create a numbered list?
Which HTML element is used to create a numbered list?
Which of the following CSS properties is used to set the padding around an element?
Which of the following CSS properties is used to set the padding around an element?
What is the difference between an ordered list and an unordered list?
What is the difference between an ordered list and an unordered list?
How can you create a link that opens in a new browser tab or window?
How can you create a link that opens in a new browser tab or window?
What is a CSS selector, and how is it used in styling?
What is a CSS selector, and how is it used in styling?
What is the purpose of the viewport
meta tag?
What is the purpose of the viewport
meta tag?
What is the difference between a class
and an id
attribute in HTML?
What is the difference between a class
and an id
attribute in HTML?
You can use the style
attribute within an HTML tag to apply inline CSS styling to a specific element.
You can use the style
attribute within an HTML tag to apply inline CSS styling to a specific element.
Flashcards
HTML
HTML
HyperText Markup Language, used to structure web pages.
Web Page Structure
Web Page Structure
The arrangement of content (text, images, links) on a webpage.
Clickable Topics
Clickable Topics
Hyperlinks within a webpage that lead to different sections or pages.
Meta Information
Meta Information
Signup and view all the flashcards
Background Color
Background Color
Signup and view all the flashcards
Font Family
Font Family
Signup and view all the flashcards
Image
Image
Signup and view all the flashcards
Hyperlink
Hyperlink
Signup and view all the flashcards
Canteen Menu
Canteen Menu
Signup and view all the flashcards
Item
Item
Signup and view all the flashcards
Price
Price
Signup and view all the flashcards
Header
Header
Signup and view all the flashcards
Table
Table
Signup and view all the flashcards
List-style-type
List-style-type
Signup and view all the flashcards
Font-family
Font-family
Signup and view all the flashcards
Background-color
Background-color
Signup and view all the flashcards
Line-height
Line-height
Signup and view all the flashcards
Margin
Margin
Signup and view all the flashcards
padding
padding
Signup and view all the flashcards
text-align
text-align
Signup and view all the flashcards
Study Notes
Practical Exam (Front-End Web Development)
- Student Name: Shraddha Chaurasiya
- Roll Number: 1723123
- Task: Create a single-page HTML article including title, author, topic list, image, and alternative message link. Include meta information. Use basic HTML commands, specific background color.
HTML Article Structure
<!DOCTYPE html>
: Declares the document type as HTML5.<html lang="en">
: Defines the HTML document and sets the language to English.<head>
: Contains metadata about the document.<meta charset="UTF-8">
: Sets the character encoding.<meta name="author" content="Shraddha Chaurasiya">
: Defines the author.<meta name="title" content="Significance of Mental Health">
: Defines the title of the article.<meta name="viewport" content="width=device-width, initial-scale=1.0">
: Optimizes the viewport for different devices.<title>Significance of Mental Health</title>
: Sets the title displayed in the browser tab.
<style>
: Contains CSS styling.- Defines body background color (#e6f7ff), font family (Arial, sans-serif), line height (1.6), and margin (20px).
- Styles
h1
text color (#2c3e50) andh2
text color (#34495e). - Styles
ul
with disc bullet points,topics a
with normal color (#007acc) and a hover color (#005f99). Alla
tags usetext-decoration: none;
. Styles images (img
), making them block elements with auto margins and centered text in<p>
tags
Q2: Canteen Menu HTML
- Task: Design an HTML document for a canteen menu.
- Structure: Includes header (with background color #4CAF50 and white text), table for menu items.
- Table Structure:
<table>
withwidth:60%
,margin: 20px auto
, andborder-collapse: collapse
.<th>
(table header) for "Item" and "Price" with a background color.<tr>
(table row) for each item in the menu<td>
(table data) cells for item names and prices.td
cells have white background..price
class for right-aligned prices.
- CSS:
- Defines
header
background, color, text alignment, and padding. - Styles the table with borders, padding, and text alignment.
th
cell background color defined. - Defines
footer
with specific text-align, padding, background, and color.
- Defines
- Items (example): Lists various menu items (e.g., Cheese Sandwich, Chicken Wrap) and their prices (e.g., $3.50, 500).
- Responsive Design: Includes
width: 100%
andbottom: 0
for the footer to display at the bottom of the page.
Studying That Suits You
Use AI to generate personalized quizzes and flashcards to suit your learning preferences.