Category: 1. HTML Basics

  • HTML Computer Code Elements

    The computer has a special formatting and text style for displaying the messages that are connected to codes. There exist different computer code elements in HTML. The HTML <code> tag The HTML <code> tag inserts fragments of a program code, variables, etc. into an HTML document. In the browser, the code is displayed in a monospaced font of…

  • HTML File Paths

    A file path defines the location of a file in a web site’s folder structure. A file path is used when we link to such external files like: web pages images JavaScripts style sheets There exist absolute and relative file paths. Absolute File Paths An absolute file path is the URL to access an internet file. Example…

  • HTML Styles – CSS

    CSS is used to style HTML. It determines how the HTML elements appear on the screen, paper, or in other media. CSS saves a lot of work. It can control the layout of several pages all at once. You can add CSS to HTML elements in 3 ways: Inline, where the style attribute is used in HTML elements. Internal, where the <style> element…

  • HTML Scripts

    A script is a small piece of a program embedded in web pages to make them dynamic and interactive. For example, with scripts, you can create a pop-up box message, a dropdown menu, etc. JavaScript is the most common scripting language used on websites. You can also use the <script> element with other languages (e.g. WebGL’s GLSl…

  • HTML Block and Inline Elements

    HTML is composed of different elements that create blocks of web pages. These elements are divided into “block-level” elements and “inline” elements. It is possible to change an element from block to inline or vice versa using the CSS display property. Block-level Elements A block-level element is an HTML element that starts on a new line and…

  • HTML Tables

    In HTML, you can create tables for your website using the <table> tag in conjunction with the <tr>, <td> and <th> tags. The HTML tables allow displaying the data (e.g. image, text, link) in columns and rows of cells. Table rows can be grouped into a head, foot, and body sections through the <thead>, <tfoot> and <tbody> elements, respectively. In HTML5, we can place <tfoot> either before…

  • HTML Comments

    The HTML comments are used to indicate sections of a document or insert notes explaining the code. They help understand the code and increase its readability. The comment tag can also be used for excluding temporary code blocks instead of deleting them. For defining HTML comments we use the <!– … –> tag. Browsers ignore this tag…

  • HTML Colors

    There are three ways of how you can change the color of the text in HTML: using Hex color codes, HTML color names or RGB values. Hex Color Codes A hex color code is a hex triplet, which represents three separate values defining the levels of the component colors. It is specified with a hexadecimal…

  • HTML Lists

    In HTML, there are three types of lists: unordered, ordered and description lists. Each of them is defined using different tags. Let’s have a look. HTML Unordered Lists We use unordered lists to group items having no numerical order. When changing the order of list items, the meaning will not change. To create an unordered…

  • HTML Links

    Websites contain different types of links that take you directly to other pages or allow to navigate to a particular part of the page. The links in HTML are called hyperlinks. They are defined using the <a> tag. Hyperlinks are applied to a phrase, a word, an image or any HTML element. The default color of links in HTML…