Web Designing Training in Chandigarh

Web Designing Training in Chandigarh

Web Designing Training in Chandigarh

Creating a Basic HTML Web Page: A Beginner’s Guide to Web Designing


Web Designing Training in Chandigarh, Web designing is a fascinating field that empowers individuals to bring their creative ideas to life on the internet. At the heart of web design lies HTML (Hypertext Markup Language), the standard markup language for creating web pages. In this article, we will provide a step-by-step guide for beginners on how to create a basic HTML web page, enabling you to embark on your web design journey.

Understanding HTML:

HTML is the backbone of web pages. It is a markup language that structures content on the internet. HTML uses tags to define and describe the various elements on a web page, such as text, images, links, and more. To create a basic HTML web page, you need a text editor (like Notepad on Windows or TextEdit on macOS) and a web browser.

Step 1: Setting Up Your Work Environment:

Before you start creating your web page, it’s essential to set up your work environment:

  1. Choose a Text Editor: Use a simple text editor to write your HTML code. Avoid word processors like Microsoft Word, as they may add formatting that’s not compatible with HTML.
  2. Create a Folder: Organize your project by creating a dedicated folder for your web page. This folder will contain all the files related to your project.
  3. Name Your Files: Save your HTML file with an “.html” extension, such as “index.html,” which is a common name for the homepage of a website.

Step 2: Writing the Basic Structure:

Every HTML document begins with a basic structure called the Document Type Declaration (DOCTYPE) and consists of two main sections: the head and the body. Here’s what the initial structure looks like:

htmlCopy code

<!DOCTYPE html> <html> <head> <title>Your Page Title</title> </head> <body> <!-- Your content goes here --> </body> </html>

  • <!DOCTYPE html>: This declaration tells the browser that your document is written in HTML5, the latest version of HTML.
  • <html>: The root element that encloses all content on the web page.
  • <head>: Contains meta-information about the document, such as the title, character set, and linked stylesheets.
  • <title>: Specifies the title of your web page, which appears in the browser’s title bar or tab.
  • <body>: Contains the visible content of your web page.

Step 3: Adding Content:

Now, let’s start adding content to your web page within the <body> element. HTML uses various tags to structure content. Here are some commonly used tags:

  • <h1>, <h2>, <h3>, <h4>, <h5>, <h6>: Headings, where <h1> is the largest and <h6> is the smallest.
  • <p>: Paragraphs of text.
  • <a>: Hyperlinks. For example, <a href="https://www.example.com">Visit Example.com</a> creates a link to Example.com.
  • <img>: Images. Use the src attribute to specify the image source, like <img src="image.jpg" alt="Description">.
  • <ul> and <ol>: Unordered (bulleted) and ordered (numbered) lists, respectively.
  • <li>: List items within <ul> and <ol>.

Here’s an example of a basic HTML page with some content:

htmlCopy code

<!DOCTYPE html> <html> <head> <title>My First Web Page</title> </head> <body> <h1>Welcome to My Web Page</h1> <p>This is a simple web page created using HTML.</p> <h2>Links</h2> <ul> <li><a href="https://www.example.com">Visit Example.com</a></li> <li><a href="https://www.google.com">Go to Google</a></li> </ul> <h2>Image</h2> <img src="sample.jpg" alt="A beautiful image"> </body> </html>

Step 4: Viewing Your Web Page:

To view your web page, open your web browser and go to “File” > “Open File” (or press Ctrl+O or Cmd+O) to open the HTML file you’ve created. Alternatively, you can simply drag and drop the HTML file into your browser’s window.

Your browser will render the HTML content, displaying your web page as you designed it.

Step 5: Saving and Updating:

Whenever you make changes to your HTML code, remember to save the file. After saving, simply refresh your browser to see the updated version of your web page.

Step 6: Styling Your Web Page (Optional):

While HTML is responsible for structuring content, CSS (Cascading Style Sheets) is used for styling and layout. You can either write CSS within a <style> tag in the HTML document or link to an external CSS file using the <link> tag in the <head> section.

Example of inline CSS within the HTML document:

htmlCopy code

<head> <style> h1 { color: blue; } p { font-size: 18px; } </style> </head>

Example of linking to an external CSS file:

htmlCopy code

<head> <link rel="stylesheet" type="text/css" href="styles.css"> </head>

In an external CSS file (e.g., “styles.css”), you can define styles for various HTML elements.

Step 7: Adding JavaScript (Optional):

JavaScript is used to add interactivity and dynamic behavior to web pages. You can include JavaScript code within <script> tags in your HTML document or link to external JavaScript files.

Example of inline JavaScript within the HTML document:

htmlCopy code

<body> <button onclick="alert('Hello, World!')">Click me</button> </body>

Example of linking to an external JavaScript file:

htmlCopy code

<head> <script src="script.js"></script> </head>

In an external JavaScript file (e.g., “script.js”), you can write functions and scripts to enhance your web page’s functionality.


In Conclusion, Web Designing Course in Chandigarh, Creating a basic HTML web page is a foundational step in web design. By following these steps and understanding HTML’s structure and elements, you can start building and designing web pages of your own. As you become more proficient, you can explore advanced topics like CSS for styling and JavaScript for interactivity, paving the way for a rewarding journey in the world of web designing. Remember that practice is key, so don’t hesitate to experiment and refine your skills as you create more web pages.

About The Author

Post Comment