Introduction to HTML

HTML is the acronym of Hyper Text Markup Language. HTML is a standard markup language, using which we can build web sites or several web applications. However, This language is straightforward to learn and understand the programming language. HTML can describe the structure of a webpage, as it consists of a series of elements, and such features command the browser on how to display any content. 

<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>

<h1>My First Heading</h1>
<p>My first paragraph.</p>

</body>
</html>

Here are some basic HTML tags that are always used. However, we will learn about these tags separately. But this code here will provide an output with title, heading, and name. To try it yourself, copy the given code and click here.

Every HTML element is written under tags. Such tags start with a tag name between greater and smaller than signs (like: <tagname>) and end with a similar title by adding a backslash before the tag name (like: </tagname>). However, also consider tags as the essential part of an HTML program as if the programmer opens a title and forgets to close such tag, it can pop an error and result in a blank output.

Any browser reads the tags and determines how to display content on the web coded in a document file. However, a browser never shows the code itself. It only takes the codes’ help to determine what to display on the page. Still, if something like that happens, then there must be some errors in the code.

Nowadays, there are several code editors available. However, we can write the HTML code using any text editors, as what matters is the file extension, which needs to be “.html”. Steps to writing such code with Notepad:

  1. Open Notepad.
  2. Write the above code.
  3. Click on ‘File’ on the menu.
  4. There choose the ‘Save as’ option.
  5. In the file name area, write “index.html”.
  6. In Save as type, click on the slider menu and choose “All Files (*.*)”.
  7. Set the encoding option below to “UTF-8”.
  8. “Save”
  9. Now to the folder where you have saved the file.
  10. Right-click on the file.
  11. Choose “open with”.
  12. And select any browser.

That is it, and now you will be displayed with the content that you have coded. Though this much simple is the language, the central part is your creativity and how you will design your content by coding. However, there are several more things available, which we will cover one by one. And if you also want to learn about such kinds of stuff, then stay connected with the community of AhteVirus

Drop your perspective

Your email address will not be published. Required fields are marked *