Hello, readers welcome to the new post. In the post, we will learn about HTML language. HTML is a basic programming language that is used to make sites. If anyone wants to become a site developer must know HTML language that it is also used for another profession such as digital marketing, here we will cover its different parameters and how to use it practically. So let’s get started.
What is HTML?
- The full form of HTML is a hypertext markup language and it is a computer language that is used for making sites. HTML explains how documents are shown with an internet browser. The first time it was made by Berners-Lee in the late 1990s and, with time there were changes made in this language
How does HTML work?
HTML works through instructional internet browsers to show the required page. First of all writer uses a basic text editor on the computer for making HTML documents. The author after that fils HTML documents with HTML components with the use of HTML tags
What Are HTML Tags?
Tags are used for marking up the start of HTML components and thy are configured in angle brackets. Such as tag is <h1>
Some tags are open such as and some are closed <h1> and closed </h1>
How to Write HTML
Unlike other languages, HTML is easy to read and understand and it is plain English text with some symbols. The basic building block of an HTML file is an element. The HTML element is a module that defines content or sections of site pages.
The element can be text-like paragraph components such as a button or section of the page header sidebar or footer
Start Tag
HTML elements are made with tags. Suh as some elements the start tag and end tag mark the starting and ending of the element. The opening tag comes with the title of the element. The start tag also comes with more details called attributes. The element’s names are case insensitive such as <p> tag also written <P>.
Content
The content of the element is put between the opening and closing tags. That is users check on the site. The element’s content can be text, link or image, list and table.
End Tag
The end tag defines the ending of an HTML element such as the start tag comes with the same element name. The difference is forward slash precedes the element name. Mostly HTML elements come with a closing tag and some HTML elements have an opening tag. Such as <img> (image) and <br> (line break) not needed closing tags.
Elements that not have a starting stage are known as empty elements.
HTML Fonts
- Helvetica (sans-serif)
- Arial (sans-serif)
- Arial Black (sans-serif)
- Gill Sans (sans-serif)
- Verdana (sans-serif)
- Tahoma (sans-serif)
- Trebuchet MS (sans-serif)
- Impact (sans-serif)
Common HTML Elements
Paragraph
The HTML paragraph elements noted paragraphs. By putting <p></p> tags about text there is text start on a new line. The paragraphs are a common text element for HTML.
Headings
Headings are used for displaying text. HTML comes with 6 heading elements that denote differnt levels of section headings
. <h1> is high section level and most preferred and <h6> are lowest and has less importance
Image
The HTML image element configured with an image on a document needed a src (source) attribute, for defining the file path of the image.
It also gets an alt attribute that defines image alt text. The bowsers will not consider the image if there are no alt attributes existing in <img> tag.
Anchor
The HTML anchor elements make hyperlinks. It needed a href attribute that defines link details or destination. The link destination can be another section on web pages and another web page on the same website or other sites.
Emphasis
The HTML focus elements signal that the text’s inner side it must focus for readers. Browsers morally render text as <em> tags in italics.
Strong
The HTML’s strong elements show that the text it has is of certain importance. Browsers render the text in bold.
Line Break
The line break element comes with a line break. You can add <br> tag when needed text for ending at the current line and move to the next line. These elements are used for showing poems, etc
What are the 10 basics HTML tags?
- </html> — The root element.
- </head> — The document head. …
- </title> — The page title. …
- </body> — The page’s content. …
- </h1> — A section heading
- </p> — A paragraph. …
- </a> — A link. …
- <img> — An image.
What are the 4 basic elements of HTML?
- html element.
- head element.
- title element.
- base element.
- link element.
- meta element.
What is HTML syntax?
- HTML syntax is written in simple text documents that end with a. HTML extension. HTML documents come with text elements that are read and loaded with browsers. HTML functions through the use of elements that define functions and are put in a descending tree structure.
What is the difference between HTML and Visual Basic?
- HTML5 and Visual Basic are 2 different programming languages used for making sites and apps. HTML5 is a markup language used to make the structure and denote content on the web, while Visual basic is a programming langue used for developing Windows applications
What are the basics of HTML and CSS?
- HTML and CSS are two languages that operate to make functions that we can see when checking on the internet.
- HTML is raw data that a webpage makes. All text, links, cards, lists, and buttons are made with HTML and CSS is a style for plain elements.
difference Between HTML and HTML5
HTML
- The doctype declaration is longer and more complex HTML.
- The new attributes such as tab index, id, and repeat do not exist in HTML
HTML
- The doctype declaration is simple and easy to understand for HTML5.
- HTML5 comes with tab index, id, and repeat attributes.