In this article, you will learn about the Basic HTML Elements Class 10 for the computer application subject. Let’s begin!
Topics Covered
Basic HTML Elements Class 10
You have learned HTML basic, how to create a static webpage using HTML in the previous chapter. In this chapter, you will learn HTML basic tags and formatting tags.
HTML Basic Elements or Tags
Before starting with this topic explore the following basic terms associated with HTML.
Terms related to HTML
Tag or Element
The HTML command is known as tag or element. It is written within angular brackets. For example, <HTML>, <Head>, <title> etc.
Attribute
An attribute is a property name that adds more functionality to the content enclosed within a tag. The attribute is written next to the tag name.
Value
Value refers to the property value which can be applied to the attribute of an HTML element. Value must be provided next to attribute with equals to (=) sign. Then written into double quotes.
HTML Tag structure
An HTML tag written in the proper manner with its attributes and values is called an HTML tag structure.
In the next section of Basic HTML Elements Class 10, we will discuss some basic tags.
The <HTML> tag
dir Attribute
<HTML dir="ltr">
LANG Attribute
<HTML lang="fr">
The <head> tag
The <title> tag
<html>
<head>
<title> HTML basic tags </title>
</head>
<body>
Main content of the page goes here.
</body>
</html>
The <body> tag
Background
<html>
<head>
</head>
<body background="back-img.jpg">
Your contents goes here.
</html>
-
- The image must be copied into the same folder where you want to save your HTML file.
- Write an image name with an extension. Check the properties of the image to view the extension.
- All browsers did not support displaying a background image with this attribute.
- You must ensure that the text colour and background image colour should be used in such a way that the user can read the text properly.
- The image extension must be provided with your file name.
bgcolor
This attribute is also related to the background color of the webpage. The value can be any color name or color code. The color code is made up of the hexadecimal code with #rrggbb format. You can use the color code for light or dark color combinations. Let’s have look on this code:
<html>
<head>
<title>Background Color Demo</title>
</head>
<body bgcolor="blue">
Your contents goes here.
</html>
Output
Text
<html>
<head>
<title>Background Color Demo</title>
</head>
<body bgcolor="blue" text="white">
Your contents goes here.
</html>
link
alink
vlink
The <br> Tag
<html>
<head>
<title>br demo</title>
</head>
<body>
This is my webpage.
I have created my web page using HTML.
Learning web page designing is quite interetring.
</html>
<html>
<head>
<title>br demo</title>
</head>
<body>
This is my webpage.
<br>
I have created my web page using HTML.
<br>
Learning web page designing is quite interetring.
</html>
That’s all from basic HTML elements class 10. I hope you enjoyed this article. If you have any doubts or queries feel free to ask in the comment section.
[…] Dear Reader, when you are going to join any institute or company or organization or any online website subscription, you have to do registration first. In previous articles, we have discussed images in HTML, Lists in HTML, HTML formatting Tags, HTML basic elements. […]