HTML ( HyperText Markup Language )
HTML, or HyperText Markup Language, is the standard markup language for documents designed to be displayed in a web browser. It can be assisted by technologies such as Cascading Style Sheets (CSS) and scripting languages such as JavaScript.
Syntax
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content=
"width=device-width, initial-scale=1.0">
<title>Pure HTML Example</title>
</head>
<body>
<div>
<!-- Code -->
</div>
</body>
</html>
Features of HTML
- Semantics: HTML provides semantic tags like
<header>
,<nav>
,<footer>
, etc., which convey the meaning and structure of the content to both developers and browsers. - Forms: HTML provides form elements and attributes for collecting user input, including text inputs, checkboxes, radio buttons, and more, with built-in validation features.
- Multimedia Support: HTML supports embedding multimedia content like images, audio, and video, enabling rich media experiences within web pages.
Example: Illustration of code example of HTML.
HTML
<!DOCTYPE html> < html lang = "en" > < head > < meta charset = "UTF-8" > < meta name = "viewport" content = "width=device-width, initial-scale=1.0" > < title >Pure HTML Example</ title > </ head > < body > < div > < h1 >Hello, HTML!</ h1 > < p >This is a pure HTML page.</ p > </ div > </ body > </ html > |
Output:
How does JSX differ from HTML ?
JSX, a syntax extension for JavaScript, allows the creation of user interfaces similar to HTML but within JavaScript. Unlike HTML, JSX enables the embedding of JavaScript expressions and facilitates the creation of reusable components, promoting a more dynamic and efficient approach to web development.