You may have listened about the term HTML, but what does HTML really mean? HTML is an acronym for Hyper Text Markup Language. Markup languages are different from programming languages. While programming languages are useful for modifying data, markup languages are used to determine how an element will appear on a web page.
HTML is a simple text based structure that even beginners can easily learn and understand. Here is an example:
<html> <head> <title>Web Page Title</title> </head> <body> <h1>Hello World!</h1> <p>Welcome to Remote State Blog :)</p> </body> </html>
How does HTML work?
HTML is usually kept in files that use the .htm or .html extension. A web page can consist of hundreds or even thousands of these HTML files which are stored in different folders. When you visit a website, The server sends its HTML files to your browser.
What is HTML used for?
Now that you understand HTML tags and elements, and the updates introduced by HTML5, let's take a closer look at what you can do with this language.
Structure website: You can use tags and elements to define web page headings, paragraphs, and other content. The browser has a built-in style sheet that visually distinguishes these elements. The content enclosed in tags is in a large, bold font with its own lines. Text enclosed in tags will be bold and slightly smaller than the element. Without these tags, all the text on a web page looks the same.
Internet surfing Without HTML: Navigating the web would be much more difficult. Imagine you have to manually enter the URL of each web page you want to access. This is the reality without anchor tags. HTML anchor tags allow you to link pages using the href attribute. Here is an example:
As you can imagine, the code snippet above creates a hyperlink to Google. You can also use hyperlinks to link to specific sections of a web page.
Embed images and videos: You can not only embed an image in a web page, but also customize the width, height, position, and even rendering method of the image. Previously, developers used Flash to embed video in web pages. But, with HTML5's addition of tag it's no longer needed.
In addition to embedding video, you can use other HTML attributes to customize video controls, timestamps, thumbnails, autoplay, and more.
In addition, the application cache and cache manifest files, which can be referenced from HTML, allow users to browse websites offline by storing data on their computers. This allows the web app to continue to work even if the user is disconnected.
Interaction with native API: Another feature of HTML is that it can interact with the operating system as well as the web browser. With these features, you can drag files to web pages to upload or view videos in full screen.
What profession is using HTML?
Even if other languages in the tech stack generate HTML, you need to understand the HTML structure to do everything smoothly. Also, use HTML outside the Internet, such as intranets and internal applications. Therefore, even if you are programming for offline purposes, you still need to learn HTML. Some marketers use it for blogging and email, which can be beneficial to non-technical teams as well.
Happy Learning!! :)