What is HTML?
HTML ( H yper t ext M arkup L anguage) is the code that is used to structure a web page and its content. For example, content could be structured within a set of paragraphs, a list of bulleted points, or using images and data tables. As the title suggests, this article will give you a basic understanding of HTML and its functions.
What is HTML used for?
HTML is a markup language that defines the structure of your content. HTML consists of a series of elements , which you use to enclose, or wrap, different parts of the content to make it appear a certain way, or act a certain way
Why are we learning HTML?
You can build your own landing pages
You could work more effectively with digital designers and developers
Youâll have more confidence, and might end up in an entirely new career
What is an HTML tag?
The tag defines a hyperlink, which is used to link from one page to another
What is the structure of an HTML tag?
The opening tag: This consists of the name of the element (in this case, p), wrapped in opening and closing angle brackets . This states where the element begins or starts to take effect â in this case where the paragraph begins.
The closing tag: This is the same as the opening tag, except that it includes a forward slash before the element name. This states where the element ends â in this case where the paragraph ends. Failing to add a closing tag is one of the standard beginner errors and can lead to strange results. The content: This is the content of the element, which in this case, is just text.
What is an attribute?
Attributes contain extra information about the element that you donât want to appear in the actual content.
What is the anatomy of an HTML document?
That wraps up the basics of individual HTML elements, but they arenât handy on their own. Now weâll look at how individual elements are combined to form an entire HTML page. Letâs revisit the code we put into our index.html
example (which we first met in the Dealing with files article)