Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sookwalinga/alx_html_css


https://github.com/sookwalinga/alx_html_css

Last synced: 2 days ago
JSON representation

Awesome Lists containing this project

README

        

# HTML

## What is HTML?

HTML is a standard markup language used for creating and structuring web pages. It provides a set of tags and elements that define the structure and content of a webpage.

## How to create an HTML page?

To create an HTML page, you start by writing the HTML code using a text editor. The code includes tags and elements to define the structure, headings, paragraphs, links, images, and other content of the page. Save the file with a ".html" extension and open it in a web browser to view the rendered webpage.

## What is a markup language?

A markup language is a system of annotating text or data to provide structure and instructions to a software application. HTML is an example of a markup language used for structuring web content.

## What is the DOM?

The DOM is a programming interface for HTML and XML documents. It represents the structure of a webpage as a tree-like structure of objects, where each element, attribute, and text node can be accessed and manipulated using scripting languages like JavaScript.

## What is an element / tag?

An HTML element, also known as a tag, represents a specific part of a webpage's content. It is enclosed within angle brackets (< >) and typically has an opening tag () and a closing tag (). Elements define the structure and semantics of the content, such as headings (

,

), paragraphs (


), links (), and images ().

## What is an attribute?

An attribute provides additional information about an HTML element. It is specified within the opening tag of an element and consists of a name and a value. Attributes modify or enhance the behavior, appearance, or functionality of an element. For example, the "src" attribute in the tag specifies the image source URL.

## How does the browser load a webpage?

When a browser loads a webpage, it follows a process known as rendering. First, it sends a request to the server for the webpage's resources (HTML, CSS, JavaScript, images, etc.). Once received, the browser parses the HTML code to create the DOM tree. It then fetches and processes external resources like CSS and JavaScript. Finally, the browser renders and displays the webpage based on the instructions provided by the HTML, CSS, and JavaScript code.