Header Tag in HTML Header tag is used for introduction of your content and define top section of your web-page or for navigational links, logos, icons and images. A header tag can nest in another header tag. Syntax: <header> data should be here. </header>. Code: <!DOCTYPE html> <html> <head> <title>My Website </title> </head> <body> <header> <h1> My Website </h2> <p>This is the header of your web-page</p> </header> </body> </html> Output: Navigation Tag in HTML Navigation tag <nav> is used to define section of web-page than contain navigational links.Links of web-page are in the navigation tag but not all the links are inside the navigation tag. Structuring the content of the web-page and determine that the enclosed links are part of the navigation tag.It is act like a container for putting links and logos. Syntax: <nav> <ul> <li> <a hr...
CSS Lecture no.1 Introduction to CSS CSS stands for Cascading Style Sheet. It has no boiler plate. It is used for describing the layout of the web pages within Hyper Text Markup Language. It is specifically designed to control over visual styling and layout of HTML elements. It allows designers and web developers to define how element should be displayed including fonts, background color, border, text-color and much more. By using CSS, you can achieve consistent and attractive visual design across your website and make user-friendly websites.There are three types of CSS, which are: Inline CSS Internal CSS External CSS Syntax: CSS style syntax rule based on selector, deceleration and property. For example: selector{ property: value; } For instance: p{ color: red; font-size: 20px; } Here 'paragraph' is selector and within curly brackets there are two deceleration (color: red; font-size: 20px;) . Each deceleration includes a property which is color and...
Lecture no.16 How to create space in html? We cannot do spacing in HTML by space-bar,by default it counts only one. So we use "&nbps;" entity in HTML for spacing. It stands for non breaking space in HTML for spacing. How to set width of text box in form tag? You can use width attribute with type element or apply style tag with width attribute. Syntax Name: <input type="text" width="20px;"> with style tag. <style width="200px"> Name: <input type="text"> </style> How to set length of text ? For setting length we use minlenght and maxlenght attribute in form tag. We cannot use this limit for number attribute in form tag. Syntax For writing address we set the limit of the words that they cannot exceed more than 50 words. Address: <input type="text" minlenght="10" maxlenght="50">. Required and Readonly Attribute Required Attribute The required attribute is used to mark ...
Comments
Post a Comment