HTML 10 Questionsauro
HTML 10 Questionsauro
HTML 10 Questionsauro
Table tag
Head tag
OL tag UL tag DL tag
Marquee tag
Image tag
Ans)
1. Table Tag:
The table tag is used to create tables in HTML. Tables
are often used to display data in a tabular format. Here's
an example of a simple HTML table:
```
<table>
<tr>
<th>Header 1</th>
<th>Header 2</th>
</tr>
<tr>
<td>Data 1</td>
<td>Data 2</td>
</tr>
</table>
```
In this example, we have a table with two columns,
"Header 1" and "Header 2", and one row of data with
the values "Data 1" and "Data 2".
2. Head Tag:
The head tag is used to contain metadata about an
HTML document, such as the page title, author, and
other information that's not displayed in the browser
window. Here's an example of a simple HTML head
section:
```
<!DOCTYPE html>
<html>
<head>
<title>My Page Title</title>
</head>
<body>
<p>Hello, world!</p>
</body>
</html>
```
```
<ol>
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
</ol>
```
- UL (Unordered List) tag is used to create a bulleted
list, with each item in the list marked with a bullet
point. Example:
```
<ul>
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
</ul>
```
- DL (Definition List) tag is used to create a list of
terms and their definitions. Each term is marked with a
term tag (`<dt>`) and each definition is marked with a
definition tag (`<dd>`). Example:
```
<dl>
<dt>Term 1</dt>
<dd>Definition 1</dd>
<dt>Term 2</dt>
<dd>Definition 2</dd>
<dt>Term 3</dt>
<dd>Definition 3</dd>
</dl>
```
4. Marquee Tag:
The marquee tag is used to create scrolling text or
images. Here's an example:
```
<marquee>Hello, world!</marquee>
```
5. Image Tag:
The image tag is used to embed images in an HTML
document. Here's an example:
```
<img src="path/to/image.png" alt="A description of the
image">
```
In this example, we have an image tag with two
attributes: `src`, which specifies the path to the image
file, and `alt`, which provides a description of the image
for accessibility purposes.
2) Internet vs intranet vs extranet
1. Ans) Internet refers to the global network of
interconnected computers and servers that
communicate with each other using the Internet
Protocol (IP). It allows people to access and share
information and resources from anywhere in the
world.
Intranet is a private network that is accessible only to an
organization's employees, contractors, or members. It is
used to share information, collaborate on projects, and
access company resources such as databases,
documents, and applications.
Extranet is a private network that extends beyond an
organization's boundaries to include selected external
partners, vendors, or customers. It provides a secure and
controlled environment for exchanging information and
conducting business transactions with external parties.
```
selector {
property: value;
}
```
```
<p style="color: red;">This text is red.</p>
```
```
<head>
<style>
selector {
property: value;
}
</style>
</head>
```
```
<head>
<link rel="stylesheet" href="style.css">
</head>
```
```
/* Define the CSS class */
.my-class {
font-weight: bold;
}
```
#header {
/* CSS styles here */
}
```
2. Class Selectors: Class selectors are used to target
HTML elements based on their class attribute. Class
selectors are denoted with a period (.) followed by the
class name. For example, if you have an HTML
element with a class of "button", you can target it in
CSS using the following selector:
```
.button {
/* CSS styles here */
}
```
```
p{
font-family: Arial, sans-serif;
}
```
2. `font-size`: This property is used to set the size of
the font for an element. For example:
```
p{
font-size: 16px;
}
```
```
p{
font-weight: bold;
}
```
```
p{
text-align: center;
}
```
```
a{
text-decoration: underline;
}
```
```
p{
line-height: 1.5;
}
```