What is HTML?
HTML is not a programming language; it 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. The enclosing tags can make a word or image hyperlink to somewhere else, can italicize words, and can make font bigger or smaller, and so on. For example, take the following line of content:
What is HTML used for?
HTML is most commonly used as the format of the online documents we call web pages. When you create a set of complete HTML documents having a similar look and feel and linking to one another, this is referred to as a website.
Besides creating complete web pages, you may also use HTML code fragments to create specific elements within an existing page. For example, some blogs and discussion boards allow you to include HTML formatting in your posts or comments, enabling you to add emphasis to key words, embed links, create bulleted lists, or use whichever other HTML elements are permitted by the website’s administrators. If you are a content contributor for your organization’s website, the website designer may have set up a content management system that lets you add articles or page sections within a larger, existing HTML page structure that controls page layout and site navigation.
HTML is also used as the document format of offline (stored on your computer) help and documentation bundled with the applications installed on your computer. When you activate an application’s help, typically via its “Help” menu or a question mark icon, the help content may appear within your web browser or a specialized help viewer.
Email also uses HTML as the format of rich text messages that include links, stylized text, tables, and other elements that cannot be represented in plain text. However, most email applications do not allow you to edit the HTML directly, instead providing you with tools to create elements and generating the corresponding HTML internally
Why are we learning HTML?
Learning HTML can be used for situations like formatting a blog or email, working with a CMS, embedding external content on your site, and creating usable content.
What is an HTML tag?
An HTML tag is commonly defined as a set of characters constituting a formatted command for a Web page. At the core of HTML, tags provide the directions or recipes for the visual content that one sees on the Web.
What is the structure of an HTML tag?
Basic Structural Tags. HTML is a mark-up language with ‘tags’ identifying parts of the document to behave in a certain way, for example, to act as a link or to make the text bold. Tags generally consist of an opening and closing pair. … A HTML document consists of a head and body.
What is an attribute?
HTML attribute is a modifier of an HTML element type. An attribute either modifies the default functionality of an element type or provides functionality to certain element types unable to function correctly without them. In HTML syntax, an attribute is added to an HTML start tag.
What is the anatomy of an HTML document?
Every HTML document consists of two elements:
Head elements – provides page title and general page formatting commands
Body elements – put the main HTML text in this part.