What is HTML?
HTML is the standard markup language for creating web pages and web applications. Combined with CSS and JavaScript, you can create simple and complex websites.
Every web page is actually an HTML file. Each HTML file is just a plain-text file, but with a .html
file extension instead of .txt
.
HTML tags
HTML tags are the hidden keywords that define how you order and display element and content. Most HTML tags have two parts, an opening, and a closing part:
Note that the closing tag has the same text as the opening tag, but has an additional forward-slash ( /
) character.
There are some exceptions, such as the HTML tag <img>
that does not have a closing tag:
<tagname>Content</tagname>
To view an HTML document, you'll need a web browser such as Google Chrome, Mozilla Firefox, Internet Explorer, or Safari.
HTML attributes
Attributes are what customize the tags, and they're defined within the tags, for example:
<img src="image.jpg">
Attributes are optional for most tags...