Header Ads Widget

Responsive Advertisement

Basic HTML Document

In itssimplest form, following is an example of an HTML document:
Either you can useTry itoption available at the top right corner of the code box to check the result of this HTML code, or let's save it in an HTML filetest.htmusing your favorite text editor. Finally open it using a web browser like Internet Explorer or Google Chrome, or Firefox etc. It must show the following output

Related Posts:

  • HTML Document StructureA typical HTML document will have the following structure: We will study all the header and body tags in subsequent chapters, but for now let's see what is document declaration tag. … Read More
  • Paragraph Tag The<p>tag offers a way to structure your text into different paragraphs. Each paragraph of text should go in between an opening <p> and a closing </p> tag as shown below in the example: Example&nb… Read More
  • Heading Tags  Any document starts with a heading. You can use different sizes for your headings. HTML also has six levels of headings, which use the elements<h1>, <h2>, <h3>, <h4>, <h5>, and <h6… Read More
  • The DeclarationThe <!DOCTYPE> declaration tag is used by the web browser to understand the version of the HTML used in the document. Current version of HTML is 5 and it makes use of the following declaration: There are many other decl… Read More
  • HTML Tags As told earlier, HTML is a markup language and makes use of various tags to format the content. These tags are enclosed within angle braces<Tag Name>. Except few tags, most of the tags have the… Read More

0 Comments:

Post a Comment