What is HTML
- HTML is stands for hypertext markup language.
- It is to create structure the content of webpage.
- It consists of series of element.
- It contains a tags
head,body,title. - Now we uses html5 version.
- Html uses browser to display the output.
- It contains the meta data about the page.
What is markup language
A markup language is a language used to structure, format, and display content on webpages or documents using special tags.
Why markup language
Because tags βmark upβ the text with information about structure and formatting.
Features of markup language
- Uses tags.
- Easy to read.
- Not a programming language.
- Used for webpage structure.
What is element
An HTML element is a fundamental building block of a webpage that tells a web browser how to structure and interpret a specific piece of content. It typically consists of a start tag, content, and an end tag.
- opening tag.
- content.
- closing tag.
Type of CSS
- Inline CSS:
CSS is written directly inside the HTML tag using the style attribute.
<h1 style="color:red;">Hello</h1>
- Internal CSS:
CSS is written inside the tag within the HTML file.
<head>
<style>
p{
color: blue;
}
</style>
</head>
- External CSS:
CSS is written in a separate .css file and linked to HTML.
CSS
p{
color: green;
}
Difference between tags and element
The primary difference is that a tag is a markup command used to define the start or end of a structure, while an element is the complete unit consisting of those tags and the content inside them
Top comments (0)