From 0a8b93691597e9269ddce12702d7701f4744e108 Mon Sep 17 00:00:00 2001 From: AMIT KUMAR RANJAN <36160346+amit2307@users.noreply.github.com> Date: Sun, 28 Oct 2018 07:59:07 +0530 Subject: [PATCH] add HTML Elements (from line 67 to 114) (#20105) * add HTML Elements (from line 67 to 114) I have added description regarding commonly used HTML elements . * Corrected formatting and structure --- guide/english/html/index.md | 80 +++++++++++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) diff --git a/guide/english/html/index.md b/guide/english/html/index.md index e6a3366c20..636ea52b0f 100644 --- a/guide/english/html/index.md +++ b/guide/english/html/index.md @@ -63,3 +63,83 @@ Since the early days of the web, there have been many versions of HTML - [HTML Elements](https://guide.freecodecamp.org/html/elements) - [Semantic HTML](https://guide.freecodecamp.org/html/html5-semantic-elements) - [HTML Attributes](https://guide.freecodecamp.org/html/attributes) + +# HTML Elements + +The extent of an element is indicated by a pair of tags: a "start tag" `
` and "end tag" `
`. The text content of the element, if any, is placed between these tags. + +Tags may also enclose further tag markup between the start and end, including a mixture of tags and text. This indicates further (nested) elements, as children of the parent element. + +The start tag may also include attributes within the tag. These indicate other information, such as identifiers for sections within the document, identifiers used to bind style information to the presentation of the document, and for some tags such as the `Paragraph 1
` +`Paragraph 2
` + +**Line Breaks** + +```html +` is that `br` breaks a line without altering the semantic structure of the page, whereas `p` sections the page into paragraphs. Note also that `br` is an empty element in that, although it may have attributes, it can take no content and it may not have an end tag. + +```html +
This is a paragraph
with
line breaks