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>
Write down the syntax of an HTML element?
<tag name> content </tag name>
What is the full form of CSS?
Cascading Style Sheets
What is the use of CSS?
CSS helps in styling the webpage
Name the 4 empty tags
<hr>
<br>
<img>
<link>
Which are the two ways of giving a color to any tag?
1. By specifying the name
2. Using RGB tool
What is a rule set in CSS?
A set of rules to specify a style for the selected element.
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>
What are the extensions of HTML and CSS files.
.html
.css
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 down the syntax of writing a rule set.
selector{
property:value;
}
Write down the basic structure of HTML web pages.
<!DOCTYPE html>
<html>
<head>
</head>
<body>
</body>
</html>
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
What is the syntax to write the code for special characters in HTML?
Write down the HTML code for the following special characters:
1. >
2. <
3. &
4. "
Syntax: &code;
> - >
< - <
& - &
" - "
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>
Which out of the following properties help in changing the size of the text?
text-size
font-size
fontsize
font-size