Viva Questionare
Viva Questionare
HTML Basics
html
CopyEdit
<img src="image.jpg" alt="Description of image">
CSS Basics
css
CopyEdit
.class-name { color: blue; }
p, h1 { font-family: Arial; }
html
CopyEdit
<ul>
<li><a href="home.html">Home</a></li>
<li><a href="about.html">About</a></li>
</ul>
css
CopyEdit
@media (max-width: 600px) {
body { font-size: 12px; }
}
Practical Task-Specific
html
CopyEdit
<table border="1">
<tr>
<td>Data</td>
</tr>
</table>
21. What is the difference between ordered and unordered lists in HTML?
Answer: Ordered lists (<ol>) display items with numbers or letters, while unordered lists
(<ul>) display items with bullet points.
html
CopyEdit
<img src="image.jpg" alt="My Image">
CSS Basics
html
CopyEdit
<link rel="stylesheet" href="style.css">
css
CopyEdit
p {
font-size: 14px;
}
15. What is the difference between an ID selector and a class selector in CSS?
Answer: An ID selector (#id) applies to one unique element, while a class selector
(.class) can be used for multiple elements.
16. How do you add a comment in CSS?
Answer:
css
CopyEdit
/* This is a comment */
html
CopyEdit
<a href="https://example.com" target="_blank">Link</a>
html
CopyEdit
<input type="checkbox" name="option" value="1">
html
CopyEdit
<ol>
<li>Item 1</li>
<li>Item 2</li>
</ol>
html
CopyEdit
<frameset cols="50%,50%">
<frame src="left.html">
<frame src="right.html">
</frameset>