HTML head element

0 122

Head element title style JavaScript link Nested Elements Monospace

in this tutorial we learn about Head element title style JavaScript link Nested Elements Monospace and Preformatted Text and related others all head elements

What is head element?

The head element provides information about the meta data, in html meta data is about html document which can’t be displayed on web pages, but it is available in head element in case of <title> <meta> <link> <script> <style> .head element is that place where to store most of instruction for browser to locate your website in search engine’s.

head element is that place where to store most of instruction for browser to locate your website in search engine’s. These instruction you can save in case of keywords in meta html tag, which are not displayed on html web page, keywords are important term in a web page by search engines to make a possible to search specific information from your site through search engines.The content in meta element such as charset specified for charset or character encoding.

<title>

title tag in head element allows you to specify your webpage title name.

<style>

Style tag allows you add style in your website that also you can apply style in head element .

<JavaScript>

Another thing you can add in your head element that is JavaScript which allow u to add dynamic behavior for your html document, java script execute through browser on client machine so it’s called client side script.

The head element consist on start and end tag <head> </head>

<link>

link tag in head element provide to space to add your CSS style link in head element for your html content.

HTML Elements

What is Html Elements

In html document, elements arrange content in webpage hierarchically, which forms the basic html structure, Element in html documents consist of tags attributes and content, html document made up by elements .
In html document a tag start from opening angular bracket (<) then tag name and closing angular bracket (>).
End tag same like start tag but forward slash include before closing angular bracket.

Head element title style JavaScript link Nested Elements Monospace and Preformatted Text

Head element title style JavaScript link Nested Elements Monospace and Preformatted Text

Nested Elements in HTML

Elements in HTML document can be used as a nested (elements inside element).All html documents consist on nested HTML elements.

Explained

  • The <html> element define a whole body of html document, html element has Start <html> element and close tag <html>.
  • The<body>element for whole document body it has a Start <body>
    element and close tag <body>.
  • The <h1> tag is for heading it is also consist on Start <h1> and close tag <h1>.
  • The <p> defined for paragraph it also has Start <p> tag and close tag <p>.

Note html tags are not case sensitive but W3c recommended as a lowercase tag and it is also a good practice. don’t forget to close your element/tag ,without closing tag also it will work proper but for best practice always close your tag after starting tag might it will produce unexpected results or errors if you forget the end tag.!

HTML Monospace and Preformatted Text

What is HTML Monospace and Preformatted Text

In HTML 5 using monospace fonts a developer can provide the same amount of the horizontal space between the fonts even if the font size shape are not the same.in html document monospace fonts are used for programming code script text and ASCII characters.

To apply preformatted text in content of your web page <pre> tag is used. This tag will apply fix-font width space to the text content.

For formatting your text some other predefined tags are….

Html <em> tag

To make required text emphasized <em> tag used.

Html <dfn> tag

<dfn> tag Used for a definition term for text content.

Html <code> tag

<code> tag Used for a computer code in html webpage.

Html <samp> tag

Used for sample output from a computer program.

Html <cite> tag

Used for a citation

Comments

comments

Leave A Reply

Your email address will not be published.