HTML programming

16 May 2022

Online Marketing

HTML programming

What is HTML programming?

HTML stands for HyperText Markup Language and thus describes a computer language. However, HTML programming is not a true programming language, although it is often perceived as one.

HTML is essentially a scripting language that uses its own HTML documents to tell the calling program what should be where and how, and it is a MUST if you want to do professional work. Search Engine optimization want to do.

HTML was first developed in 1989 by Tim Berners-Lee, Robert Cailliau and others.

Or to put it another way, HTML is a markup language that is not programmed as such, but simply written.

The scripting language structures digital content, such as text, images, and hyperlinks in electronic documents.

HTML documents are the foundation of the World Wide Web and are displayed by a web browser.

HTML Programming Document

Furthermore, HTML contains additional information in the form of metadata.

Actually, instead of the HTML language, one could also use the PHP or use another one, but ultimately the website is an HTML page, because nothing works without HTML.

It's entirely possible that a website with great features is an HTML page, even though it was probably developed using PHP. This is because PHP and other languages ​​are translated into HTML.

However, HTML has a major advantage over other programming languages ​​because it also works locally.

While the other programming languages ​​PHP, JSPWhile ASP & Co. are translated on the server and therefore require an internet connection, HTML websites are displayed even without internet access.

Furthermore, HTML is translated directly in the program, i.e., in the browser such as Internet Explorer, Safari, Firefox, Opera, etc., in order to navigate the internet and to view HTML files.

How HTML programming works

Since HTML is a scripting language and not a programming language, it only specifies information relating to its descriptive text markup.

Therefore, procedural and presentational text markup is excluded.

Therefore, the transmission of exactly how a text document is displayed in a browser is not based on the HTML document itself. Instead, the browser reads the instructions from the HTML document regarding the mapping of a word and displays it accordingly.

HTML provides only the information on how to understand it.

How the browser displays this information is up to it. This process is called "parsing" (information processing) and "rendering" (information processing).

The information stored in an HTML document refers to the markup of the text, i.e., the basic formatting.

Information is stored, for example, about which part of the text is the heading, or where a line break is inserted.

The font type or size that the browser then displays is not specified in the HTML document.

Structure of an HTML document

Every HTML document can be divided into three essential components:

  1. Document Type Declaration (DTD)

The DTD, such as the HTML version, is noted right at the beginning of the document.

  1. Head

The information stored in the head section is not usually displayed by a browser. It contains data on technical and documentation settings.

Head Example

Most browsers display this information on the title page.

Furthermore, as already mentioned, metadata can be stored, such as the author or a summary of the text.

In contrast, the so-called base contains data about the framework, or the general formatting of the page. Links in the head of HTML documents define the logical relationship to other resources.

A script is embedded so that the document can be displayed correctly in a browser in conjunction with a scripting language, such as JavaScript.

Furthermore, a connection to a stylesheet is also established. One of the stylesheet languages ​​is Cascading Style Sheet (CSS). Style information, such as color schemes, can be defined here. Finally, other external files can also be included using the Object property.

  1. Bodysuit

This part of the HTML document contains the information (texts) that are displayed by browsers to users.

Body example

Information such as headings, paragraphs, and links can be embedded in the entered text to format it.

With HTML it is also possible to have the text content read aloud or to have it displayed in Braille.

What are tags and attributes?

Tags and attributes are the foundation of HTML.

They work together, but fulfill different functions – it's worth investing 2 minutes to distinguish between the two.

What are HTML tags?

You can use tags to mark the beginning of an HTML element. They are usually enclosed in angle brackets.

An example of a day is: .

Most days must be open and closed will be, so that they function.

What are HTML attributes?

Attributes contain additional information. Attributes take the form of an opening tag, and additional information is placed within it.

An example of an attribute is:

In this case, the Image source (src) and the Alt text (alt) attributes des -Tags.

The most important rules for HTML programming

The vast majority of tags must be open () and closed () where the element information, such as title or text, is placed between the tags.

When using multiple tags, you must close them in the order you opened them. For example:

This is really important!

The latest version: HTML5

The latest version, HTML5, was released in 2014 (here (You can learn HTML for free).

The goals of HTML5 are to further ensure compatibility, especially with regard to existing content.

This means that the newly added elements of the scripting language must not negatively affect old content.

Furthermore, usability for authors and browser manufacturers should be made easier.

New features were added to solve existing problems without deleting existing and functional features.

Security aspects were also taken into account during the development of the new features.

To improve consistency, parts can now also be made from XML applied in XHTML.

To increase interoperability, a precise definition of the behavior was established.

This simplification and the universality that allows its use on all devices and in all world languages ​​have enabled the functions of HTML5 to contribute to improvements.

This also includes the accessibility of content and functions, which should be guaranteed.

Conclusion

HTML is a scripting language that tells the calling program, in its own HTML documents, what should be where and how.

Similar articles:

Request free SEO consultation

Enter your details and we will contact you 📅

    Increase your traffic!

    Analyze your website now ➜

    Switzerland Flag