Main menu

Pages

HTML (Hypertext Markup Language) is the standard markup language used to create web pages. It provides a way for web developers to structure content on a webpage using tags and attributes.

HTML documents are made up of HTML elements, which are defined by tags. Tags are enclosed in angle brackets (<>) and usually come in pairs, with the opening tag at the beginning and the closing tag at the end. Elements can also have attributes, which provide additional information about the element and are specified within the opening tag.

For example, a simple HTML document might look like this:

<!DOCTYPE html> <html> <head> <title>My Webpage</title> </head> <body> <h1>Welcome to My Webpage</h1> <p>This is a paragraph of text.</p> <ul> <li>Item 1</li> <li>Item 2</li> <li>Item 3</li> </ul> </body> </html>

In this example, the <!DOCTYPE html> declaration at the beginning specifies the docum type as HTML5. The <html> element contains the entire document, while the <head> element contains metadata about the document, such as the title. The <body> element contains the main content of the document, including a heading (<h1>) and a paragraph (<p>). Tenthe <ul> element is an unordered list, which contains three list items (<li>).


Comments