Hypertext Markup Language (HTML)
What is HTML?
HTML, or hypertext markup language, is a markup language used to create the frontend of websites. It is written to include the structure of a web page and rendered by web browsers into the websites that we see online. HTML, usually coupled with CSS, or cascading style sheets, enables websites to look the way that we want them to on the web. This includes visual items such as color, font size, text order and more.
HTML is written in blocks of elements and tags. These tags indicate the structure of the page and denote the type of text that a viewer sees. They can signify anything from whether the text should be viewed as a header, to whether there should be an image on the page.
Essentially, HTML is a way for web browsers to know how to display websites. It is often used when building and designing sites. Another way to create websites is with a drag and drop website builder, which makes building websites more accessible to those who might not be fluent in HTML.
Is HTML a programming language?
HTML is not a programming language, but is instead a markup language. A programming language is one that is built of commands and structured by certain syntax that is primarily read by computers. A markup language, on the other hand, uses tags to define elements and communicate a certain structure. Programming languages are used to create computer programs, whereas markup languages are used primarily by web browsers to interpret documents.
You may also be interested in:
How does HTML work?
HTML files are saved as files ending in .html or .htm. These files can then be read by web browsers and rendered to look like the websites you know and love. HTML is broken down into blocks of text that are surrounded by HTML tags at the beginning and end of each element. These tags are separated into larger sections, called divs, with subsections beneath them. So, for example, if you want to add a section to your page that has a header, subheader, and a paragraph, your HTML might look as follows:
<h1>I am a header</h1>
<h2> I am a subheader</h2>
<p> I am a paragraph </p>
There are of course many more elements and tags that are necessary to build a large website. Resources like html.com can help you learn all of the details.