Let's talk about fundamentals of HTML:-


HTML, which stands for HyperText Markup Language, is the standard markup language for creating and designing web pages. It is a cornerstone technology used to structure content on the web and is essential for creating static web pages and dynamic web applications. HTML provides a set of elements or tags that define the structure of a web document. Here are some key aspects of HTML:

HTML Documents Structure: An HTML document is structured using a combination of elements and tags. The basic structure of an HTML document includes:

Article content

  • <!DOCTYPE html>: Declares the HTML version being used.
  • <html>: The root element of an HTML page.
  • <head>: Contains meta-information about the document, such as the title.
  • <title>: Sets the title of the HTML document (displayed in the browser tab).
  • <body>: Contains the content of the HTML document.


HTML Elements: HTML documents are composed of elements, each represented by tags. Tags are enclosed in angle brackets (< >). Elements can be nested inside one another, creating a hierarchical structure. Examples of tags include:

  • <h1>, <h2>, ..., <h6>: Headings of different levels.
  • <p>: Paragraph.
  • <a>: Anchor or hyperlink.
  • <img>: Image.
  • <ul>, <ol>, <li>: Unordered list, ordered list, list item.
  • <div>: Division or container.
  • <span>: Inline container

Attributes: HTML elements can have attributes that provide additional information about the element. Attributes are always included in the opening tag and are written as name/value pairs. For example:

Article content

In these examples, href and src are attributes, providing the hyperlink destination and image source, respectively.

HTML Forms: HTML provides form elements for user input. Common form elements include <input>, <select>, <textarea>, and <button>. Forms are used for tasks like user authentication, data submission, and more.

Article content


HTML5: HTML5 is the latest version of HTML, introducing new elements and attributes to enhance web development. Some notable HTML5 features include <header>, <nav>, <article>, <section>, <footer>, and new form elements like <input type="date"> and <input type="email">.

Semantic HTML: Semantic HTML refers to using elements that carry meaning about the structure of the page, making it more accessible and readable for both developers and assistive technologies.

Article content

HTML Comments: Comments in HTML are written using <!-- --> and are not visible in the rendered page. They are used for adding notes or explanations within the code.

Article content

HTML Multimedia: HTML supports embedding multimedia content such as images, audio, and video.

Article content


To view or add a comment, sign in

Others also viewed

Explore topics