Wednesday, September 16, 2020

learning html #create web pages

Why Learn HTML?

HTML is the foundation of all web pages. Without HTML, you wouldn’t be able to organize text or add images or videos to your web pages. HTML is the beginning of everything you need to know to create engaging web pages!

What is HTML??


HTML is a computer language devised to allow website creation. These websites can then be viewed by anyone else connected to the Internet. It is relatively easy to learn, with the basics being accessible to most people in one sitting; and quite powerful in what it allows you to create. It is constantly undergoing revision and evolution to meet the demands and requirements of the growing Internet audience under the direction of the organisation charged with designing and maintaining the language.

The definition of HTML is HyperText Markup Language.

Creating Your First HTML Document

Let's walk through the following steps. At the end of this tutorial, you will have made an HTML file that displays "Hello world" message in your web browser.

Step 1: Creating the HTML file

Open up your computer's plain text editor and create a new file.

Step 2: Type some HTML code

Start with an empty window and type the following code:

Example

<!DOCTYPE html>
<html lang="English">
<head><script data-ad-client="ca-pub-2230537665912326" async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
    <title>A simple HTML document</title>
</head>
<body>
    <p>hellow html</p>
</body></html>


 

Step 3: Saving the file


Now save the file on your desktop as "myfirstpage.html ".

          To open the file in a browser. Navigate to your file then double click on it. It will open in your default Web browser. If it does not, open your browser and drag the file to it.


Explanation of code

  • The first line <!DOCTYPE html> is the document type declaration. It instructs the web browser that this document is an HTML5 document. It is case-insensitive.
  • The <head> element is a container for the tags that provides information about the document, for example, <title> tag defines the title of the document.
  • The <body> element contains the document's actual content (paragraphs, links, images, tables, and so on) that is rendered in the web browser and displayed to the user.

You might think what that code was all about. Well, let's find out.

You will learn about the different HTML elements in detail in the upcoming chapters. For now, just focus on the basic structure of the HTML document.





3 comments:

  1. Ur explanation is vry easy nd comfortable to learn about HTML

    ReplyDelete
  2. Superbbb ... N gud idea.... Km s km kuch ko yha s gyan prapt hojayega I like it....🥰🥰🥰🥰

    ReplyDelete