0% found this document useful (0 votes)
53 views

HTML Tutorial What Is HTML

HTML is a markup language used to create web pages. It uses tags to structure and format text, images and other content into a display format for web browsers. Some key HTML tags include paragraph <p>, headings <h1>-<h6>, links <a>, lists <ul>/<ol> and images <img>. HTML documents consist of tags nested within each other to define the page structure and semantics.

Uploaded by

iqra siddiqui
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
53 views

HTML Tutorial What Is HTML

HTML is a markup language used to create web pages. It uses tags to structure and format text, images and other content into a display format for web browsers. Some key HTML tags include paragraph <p>, headings <h1>-<h6>, links <a>, lists <ul>/<ol> and images <img>. HTML documents consist of tags nested within each other to define the page structure and semantics.

Uploaded by

iqra siddiqui
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

HTML Tutorial

What is HTML
HTML is an acronym which stands for Hyper Text Markup Language which is used for
creating web pages and web applications. Let's see what is meant by Hypertext Markup
Language, and Web page.

Hyper Text: Hypertext simply means "Text within Text." A text has a link within it, is a
hypertext. Whenever you click on a link which brings you to a new webpage, you have
clicked on a hypertext. Hypertext is a way to link two or more web pages (HTML
documents) with each other.

Markup language: A markup language is a computer language that is used to apply


layout and formatting conventions to a text document. Markup language makes text
more interactive and dynamic. It can turn text into images, tables, links, etc.

Web Page: A web page is a document which is commonly written in HTML and
translated by a web browser. A web page can be identified by entering an URL. A Web
page can be of the static or dynamic type. With the help of HTML only, we can
create static web pages.

Hence, HTML is a markup language which is used for creating attractive web pages with
the help of styling, and which looks in a nice format on a web browser. An HTML
document is made of many HTML tags and each HTML tag contains different content.
Building blocks of HTML
An HTML document consist of its basic building blocks which are:

o Tags: An HTML tag surrounds the content and apply meaning to it. It is written
between < and > brackets.
o Attribute: An attribute in HTML provides extra information about the element,
and it is applied within the start tag. An HTML attribute contains two fields: name
& value.

Syntax

o Elements: An HTML element is an individual component of an HTML file. In an


HTML file, everything written within tags are termed as HTML elements.
HTML Tags
HTML tags are like keywords which defines that how web browser will format and
display the content. With the help of tags, a web browser can distinguish between an
HTML content and a simple content. HTML tags contain three main parts: opening tag,
content and closing tag. But some HTML tags are unclosed tags.

When a web browser reads an HTML document, browser reads it from top to bottom
and left to right. HTML tags are used to create HTML documents and render their
properties. Each HTML tags have different properties.

An HTML file must have some essential tags so that web browser can differentiate
between a simple text and HTML text. You can use as many tags you want as per your
code requirement.

o All HTML tags must enclose within < > these brackets.

o Every tag in HTML performs different tasks.

o If you have used an open tag <tag>, then you must use a close tag </tag>
(except some tags)

Syntax

<tag> content </tag>


HTML Tag Examples

You might also like