0% found this document useful (0 votes)
71 views1 page

HTML Basics for Beginners

To create an HTML file, open a text editor and use tags within angular brackets to structure the document with a head and body. The head contains a title tag and the body holds content like paragraphs and headings. HTML files are saved with a .html or .htm extension so browsers recognize it as a webpage.

Uploaded by

Anuj Kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
71 views1 page

HTML Basics for Beginners

To create an HTML file, open a text editor and use tags within angular brackets to structure the document with a head and body. The head contains a title tag and the body holds content like paragraphs and headings. HTML files are saved with a .html or .htm extension so browsers recognize it as a webpage.

Uploaded by

Anuj Kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Creating a HTML File

To create a HTML file, you need to open a text editor, like Notepad. Tags are described within
angular brackets and are closed with a / symbol.
Every HTML Document begins with a HTML tag i.e. <html> and ends with the same i.e. </html>
note that HTML is not a case sensitive language so <HTML> and <html> would have the same
effect.
Then comes the <head> tag. It encloses the <title> tag, which describes the name of the HTML
document that we want to display on the top of the tab of the browser.
Syntax - <title>Your Site Title</title>

After closing the head tag, start the body tag. It contains the Content of the main document.

To display text, we use paragraph tag.


Syntax - <p>This is my first webpage</p>

Heading tags are used to give headings. There are 6 heading sizes 1 to 6. If we use 7
heading size, the text would display as size 6 heading.
Syntax - <h1>Heading 1</h1>
<h3>Heading 3</h3>

Saving a HTML file


To save any HTML file, use the extension .html or .htm. Select All file types in File type and
click on save.
These things are necessary to ensure that the browser identifies the file as a webpage.

You might also like