HTML: Link Tag

The <link> tag defines a link between a document and an external resource.

The <link> element is an empty element, it contains attributes only. This element goes only in the head section, but it can appear any number of times.

AttributeValueDescription
crossoriginanonymous
use-credentials
Specifies how the element handles cross-origin requests
hrefURLSpecifies the location of the linked document
hreflanglanguage_codeSpecifies the language of the text in the linked document
mediamedia_querySpecifies on what device the linked document will be displayed
relalternate
archives
author
bookmark
external
first
help
icon
last
license
next
nofollow
noreferrer
pingback
prefetch
prev
search
sidebar
stylesheet
tag
up

Required. Specifies the relationship between the current document and the linked document
sizesHeight X Width
any
Specifies the size of the linked resource. Only for rel=”icon”
typemedia_typeSpecifies the media type of the linked document

html code

<!DOCTYPE html>
<html>

<head>
  <title>
    link with css
  </title>
  <link rel="stylesheet" href="css/this is css.css">

</head>

<body class="design">
<h1> link tag </h1>
<p>
  Lorem, ipsum dolor sit amet consectetur adipisicing elit. Eos quibusdam obcaecati fugit sunt accusantium placeat maxime enim suscipit voluptate nam.
</p>
</body>

</html>

css code

.design{
    background-color: aqua;
    border-radius: 20px;
    text-align: center;
    border-style:solid ;
}
    h1{
       color:yellow;
    }
p{
    color:beige;
}
Tagged : / / / / / / /

HTML: Datalist Tag

The datalist tag provides an autocomplete feature, which means that it allows you to select an input from the predefined options. The datalist tag is combined with the input tag.

<datalist>
	
	<option>………...</option>
	<option>………...</option>

</datalist>
Tagged : / / / / /

HTML: Optgroup Tag

The …. tag helps to group related choices when we have a long list of options to select from the drop-down list created using the tag.

<select>
	<optgroup>
		<option>……</option>
	</optgroup>

	<optgroup>
		<option>……</option>
	</optgroup>

</select>
AttributeValueDescription
disableddisabledSpecifies that an option-group should be disabled
labeltextSpecifies a label for an option-group
Tagged : / / / / /

HTML: Button tag

We can customize the appearance of button using the <button> tag.

 <button>…..</button>
AttributeValueDescription
autofocusautofocusSpecifies that a button should automatically get focus when the page loads
disableddisabledSpecifies that a button should be disabled
formform_idSpecifies one or more forms the button belongs to
formactionURLSpecifies where to send the form-data when a form is submitted. Only for type=”submit”
formenctypeapplication/x-www-form-urlencoded
multipart/form-data
text/plain
Specifies how form-data should be encoded before sending it to a server. Only for type=”submit”
formmethodget
post
Specifies how to send the form-data (which HTTP method to use). Only for type=”submit”
formnovalidateformnovalidateSpecifies that the form-data should not be validated on submission. Only for type=”submit”
formtarget_blank
_self
_parent
_top
framename
Specifies where to display the response after submitting the form. Only for type=”submit”
namenameSpecifies a name for the button
typebutton reset submitSpecifies the type of button
value textSpecifies an initial value for the button
Tagged : / / / /

HTML: Option Tag

The <option>…</option> tags inside the <select>….</select> element define an option in the drop-down list.

<select>
	<option>………..</option>
	<option>………..</option>
</select>
AttributeValueDescription
disableddisabledSpecifies that an option should be disabled
labeltextSpecifies a shorter label for an option
selectedselectedSpecifies that an option should be pre-selected when the page loads
valuetextSpecifies the value to be sent to a server

Tagged : / / / / /

HTML: Select Tag

The <select>….</select> tag creates a drop-down list to accept user input from a list of items.

AttributeValueDescription
autofocusautofocusSpecifies that the drop-down list should automatically get focus when the page loads
disableddisabledSpecifies that a drop-down list should be disabled
formform_idDefines one or more forms the select field belongs to
multiplemultipleSpecifies that multiple options can be selected at once
namenameDefines a name for the drop-down list
requiredrequiredSpecifies that the user is required to select a value before submitting the form
sizenumberDefines the number of visible options in a drop-down list
Tagged : / / / / /

HTML: Fieldset tag

This creates a box around the related form controls.

<fieldset>……</fieldset>
AttributeValueDescription
disableddisabledSpecifies that a group of related form elements should be disabled
formform_idSpecifies forms the fieldset belongs to
nametextSpecifies a name for the fieldset
Tagged : / / /

HTML: Label

It defines a set of text that is associated with a particular element. <label>…..</label>

AttributeValueDescription
forelement_idSpecifies which form element a label is bound to
formform_idSpecifies one or more forms the label belongs to

element_id – The id of the element the label is bound to

Tagged : / / / / /

HTML: Text Area

A text area is a multiline text field. A user can write an unlimited number of characters in the text area.

<textarea>……</textarea>
AttributeValueDescription
autofocusautofocusSpecifies that a text area should automatically get focus when the page loads
colsnumberSpecifies the visible width of a text area
dirnametextareaname.dirSpecifies that the text direction of the textarea will be submitted
disableddisabledSpecifies that a text area should be disabled
formform_idSpecifies one or more forms the text area belongs to
maxlengthnumberSpecifies the maximum number of characters allowed in the text area
nametextSpecifies a name for a text area
placeholdertextSpecifies a short hint that describes the expected value of a text area
readonlyreadonlySpecifies that a text area should be read-only
requiredrequiredSpecifies that a text area is required/must be filled out
rowsnumberSpecifies the visible number of lines in a text area
wrapSoft(default)
hard
Specifies how the text in a text area is to be wrapped when submitted in a form
ValueDescription
softThe text in the textarea is not wrapped when submitted in a form.
hardThe text in the textarea is wrapped (contains newlines) when submitted in a form. When “hard” is used, the cols attribute must be specified
Tagged : / / / / / / / / /