HTML (HyperText Markup Language) is the foundation of every website. It is a markup language used to structure content on the web. With HTML, you can create paragraphs, headings, lists, links, and more. In this blog, we'll take a closer look at HTML and how it works.
HTML is made up of various elements, which are used to define the structure and content of a webpage. Each element is enclosed within tags, which are written using angle brackets (< and >). For example, the < h1 > tag is used to define a heading, and the < p > tag is used to define a paragraph.
HTML tags are used to define the elements of an HTML document. They are enclosed in angle brackets, and the opening tag begins with the name of the element, followed by any attributes in the tag. The closing tag begins with a forward slash (/) followed by the name of the element. For example, the < a > tag is used to create links in HTML. The opening tag might look like this: < a href="(https://www.asiapacific.com.my/)">**Asia Pacific Net** < /a>[ Link Tag Attributes ] In this example, the href attribute specifies the URL of the page that the link will take the user to when clicked. The text "**Asia Pacific Net**" will be displayed as the clickable link on the webpage.
HTML attributes are used to provide additional information about an element. They are included within the opening tag of an element, and are written in the form of name/value pairs. For example, the < img > tag is used to insert images into an HTML document, and it has several attributes, including src (which specifies the location of the image file) and alt (which provides a text description of the image). [ Must fill up < alt >”File Name” attributes with proper text (naming) for better SEO in your website ]
HTML documents are structured using a specific set of tags, which are used to define the different parts of the document. The basic structure of an HTML document looks like this: