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>
)?
Signup and view all the answers
What HTML element is used to create an unordered list?
What HTML element is used to create an unordered list?
Signup and view all the answers
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?
Signup and view all the answers
What HTML attribute is used to remove the underline from a link?
What HTML attribute is used to remove the underline from a link?
Signup and view all the answers
What CSS property is used to align text to the center?
What CSS property is used to align text to the center?
Signup and view all the answers
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?
Signup and view all the answers
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?
Signup and view all the answers
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?
Signup and view all the answers
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?
Signup and view all the answers
What HTML tag is used to create a table element?
What HTML tag is used to create a table element?
Signup and view all the answers
What HTML tag is used to define a row within a table?
What HTML tag is used to define a row within a table?
Signup and view all the answers
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?
Signup and view all the answers
What HTML tag is used to define a table header element?
What HTML tag is used to define a table header element?
Signup and view all the answers
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?
Signup and view all the answers
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?
Signup and view all the answers
What CSS property controls the font family used for text?
What CSS property controls the font family used for text?
Signup and view all the answers
What CSS property adjusts the line spacing between lines of text?
What CSS property adjusts the line spacing between lines of text?
Signup and view all the answers
What CSS property is used to set the margin around an element?
What CSS property is used to set the margin around an element?
Signup and view all the answers
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?
Signup and view all the answers
What CSS property is used to set the width of an element?
What CSS property is used to set the width of an element?
Signup and view all the answers
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?
Signup and view all the answers
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?
Signup and view all the answers
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?
Signup and view all the answers
What is the purpose of the 'style' tag in HTML?
What is the purpose of the 'style' tag in HTML?
Signup and view all the answers
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.
Signup and view all the answers
HTML elements are case-sensitive.
HTML elements are case-sensitive.
Signup and view all the answers
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.
Signup and view all the answers
The body
tag contains all the visible content of the web page.
The body
tag contains all the visible content of the web page.
Signup and view all the answers
Which of the following is NOT a valid HTML5 doctype declaration?
Which of the following is NOT a valid HTML5 doctype declaration?
Signup and view all the answers
Which CSS property is used to align text to the left?
Which CSS property is used to align text to the left?
Signup and view all the answers
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?
Signup and view all the answers
Which HTML element is used to create a numbered list?
Which HTML element is used to create a numbered list?
Signup and view all the answers
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?
Signup and view all the answers
What is the difference between an ordered list and an unordered list?
What is the difference between an ordered list and an unordered list?
Signup and view all the answers
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?
Signup and view all the answers
What is a CSS selector, and how is it used in styling?
What is a CSS selector, and how is it used in styling?
Signup and view all the answers
What is the purpose of the viewport
meta tag?
What is the purpose of the viewport
meta tag?
Signup and view all the answers
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?
Signup and view all the answers
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.
Signup and view all the answers
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.
Related Documents
Description
This practical exam evaluates your ability to create a single-page HTML article. You will need to include essential elements like title, author, and meta information, along with a specific background color using basic HTML commands.