An introduction to the basics of HTML

An introduction to the basics of HTML

What is HTML?

HTML (Hypertext Markup Language) is a descriptive language for marking specific parts of the web page content (so-called markup language).

Who uses these content tags?

These content tags are used by browsers, because only when they “see” the corresponding html tag they know what type of content is in question (whether it is an image or text…) and what they should do with it (ie how and in what form to display that content).

HTML syntax

HTML uses special tags called tags to mark content, which are actually words wrapped in angle brackets <    >.
In order for the tag to be valid, only selected words must be used, because it is precisely those words that define what effect the tag will produce when it is “read” by the browser.  Most often, tags go in pairs, the so-called. “opening tag” and “closing tag” and between them goes the content they describe.
The initial tag looks like this:                   <nazivTaga>
and the final one has an extra slash:     </nazivTaga>

<h1>Ovo je primer "h1" taga unutar kojeg se stavalja glavni naslov</h1>

As we mentioned, tags usually have both an opening and a closing tag, but some tags do not have a closing tag, while other tags do not have an opening tag, such as the so-called “break” tag that breaks the text and moves it to the next line: <br>

Skeleton HTML page

Declaration of HTML

At the top of the file (page) there is always a mark that tells the browser that it is an HTML page: <!doctype html>

HTML element

After we have “explained” to the browser that it is an HTML page, a mark is placed that shows the boundaries within which the HTML code is written. Those limits are the initial <html>  and the final  </html> tag.

Head & Body

Everything that is placed is placed inside the <html> tag is divided into two parts, one part named <head>  inside which some information important to the browser is inserted (we will explain that later) and another <body> inside which everything that will actually be seen on the page is placed:

See the most commonly used HTML tags in the article titled “Basic HTML Tags”