HTML Tags

Tag Name

Tag

Use

Document Type <!DOCTYPE html> This tag tells the browser to expect the current version of html language and is always the first line at the start of a new html document
html <html></html> All content other than document type will be placed inbetween this tag
Body <body></body> Anything to be displayed to / seen by the user goes here.
Headings <h1></h1> The heading is like the title of the following content. There are six sizes with h1 being the largest and h6 being the smallest
Paragraph <p></p> This is used for general purpose text, like a paragraph, and can also contain other tags imbeded into the text
Division <div></div> This tag defines a division of content, like moving from one topic to another, and is used to help format the code while also making it easier to style different sections.
Lists <ul></ul>, <ol></ol>, <li></li> There is unorderd lists and orderd lists. The first uses bullet-point style and the second makes a numbered list. Both use the li tag inbetween for each new line
Image <img> This tag is self-closing and displays an image, with the help of an attribute, to the webpage.
Links <a></a> This tag creates a hyperlink and can be used inline. This tag uses the href attribute to do so.
Span <span></span> This tag can separate text inline without disrupting the actual text. It can be used to change the style of a specific line or word within the text