Introduction

HTML stands for HyperText Markup Language and is the standard markup language for documents designed to be displayed in a web browser. It is often assisted by other programming languages such as Cascading Style Sheets (CSS) and JavaScript.

HTML elements are the building blocks of HTML pages. With HTML constructs, images and other objects such as interactive forms may be embedded into the rendered page. HTML provides a means to create structured documents by denoting structural semantics for text such as headings, paragraphs, lists, links, quotes, and other items.

HTML

HTML elements are delineated by tags, written using angle brackets. Directly introduce content into the page. Other tags provide information about document text and may include sub-element tags. Browsers do not display the HTML tags but use them to interpret the content of the page.

Exampel of a simple HTML Document:

<!DOCTYPE html> <html> <head> <title>Enter Title Here</title> </head> <body> <h1>First Heading Here></h1> <h1>First Paragraph Here></p1> </body> </html>
CSS

CSS (Cascading Style Sheets) is used to style and visually enhance the content of HTML documents. CSS rules are applied to HTML elements to define their appearance, layout, and presentation on the web page. These rules consist of selectors, which target specific HTML elements, and declarations, which define the style properties to be applied.

Selectors in CSS identify which elements the styles should be applied to. They can target elements based on their tag names, classes, IDs, attributes, or their relationship with other elements.

The style properties within CSS declarations specify how the selected elements should be styled. These properties include attributes like color, font-size, margin, padding, border, background-color, etc. Each property can have a corresponding value that determines its appearance.

Example of a simple external styles.css Code:


            body {
                background-color: powderblue;
            }
            h1 {
                color: blue;
            }
            p {
                color: red;
            }
            
Hello World

A “Hello, world!” program is traditionally used to introduce novice programmers to a programming language. “Hello, world!” is also traditionally used in a sanity test to make sure that a computer language is correctly installed, and that the operator understands how to use it.

Comments & Documentation

It is important to document all type of code. With a simple <!--Comment here--> in your HTML code adds a comment that are visiable to the programmer but the program doesn't run the code.

Reasons why comments and documentation are important and useful: