You are on page 1of 1

Tags and elements for coding :

1. The <p> element is used for creating a paragraph in the website or the page. It is
put inside the <body> tags.

2. The <br /> tag is used for a line break inside the paragraph tag. The line break
make the remaining text simply go to the line underneath like when you click enter
while typing. It is a single tag and does not have an ending tag.

3. These are different types of tags for formatting elements or fonts : <b> for bold,
<big> for big, <i> for italic, <small> for small, <strong> for strong or bold, <sub> for
subscripted ( ex. Dinitrogen or N2 ), <sup> for superscripted ( ex. a^2 or the
copyright symbol ), <ins> for inserted or underlined, <del> for deleted where there
is a line over all the words in the tag.

4. The <h> tags are used for the headings of the page. There are many types of <h>
tags from <h1> which is the largest heading size to <h6> which is the smallest
heading size.

5. The <hr /> tag is used for a horizontal line. It is actually shows a horizontal line
which divides the web page and usually indicates a new topic or chapter being
started.

6. The comment tag is different from the others. The <!- - - -> tag has to have an
exclamation mark at the start of the tag. This is not shown on the actual webpage
can can be seen in coding. It is used to add descriptions, remainders and notes for
yourself.

7. If you want to align the text to the center then up you give a space after the tag and
write - align=“center” - ( ex. <body align=“center”>, </body> or <p align=“center”>,
</p> )

8. For changing the font we can put another space and write font=“no.” or
width=“no.”. These measurements are in pixels.

You might also like