How to Begin with HTML?

Answered

I want to learn HTML, can anyone here guide how to begin with HTML?

Add Comment
1 Answer(s)
Best answer

How to Write an HTML Page

Html Introduction:-

HTML (Hyper Text Markup Language) is a basic language for developing web-pages. It was created to be an easy and flexible coding language. HTML is easy to learn, if you are interested in its complete functions you can keep learning our more articles. You can learn basic CSS as soon as possible with a basic HTML page, if you add color and interest to your web page.

Setting up a document for Html page:-

1. Open a simple text editor:   Notepad or Notepad++ is a good option that can be downloaded for free. You can write HTML with most text editing software, but that text editing software is more complex with automatic formatting can make it harder to organize your html page and not recommended for beginners.

2. Save a file as a web page:    Select        File => Save As    in the top menu. Change the file format to “Web Page,” by extension “.html” or “.htm”. Save it in a location where you can easily find the file.

3. Open the file in a web browser:     Double click the saved file, and it should automatically open as a blank web page in your browser.

4. Refresh the web page to see saved changes:     Type this into your blank document: <strong>My First web page</strong>. Save the document. Refresh the blank web page in your browser, and you should see the word “Hello” appear at the top of the page in bold.


5. Understand tags:
HTML instructions are written in “tags” that tell the browser how to interpret and display your web page. They are always written between angle brackets like these <>, and are not displayed on the web page. You’ve already used them in the example above:

    • <strong> is “start tag” or “opening tag”. Anything written after this tag will be defined as “strong text” (bold).

 

    • </strong> is “end tag” or “closing tag”, which you can identify from the “/” symbol. This shows where the strong text stops. Most tags (though not all) need an end tag to function, so remember to include it.

 

6. Set up your document with basic structure: Delete everything in your HTML document. Begin again with the following text, exactly as written in first point:

<! DOCTYPE html>
<html>
<head>
<title>My First Page</title>
</head>
<body>
Some Code Here
</body>
</html>

 

 

    • <! DOCTYPE html>, It is an instruction to the web browser about what version of HTML the page is written in.

 

    • <html> tags are the hidden keywords within a web page that define how the browser must format and display the content.

 

HTML documents are divided into two sections. The “head” section is for special information, like the title of the page. The “body” section                                 includes the main content of the page.

    • <head> tag is a container for metadata (data about data). Metadata is not displayed. Metadata typically define document title, styles, links, scripts, and other Meta information. The following tags describe metadata: <title>, <style>, <meta>, <link>, <script>, and <base>.

 

    • <body> tag is the main content area of an HTML document. You must use this element and it should be used just once. It should start immediately after the closing head tag and end directly before the closing html tag.

 

umar Answered on August 15, 2017.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.