[go: up one dir, main page]

0% found this document useful (0 votes)
37 views3 pages

HTML Important Notes

HTML stands for Hypertext Markup Language. It uses tags to define the structure and presentation of text on the web. HTML elements contain opening and closing tags that wrap around content like paragraphs of text. Hyperlinks allow text to link to other text through links. The basic building blocks of an HTML document are HTML elements formed by tags around content.

Uploaded by

Ruhee Jivani
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)
37 views3 pages

HTML Important Notes

HTML stands for Hypertext Markup Language. It uses tags to define the structure and presentation of text on the web. HTML elements contain opening and closing tags that wrap around content like paragraphs of text. Hyperlinks allow text to link to other text through links. The basic building blocks of an HTML document are HTML elements formed by tags around content.

Uploaded by

Ruhee Jivani
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
You are on page 1/ 3

HTML stands for HyperText Markup Language:

A markup language is a computer language that defines the structure and


presentation of raw text.
In HTML, the computer can interpret raw text that is wrapped in HTML
elements.
HyperText is text displayed on a computer or device that provides access to
other text through links, also known as hyperlinks. You probably clicked on a
couple of hyperlinks on your way to this Codecademy course.
The diagram to the right displays an HTML paragraph element. As we can see,
the paragraph element is made up of:

An opening tag (<p>)


The content (“Hello World!” text)
A closing tag (</p>)

HTML element (or simply, element) — a unit of content in an HTML


document formed by HTML tags and the text or media it contains.

HTML Tag — the element name, surrounded by an opening (<) and closing
(>) angle bracket.

Opening Tag — the first HTML tag used to start an HTML element. The tag
type is surrounded by opening and closing angle brackets.

Content — The information (text or other elements) contained between the


opening and closing tags of an HTML element.
Closing tag — the second HTML tag used to end an HTML element. Closing
tags have a forward slash (/) inside of them, directly after the left angle
bracket.

<body>
<p>What's up, doc?</p>
</body>

HTML is organized as a collection of family tree relationships. As you saw in the


last exercise, we placed <p> tags within <body> tags. When an element is
contained inside another element, it is considered the child of that element.
The child element is said to be nested inside of the parent element.

he following is the list of heading elements available in HTML. They are


ordered from largest to smallest in size.

<h1> — used for main headings. All other smaller headings are used for
subheadings.
<h2>
<h3>
<h4>
<h5>
<h6>

When we add an id to a <div>, we place it in the opening tag:

<div id="intro">
<h1>Introduction</h1>
</div>

Displaying Text

If you want to display text in HTML, you can use a paragraph or span:

Paragraphs (<p>) contain a block of plain text.


<span> contains short pieces of text or other HTML. They are used to
separate small pieces of content that are on the same line as other content.

Take a look at each of these elements in action below:

<div>
<h1>Technology</h1>
</div>
<div>
<p><span>Self-driving cars</span> are anticipated to replace up to 2 million
jobs over the next two decades.</p>
</div>

You might also like