Deekshith's TOP Dashboard - HTML

Introduction

Now, HTML is the core code for all the content displayed on webpages. As Im learning.. I came to know that the pages we browse may or may not be standalone html files.

Programs are now generating HTML files in realtime and sending them to the user's browser where users can access the content on the webpage.

Here I'm logging some of the basic fundamentals of HTML. And yes this is only fundamental knowledge. There's something known as Semantic HTML where you add tags which make the content machine readable with context. In simple words, this makes the content on the page to render properly in screen readers. Basically accessibility tools can access the content more efficiently.

As far as Im aware, you should mandatorily use semantics on any kind of website you might build. It not only adds to the semantics but also arranges content systematically so that you can go back and edit stuff easily.

HTML

Here's how text is handled in HTML

Using the paragraph tag <p> makes life easy while the other tags like <h1> through <h6> are used for headings and structure.

Textarea tag is used to create a multi-line text input field. It's code is <textarea></textarea>

This code generates something like this.

Lists

speaking about lists, lets add the list of the HTML curriculum from TOP to demonstrate how to use lists

Damn! I need to acknowledge the ease of coding in VS Code with its auto complete feature.

Here is the list of HTML curriculum from TOP:

  1. Introduction to HTML and CSS
  2. Elements and Tags
  3. HTML Boilerplate (the name is kinda funny)
  4. Working with text
  5. Lists
  6. Links and Images
  7. Commit Messages
  8. Project: Recipies (I am making a learning journal)

This is what's called an ordered list. It is ordered list because it signifies the most effective order of completing the curriculum.

If I were to randomly learn the curriculum, I would miss important foundational concepts. The learning curve would rather be steeper and less efficient.

Images

Now lets add an Image to our website

To add an image, we use the <img> tag. The img tag is a self closing tag and it doesn't have a closing tag like </img>. The img tag uses attributes like src and alt to define the source of the image and the alternative text respectively.

The src attribute is used to specify the path to the image file. It's similar to href attribute in an anchor tag <a href="...">. It can be an absolute path or a relative path. The alt attribute is used to provide alternative text for the image in case the image cannot be displayed.

Here is an example of an image tag:

VD logo

Assignments

As part of HTML assignment, I made the following recipe pages:

Go to top