HTML Introduction

HTML Basic Syntax

HTML Block Element

HTML Formatting

HTML Quotation

HTML Links

HTML List

HTML Table

HTML Audio

HTML Video

HTML Image

HTML Iframe

HTML Favicon

HTML Form

HTML Input Types

HTML Marquee

HTML Meta tag

Learn CSS

Learn Javascript

Learn Django

HTML syntax

How to create a html file?

Here we will use notepad as text editor. You can use any. Open notepad and then create a file. Now save that file. While saving after the file name write '.html'. It means the file extension should be html.
Example:
my-html.html

It is better to practice writing the HTML file name in lower case and not use space between two words. You can use hyphen in the position of space.

How to write html code?

Step 1:

Open code editor and create a html page.

Step 2:

<!DOCTYPE html>
<html>
<head>
<title> Tutorial HTML </title>
</head>
<body>

<h2>First Heading </h2>
<p>first paragraph.</p>

</body>
</html>

We can see a basic HTML document here. Must write all these before starting HTML code. In the head section, write the HTML title name which will be displayed at the top of the browser tab. Write the title in the title tag written in the head section. In the example code, the title is Tutorial HTML. In the head section, we can also write js code, CSS code or links of files, etc. In the body section, we will write all the things that we want to display on the web page. In the example code, we just wrote one heading and one paragraph inside the body tag. It means when the HTML file will run, we will see these two texts(heading and paragraph) on the web page.

How to run html file?

To run a HTML file at first go to that location where you save your HTML file on your computer. Now double click on the HTML. By doing this your HTML file will open on the default browser. If you want to open it with another the browser then just do right click on the HTML file and go to open with option and click on a browser(installed on your computer) which you want to use.

How to write html tags?

We write html code inside tags. Every tag has a opening tag and closing tag except some special tags. Sign of tag is angle bracket < >. In the bracket write tag name '< tag name>. Every tag has a opening and closing tag. For opening tag use angle brackets and inside angle bracket write tag name and for ending tag also use angle bracket and inside the bracket at first use forward slash and then write tag name.
For example: <tag name> </ tag name>.
There are a lot of tags are available in html and every tag has it's own work. It means each tag is used for different work and every tag has different name so that we can use them. What we want to display in our website that we write inside of an opening and closing tag.
For Example:
<h3> This is a heading </h3>

CodersAim is created for learning and training a self learner to become a professional from beginner. While using CodersAim, you agree to have read and accepted our terms of use, privacy policy, Contact Us

© Copyright All rights reserved www.CodersAim.com. Developed by CodersAim.