The fundamentals of HTML

HTML is not a single word, in oppose to what many people think, HTML stands for HyperText Markup Language, and from the fact the language’s name is not a single word (like, for example: JAVA, Python and so on) we can understand that this time, something is different.

And yes, something is different, HTML is a language, but, it’s not a software language or a programming language, compared to the other, more familiar languages we heard about.

The HTML is a tag-based language, and if functions mainly to create and EDIT web-pages, we can’t write a program or an app based on it, but, we will use it to edit pages and websites as we see fit.

Web browsers receive HTML documents from a web-server or from local storage (usually using FTP) and render the documents into multimedia web pages.

HTML describes the structure of a web page semantically and originally included cues for the appearance of the document, in English please? we make a mess – HTML is organizing it.

HTML code and the “Final product” side by side

From the example given, we can already see the basic structure of a web-page written in HTML.

We have total of 6 HTML versions including XHTML which who inherit many rules and regulations similar to HTML but still, has some differences.

The newest version of HTML is called HTML5 which was first published in 22 of January 2008, but was later been improved over the years like the previous versions.

In order to declare that the given document will be in HTML5 format we will add the line <!DOCTYPE html> at the beginning of the code.

As seen, the HTML language consists of Tags, each tag defines the “job” a certain part of the code will execute, some tags require a closing-tag that defines that everything between the opening tag to the closing one will be defined as par of the given tag, let’s have a look at the main tags:

  • <!DOCTYPE> – this is a tag that must be written at the start of every HTML code to define it’s type.
  • <html> – represents the root of an HTML document, contains all other tags (except <!DOCTYPE>) and has a closing tag at the end of the document we usually define a language as an attribute this way :

<html lang=”en”> , by doing so we defined that the text inside the document will be written in English.

  • <head> – contains important details regarding the page.
  • <body> – contains everything that will be visible inside the page.

What so special about the HTML is that we can add other languages to it’s code and use them.

Such languages are CSS and JavaScript, we will talk about them later.

If HTML revolves around editing, can someone use it to his own good?

Well, YES! if we edit those page and add rules other codes using CSS and JavaScript, what stops the attacker from taking advantage of those facts and “adding” lines of his own? (like in Injection Attacks)

That’s where we step in, using the Kayran platform will help your tired developers to better analyze and understand what they’re doing wrong or forgetting when writing using HTML, preventing from attackers to “Break Tags” and so on.

Stay safe, choose Kayran.

The Cloud

I’m pretty sure there isn’t a single adult in the world who hasn’t at least heard of The Cloud. Explaining “The Cloud” in 2022 may

Read More »

Explaining API

We’ve talked about API’s Vulnerability in here, but i feel like there’s much more to talk about and explain since this is a big and

Read More »