- Get link
- Other Apps
Basic tags which left -
Semantic tags -
1. article tag -
article is self contained content we write article related content in this tag like blog , newspaper , etc.
syntax -
<article>
article tag in html
</article>
<article>
article tag in html
</article>
2. aside tag -
some content was aside from its place and they place at the side of website like a small column box .
syntax -
<aside>
this is aside tag
</aside>
3. Header tag - it is place at top of the website or say as a head of the website and work as menu or navigation bar for web page .
syntax -
<header>
this is header tag
</header>
4. Footer tag -
this tag was placed at the bottom of the web page and we can take our more detail in the footer and address contact number etc are present at footer
syntax -
<footer> this is footer <footer>
what is means of   in html ?
it is know as non breaking space we use it in line no space and it do not break the line and make space between words or in other word to word separate are stick togather but not break in different lines.
what is id's means ??
we use id in html for give a unique number to tags and find them simple for any modification or say to point that id for styling of it through css and because it was unique number for all tags so once it was used we cannot use it again in any other tags so thats was it is a unique all time .
syntax -
<p id="id_name">this is how we take id in html
</p>
css -
#id_name{
color: blue;
}
on server -
this is how we take id in html
what is class attribute in html
We use one class named in more than one tags and modified them or say style them by class simply if we want to style multiple paragarph tag so we get them by class and style them in CSS ( if we want same style ).
Syntax -
<!-- class in html -->
<p class="class_name">
this is how we take class
</p>
<p class="class_name">
this is how we take class
</p>
css-
.class_name{
color: red;
}
on server -
this is how we take class
Code -
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>tags in html</title>
<style>
.class_name{
color: red;
}
#id_name{
color: blue;
}
</style>
</head>
<body>
<!-- semantic tags -->
<!-- article -->
<article>
article tag in html
</article>
<!-- aside tag -->
<aside>
this is aside tag
</aside>
<!-- id -->
<p id="id_name">
this is how we take id in html
</p>
<!-- class in html -->
<p class="class_name">
this is how we take class
</p>
</body>
</html>
ON SERVER -
this is how we take id in html
this is how we take class
Which type of IDE you have to use it -
This code editor is mostly used by programmer in competitive level and also in collages and this is a best programming ide and it is belongs to Microsoft one of the best company which most of the people belive so for starting you start with vs-code ide and its UI is very simple to understand but at start have to take a tutorial about it in YOUTUBE so first start programming with this .
Comments
Post a Comment