CS202 Mid Term Subjective File by Tanveer Online Academy (1)
CS202 Mid Term Subjective File by Tanveer Online Academy (1)
Join
Us
WhatsApp:
https://wa.me/923455828811
YouTube Channel:
https://www.youtube.com/c/TanveerOnlineAcademy
Facebook Page:
https://web.facebook.com/TanveerOnlineAcademyOfficial
Facebook Group:
https://web.facebook.com/groups/1111267279027720
Website:
https://tanveeronlineacademy.blogspot.com/
Email:
[email protected]
CS202 Mid Term Subjective File by Tanveer Online Academy
Write the code in CSS for table with border 1px and background color should be green.
(3𝗆𝖺𝗋𝗄𝗌)
Answer:
table
Answer:
To write H2O with the "2" as a subscript, you can use HTML formatting as follows:
H<sub>2</sub>O
<html>
<body>
<ul>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ul>
</body>
1
</html>
Answer:
HTML List
Coffee
Tea
Milk
Answer:
Multi-line Comments:
/*
*/
Define URL?
Answer:
A URL (Uniform Resource Locator) is a reference to a web resource that specifies its location
and, optionally, a protocol for accessing it. It serves as a standardized way to identify resources
on the internet.
3
Answer:
Answer:
Comments Markup languages like HTML serve to enhance code readability and understanding.
They act as documentation, clarify complex sections, aid debugging, facilitate communication
within teams, and enable temporary code adjustments without deletion. Overall, they are
Answer:
<div> (Division):
The <div> element is a block-level element, meaning it typically starts on a new line and takes
It is used to group together HTML elements and create divisions or sections within a web page.
<div> elements are often used to structure the layout of a webpage, such as defining sections,
It is commonly styled with CSS to control its appearance, layout, and positioning.
4
The <span> element is an inline-level element, meaning it does not start on a new line and only
It is used to apply styles to a specific portion of text or content within a larger block of text.
<span> elements are often used to apply CSS styles, such as color, font size, font weight, etc.,
It does not affect the layout of the document and is typically used for small-scale styling or
scripting purposes.