MOCKSTACKS
EN
Questions And Answers

More Tutorials









What is an HTML Element?


An HTML element is a type of HTML (Hypertext Markup Language) document component, one of several types of HTML nodes (there are also text nodes, comment nodes and others).

  <tagename> Content of html page...  </tagename>
Web browsers receive HTML documents from a web server or from local storage and render the documents into multimedia web pages. HTML describes the structure of a web page semantically and originally included cues for the appearance of the document.

HTML elements are the building blocks of HTML pages. With HTML constructs, images and other objects such as interactive forms may be embedded into the rendered page. HTML provides a means to create structured documents by denoting structural semantics for text such as headings, paragraphs, lists, links, quotes and other items. HTML elements are delineated by tags, written using angle brackets. Tags such as </img > and </input> directly introduce content into the page. Other tags such as </p> surround and provide information about document text and may include other tags as sub-elements. Browsers do not display the HTML tags, but use them to interpret the content of the page.

Example of Html Element
  <h1> H1 tag content...  </h1> 

  <p> paragraph tag content...  </p> 
HTML can embed programs written in a scripting language such as JavaScript, which affects the behavior and content of web pages. Inclusion of CSS defines the look and layout of content. The World Wide Web Consortium (W3C), former maintainer of the HTML and current maintainer of the CSS standards, has encouraged the use of CSS over explicit presentational HTML since 1997.A form of HTML, known as HTML5, is used to display video and audio, primarily using the <canvas> element, in collaboration with javascript.


<html>
<head>
    <title>Page Title Example</title>
</head>
<body>

    <h1>H1 heading content... </h1>
    <p>paragraph content...</p>

</body>
</html>

Example result


H1 heading content...

paragraph content
paragraph:
Lorem ipsum dolor sit amet consectetur, adipisicing elit. Tenetur quisquam sint voluptatem cumque facilis sit culpa aliquid aut quibusdam ad eos incidunt perspiciatis ullam pariatur consequuntur natus, ut nisi modi nesciunt nulla nam? Eaque! Lorem ipsum dolor sit amet, consectetur adipisicing elit. Nobis, excepturi beatae quos dolorum iure tenetur provident, obcaecati totam ea sequi delectus nostrum ab porro. Vel magni officia excepturi dignissimos tempora, consequuntur sapiente harum.



Conclusion

In this page (written and validated by ) you learned about HTML Element . What's Next? If you are interested in completing HTML tutorial, your next topic will be learning about: HTML Attribute.



Incorrect info or code snippet? We take very seriously the accuracy of the information provided on our website. We also make sure to test all snippets and examples provided for each section. If you find any incorrect information, please send us an email about the issue: mockstacks@gmail.com.


Share On:


Mockstacks was launched to help beginners learn programming languages; the site is optimized with no Ads as, Ads might slow down the performance. We also don't track any personal information; we also don't collect any kind of data unless the user provided us a corrected information. Almost all examples have been tested. Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrant full correctness of all content. By using Mockstacks.com, you agree to have read and accepted our terms of use, cookies and privacy policy.