Basic elements in html
So far in HTML, I have learnt that HTML documents consist of a tree of elements which are the foundation of web pages. These elements include paragraphs, headings, images, links etc. Then tags are used to determine the start and end of these elements. Most elements have a start tag to indicate where they begin, and an end tag to indicate where they end. A start tag is represented with <tag> while an end tag is represented with </tag>. HTML tags are like keywords that are hidden within the web pages. It tells the browser how the content should be formatted to display it. Every tag has its own meaning.
The first thing to be seen in an HTML document is <!DOCTYPE html> which shows that the file is an HTML document. Then the <head> </head> which contains the <title> </title>, and the <body> </body> which has all the contents of the documents like paragraphs (<p> </p>), headings (<h1> </h1) to (<h6> </h6>), the higher the number, the smaller the heading. Attribute is very important in HTML because it provides an added information about the content of the document. For example <html lang=“en” which shows that the document is in English language. Comments can as well be used in HTML like this: <!comment>. There are also semantic elements which adds expression to HTML documents. For example <strong> </strong> for bold, <em> </em> for emphasized text like italics etc. <blockquotes> </blockquotes> elements are used for long quotes. To break a line into another line, <br> is used without an end tag. Also, to create a list <ol> </ol> or <ul> </ul> is used for ordered or unordered list i.e. numbered or bullet list. For each item on the list, <li> </li> element is used.















