HTML of Internet Programming
HTML(Hypertext Markup Language ) is a markup language which is a unique kind of computer language that created to define the content. In addition, HTML of Internet Programming is used to create structure of web pages or documents.
HTML allows you to create content that displays correctly on the vast array of devices connected to the Internet, such as smartphones, tablets, laptops, desktops, and specialized devices like large screens etc.
HTML of Internet Programming is currently released the latest version of HTML 5.2 since 2017.
HTML 5.2 version is introducing a new feature for improvement and refinements to the HTML5 specification, including new elements and attributes, enhancements to existing APIs, and removal of deprecated features and also focused on making the web more accessible, interoperable, and capable of supporting modern web applications. Let see the example below, I will show to create the first HTML.
How to create the first HTML?
It is very simple for create HTML code , you can use any text editor like Notepad (Windows), TextEdit (Mac), or more advanced editors like Visual Studio Code, or the other tools which are now very plenty choose.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>My First HTML Page</title>
</head>
<body>
<h1>Hello, My first html Page!</h1>
</body>
</html>
Code Explanation
<!DOCTYPE html>
: Declares the document type and version of HTML.
<html lang="en">
: The root element of the HTML document, with the language set to English.
<head>
: Contains meta-information about the HTML document (such as title and character set).
<meta charset="UTF-8">
: Sets the character encoding for the document to UTF-8.<meta name="viewport" content="width=device-width, initial-scale=1.0">
: Ensures the webpage is responsive on different devices.<title>My First HTML Page</title>
: Sets the title of the HTML document, which appears in the browser tab.
<body>
: Contains the content of the HTML document.
<h1>Hello, World!</h1>
: A level 1 heading displaying “Hello, World!”.<p>This is my first HTML page.</p>
: A paragraph displaying “This is my first HTML page.”
Saving file as index.html
After you have written code as above , you have to save it as file name index.html. After that, you should open with any browser such Firefox, Chrome , Safari , Microsoft Edge and so on. Then, You should see the content rendered as specified in the HTML file.