Skip to main content

Chapter 2 : Structure of HTML

What is the structure of HTML ?

The structure of HTML is just like our body. Such as our head, body and foot. HEAD is the first tag of HTML, where we keep styles, fonts, scripts etc. After that body section, where we write all codes, which appear in the browser. But head don’t appear any codes in the browser. It run in background. After that footer section.

For Example:

Code:
<!DOCTYPE html>
<html>
<head>
<! --- we can write scripts here --->
<title>Page Title</title>
</head>
<body>
<! --- we can write all the codes here --->
<h1>My First Heading</h1>
<p>My first paragraph.</p>

</body>
</html>

Diagram:


Comments

Popular posts from this blog

Chapter 3 : HTML Editors

What are HTML Editors? Editors is where we write our code. Whether it is HTML, PHP or any other language like that (JavaScript, jQuery, Ajax XML, Java etc.) These are the following editors. 1.      Note Pad Notepad is a simple text editor for Microsoft Windows and a basic text-editing program which enables computer users to create documents. And all Computers have notepad. 2.      Note Pad ++ Notepad++ is a text and source code editor for use with Microsoft Windows. It supports tabbed editing, which allows working with multiple open files in a single window. It’s advance version of Notepad. 3.      Sublime Text Editor Sublime Text  is a sophisticated text  editor  for code, markup and prose. You'll love the slick user interface, extraordinary features and amazing performance. It natively supports many programming languages and markup languages, and functions can be added by users with plugins, typically community-built and maintained under free-softw

Chapter 7 : HTML 5 – Nav Element

  HTML 5 – Nav Element   The  <nav>   HTML  element represents a section of a page whose purpose is to provide   the navigational section in HTML documents. Websites typically have sections dedicated to navigational links, which enables users to navigate the site. These links can be placed inside a nav tag.  Common examples of navigation sections are menus, tables of contents, and indexes. These are the Following Uses of Nav Element 1.      Main use of <nav> in HTML 5 for creating navigations of websites 2.      We can use several <header> elements in one document. 3.      The <header> element is intended to usually contain the section’s heading h1 to h6 4.      The <header> element can also be used to wrap a section’s table of contents, a search form, or any relevant logos. 5.      The <header> tag is a HTML5’s tag and it requires a starting tag as well as an end tag.     Syntax <nav class="nav-main">