DEV Community

Kathirvel
Kathirvel

Posted on • Edited on

Beginning with HTML(Markup language)

1.What is HTML?
First of all, HTML stands for "Hyper Text Markup Language".
HTML is the standard markup language for creating Web pages and it's
describes the structure of a Web page

2.What is a Markup Language?
To describe how data should be displayed or Organized
A markup language is used to define the structure ,format,or presentation of data using tags

3.What is a hypertext in HTML?
"Hypertext" refers to links that connect web pages to one another, either within a single website or between websites.

4.Why do we use HTML5 instead of HTML?
HTML5 is the latest version of HTML and supports new markup language functionalities such as multimedia, new tags and elements as well as new APIs.
HTML5 also supports audio and video.
HTML does not provide native audio and video support.
HTML5 provides native audio and video support.

5.What happens when a browser loads this HTML file?
The browser reads the HTML from top to bottom, parses it into a DOM (Document Object Model), and then renders the content visually on the screen.

6.What is rendering in HTML?
In HTML,rendering is the process by which a web browser converts a webpage's code (HTML, CSS, and JavaScript) and other resources into the visual and interactive webpage that a user sees on their screen.
This process is managed by the browser's rendering engine

7.Why is <!DOCTYPE html> important in modern frontend development?
It tells the browser to use HTML5 standards.
Without it, the browser may render the page in quirks mode, causing layout and compatibility issues.

8.what is Quirks mode in HTML?
Quirks mode is a backward compatibility mode used by web browsers to render web pages that were designed for very old browsers
Example: Internet Explorer 5

9.What is semantic HTML and does this code use it?
Semantic HTML uses meaningful tags that describe content purpose (like <header>, <main>).
This code partially uses semantics with <h1>,but could be improved by adding more semantic elements

10.Difference between block-level and inline elements?
Block-level elements take up the full width and start on a new line(like h1 tag),
while inline elements only take up as much width as needed (like span tag).

Top comments (0)