What is the full form of HTML?
Hypertext Markup Language
What is the use of HTML?
HTML is used to create webpages
List the types of heading tags.
<h1>...</h1>
<h2>...</h2>
<h3>...</h3>
<h4>...</h4>
<h5>...</h5>
<h6>...</h6>
Where is <link> tag written in the HTML file?
inside the <head> tag
i.e., <head>
<link rel="stylesheet" href="style.css">
</head>
Which out of the following properties help in changing the font of the text?
text-align
font-family
text-decoration
font-family
What is the full form of CSS?
Cascading Style Sheets
What is the use of CSS?
CSS helps in styling the webpage
Name the 3 empty tags
<hr>
<br>
<link>
Which are the two ways of giving a color to any tag?
1. By specifying the name
2. Using RGB tool
Guess the color based on the RGB values given below:
p
{
color: rgb(0, 255, 0);
}
Green
Which out of the following tags help in creating lists?
1. <li>...</li>
2. <list>...</list>
3. <ol>...</ol>
3. <ol>...</ol>
Which are the two categories of tags in HTML? Explain in brief.
Empty tags - which requires no closing tag
Container tags - which has both opening and closing tags
Give an example of a rule set in CSS.
h1{
color:red;
font-size: 24px;}
Any other example of rule set.
If anything should get displayed as a content of a webpage, where should it be placed in the HTML file?
inside the <body> tag
i.e.,
<body>
.....
</body>
Write a code to give the background color of a webpage as white.
body
{
background:rgb(255, 255, 255);
}
Give an example of an element in HTML
<p> Hello </p>
<h1> Hello </h1>
Write the tag to link an HTML file with the CSS file.
<link rel="stylesheet" href="style.css">
Mention any 4 property-value pairs that can be applied to img ruleset.
float:right;
border-style: solid;
height:200px;
width:300px;
border-width:4px;
Any other would also work
Identify the error in the following code (rule set):
body
{
background-colour:red
1. semicolon is missing at the end of value red
2. curly brace missing at the end of rule set
Write a rule set to set the font size of all the paragraphs to 24px.
p{
font-size:24px;
}
Write down the syntax of writing a rule set in CSS.
Selector{
property:value;
}
Look at the code given below and guess the output
<html>
<body>
<ul>
<li>Dance</li>
<li>Sing</li>
<li>Read</li>
</ul>
</body>
</html>
- Dance
- Sing
- Read
Name and write the tag that helps in creating hyperlinks (linking one HTML to another or giving links to external websites in the HTML file)
anchor tag
<a href="https://www.google.com"> Click here </a>
Write the code to display the word "Hello" in all the different heading sizes in ascending order.
<h6>Hello</h6>
<h5>Hello</h5>
<h4>Hello</h4>
<h3>Hello</h3>
<h2>Hello</h2>
<h1>Hello</h1>
Identify the error(s) in this.
p(
font size = 24 pixels.
)
1. font-size
2. Instead of =, it should be :
3. Instead of (), it should {}
4. Instead of a full stop, it should be semi-colon.