Introduction
In this blog, I will share some basic HTML and CSS concepts that every beginner should know. These are important interview questions for frontend development.
What is Markup Language?
Markup language is used to describe the structure of content using tags and symbols.
Example:
HTML is a markup language used to create web pages.
Tags like
,
, and
help the browser understand how to display content.What is an HTML Element?
An HTML element contains:
• Opening tag
• Content
• Closing tag
Example:
Hello
This complete structure is called an HTML element.
Difference Between Tag and Element
Tag:
• Only the keyword inside angle brackets
Example:
or
Element:
• Complete structure including opening tag, content, and closing tag
Example:
Hello
Types of CSS
There are 3 types of CSS:
- Inline CSS
CSS is written inside the HTML element using the style attribute.
Example:
Hello
- Internal CSS CSS is written inside the tag in the HTML file.</li> <li>External CSS CSS is written in a separate .css file and linked using the <link> tag. <strong>Conclusion</strong> These are some important beginner concepts in HTML and CSS. Understanding these basics helps in building web pages and preparing for frontend interviews.</li> </ol>
Top comments (0)