What is HTML?
HTML stands for Hyper Text Markup Language which describes the structure of Web pages using markup. Hypertext means that it is the text which contains links to other texts and Markup means that the web would be a web of documents was the early thought for the web since the web was primarily used for research documents.
What is HTML used for?
Every web page you see on the Internet is written using HTML code. HTML ensures the proper formatting of text and images so browser may display them as
they are intended to look. HTML also provides a basic structure of the page.
Why are we learning HTML?
If you don’t learn HTML, you have to either be satisfied with what the editor gives you or find someone who knows HTML and pay them for their HTML coding services. The best thing to do is to learn HTML, so that you can create the perfect web page for yourself, without having to pay others for it.
What is an HTML tag?
HTML tags are at the center of how Web pages are formatted. An HTML tag consists of the tag name in angular brackets and may come in pairs, which makes up the beginning and ending tag.
What is the structure of an HTML tag?
The beginning tag consists of the name whereas the ending tag consists of the same name preceded by a forward slash ("/"). The HTML tag begins a paragraph, and also ends that paragraph. This is a syntax in HTML.
example: < p>My cat is very grumpy< /p>
What is an attribute?
All HTML elements can have attributes, providing additional information about an element. Attributes are always specified in the start tag and usually come in name/value pairs like: name=“value”.
Image tag has a set of size attributes, which specifies the width and height of the image.
example: < img src=“img_girl.jpg” alt=“Girl in a jacket” width=“500” height=“600” >
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.
example:
<! DOCTYPE html>
< html>
< head>
< meta charset=“utf-8”>
< title>My test page< /title >
< /head>
< body>
< img src=“images/firefox-icon.png” alt=“My test image”>
< /body>
< /html>