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
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.
Step 1:
Open code editor and create a html page.
Step 2:
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.
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.
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>