Beruflich Dokumente
Kultur Dokumente
What is HTML?
HTML stands for Hypertext Markup Language. It allows
the user to create and structure sections, paragraphs,
headings, links, and blockquotes for web pages and
applications.
HTML is not a programming language, meaning it
doesn’t have the ability to create dynamic
functionality. Instead, it makes it possible to organize
and format documents, similarly to Microsoft Word.
History of HTML
HTML was invented by Tim Berners-Lee, a physicist at
the CERN research institute in Switzerland. He came up
with the idea of an Internet-based hypertext system.
Hypertext means a text that contains references (links)
to other texts that viewers can access immediately. He
published the first version of HTML in 1991, consisting of
18 HTML tags. Since then, each new version of the HTML
language came with new tags and attributes (tag
modifiers) to the markup.
According to Mozilla Developer Network’s HTML
Element Reference, currently, there are 140 HTML
tags, although some of them are already obsolete
(not supported by modern browsers).
Due to a quick rise in popularity, HTML is now
considered an official web standard. The HTML
specifications are maintained and developed by the
World Wide Web Consortium (W3C). You can check
out the latest state of the language anytime
on W3C’s website.
The biggest upgrade of the language was the
introduction of HTML5 in 2014.
How HTML Works
HTML documents are files that end with a
.html or .htm extension. You can view then using any web
browser (such as Google Chrome, Safari, or Mozilla Firefox).
The browser reads the HTML file and renders its content so that
internet users can view it.
Usually, the average website includes several different HTML
pages. For instance: home pages, about pages, contact pages
would all have separate HTML documents.
Each HTML page consists of a set of tags (also called elements),
which you can refer to as the building blocks of web pages.
They create a hierarchy that structures the content into
sections, paragraphs, headings, and other content blocks.
Most HTML elements have an opening and a closing that use
the <tag></tag> syntax.
Tags
When working with HTML, we use simple code structures
(tags and attributes) to mark up a website page.
The essence of HTML programming is tags
A tag is a keyword enclosed by angle brackets ( Example:
<I> )
There are opening and closing tags for many but not all
tags; The affected text is between the two tags
For example, we can create a paragraph by placing the
enclosed text within a starting <p> and closing </p> tag.
<p>This is how you add a paragraph in HTML.</p>
More Tags...
Web SQL databases are used in HTML5 for storing data temporarily. Meanwhile, in the
previous version of HTML, only browser cache could be utilized for this purpose.
With HTML5, JavaScript can run within a web browser, while the older HTML only
allows JavaScript to run in the browser interface thread.
HTML5 is not based on SGML. This means that the language has improved parsing
rules which provide enhanced compatibility.
You can use inline MathML and SVG in text with HTML5, whereas HTML restricts it.
There are multiple new features and new elements in HTML5. Some of the most
important ones are summary, time, aside, audio, command, data, datalist, and so
on. For the complete list, check
Detailed Comparison Click this->
How are HTML, CSS, and
JavaScript related?
While HTML is a powerful language, it isn’t enough to build a
professional and fully responsive website. We can only use it to
add text elements and create the structure of the content.
However, HTML works extremely well with two other frontend
languages: CSS (Cascading Style Sheets), and JavaScript.
Together, they can achieve rich user experience and
implement advanced functions.
CSS is responsible for stylings such as background, colors,
layouts, spacing, and animations.
JavaScript lets you add dynamic functionality such as sliders,
pop-ups, and photo galleries.
Think of HTML as a naked person, CSS as the clothing, and
JavaScript as movements and manner.
Structure of a Web Page
<HTML>
All Web pages
<HEAD>
share a common
<TITLE> Example </TITLE>
structure
</HEAD>
All Web pages <BODY>
should contain a This is where you would
pair of <HTML>, include the text and
images on your Web page.
<HEAD>,
</BODY>
<TITLE>, and
</HTML>
<BODY> tags
The <TITLE> Tag
<HTML>
<HEAD>
<TITLE> Example </TITLE>
</HEAD>
<BODY BGCOLOR=“black” TEXT=“white”>
<BASEFONT SIZE=7>
This is where you would include the text and
images on your Web page.
</BODY>
</HTML>
Inserting Images
Text Box
Drop-down Menu
Radio Buttons
Checkboxes
Text Area
Reset Button
Submit Button
The Form Shell
<B>Comments?</B>
<BR>
<TEXTAREA NAME="Comments"
ROWS=10 COLS=50 WRAP>
</TEXTAREA>
Creating Radio Buttons