1.What is HTML?
- HTML stands for Hypertext Markup Language, is the standard markup language that is used to create and structure the web pages. HTML tells a browser how to display the content on a page by defining elements like headings, paragraphs and images.
- Standard Markup Language - is a text-encoding system(converts human-readable text into a numerical format (like binary)) that uses tags to define the structure, formatting, and meaning of a document, allowing computers and software to correctly display or process its content.
- There is no other direct alternative language for HTML.
- Latest version of HTML - HTML5
2.What are HTML tags?
HTML tags are the basic building blocks of a web page. They tell the browser how to structure and display content.
Example:
<h1> ...... </h1>
3.What is HTML Elements?
- HTML element defined by start tag, some content, and end tag.
4.Standalone tags
The tags which did not have the closing tag is called a standalone tags.
For example:
<br>, <img>, <input>, <hr>, etc.,
5.<!DOCTYPE html> - Is not a html tag, it informs the web browser about the version of HTML.
6.What are Semantic tags?
Semantic tags in HTML are tags that clearly describe their meaning both to the browser and to developers.
For example:
<header>, <section>, <article>, <nav>, <main>
7.Explain the difference between block-level and inline elements?
Block-level elements:
Block-level elements always start on a new line and take up the full available width.
For example:
<div>, <p>, <h1>, etc.,
Inline elements:
Inline elements do not start on a new line and only take up as much width as their content requires.
For example:
<span>, <a>, <strong>

Top comments (0)