
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Found 2202 Articles for HTML

283 Views
Different charsets include ASCII, ANSI, ISO-8859-1, UTF-8, etc. ISO-8859-1 supports 256 different character codes. ASCII defined 128 different alphanumeric characters. The charset attribute in HTML is used with the to specify the character encoding.Following is the syntax −Above, char_set is the character set to specify the character encoding of an HTML document. Let us now see an example to implement HTML character encoding −Example Live Demo Example We have added demo text − Here, we are mentioned the demo content. This is just to display an example of charset in an HTML document. Previous Next Output

328 Views
To draw a Bezier curve, use the BezierCurveTo() method in HTML. Let us first see the syntax −ctx.bezierCurveTo(cp1x, cp1y, cp2x, cp2y, x, y);Here, cp1x − Represents the x-coordinate of the first Bezier control pointcp1y − Represents the y-coordinate of the first Bezier control pointcp2x − Represents the x-coordinate of the second Bezier control pointcp2y − Represents the y-coordinate of the second Bexier control pointx − Represents the x-coordinate of the ending pointy − Represents the y-coordinate of the ending pointFollowing is an example −Example HTML5 Canvas Tag var c = document.getElementById('newCanvas'); var ... Read More

144 Views
The HTML DOM Anchor protocol property is used to set or return the protocol of a link in the href attribute.Following is the syntax to set the protocol property −anchorObj.protocol = protocol_urlAbove, protocol_url is the protocol of the URL. The values can be http, https, ftp, etc.Following is the syntax to return the protocol property −anchorObj.protocolLet us now see an example to implement the DOM Anchor protocol property −Example Live Demo Demo Heading Link = Services Display pathname Display hreflang Display port Display protocol function display1() { var ... Read More

282 Views
The autocomplete attribute of the element allows you to set whether the autocomplete for the input should be on or off. The web browser automatically fills the values if autocomplete is on. This only happens if the user already entered values before.Following is the syntax −Above, on | off values are to be set for autocomplete to appear or not. Set on if you want the browser to complete the entries based on previously entered values, whereas off doesn’t allow to complete the entries.Let us now see an example to implement the autocomplete attribute of the element −Example Live Demo ... Read More

943 Views
The tag defines the heading of an HTML document. It is used to group the - headings.Note − The tag introduced and deprecated in HTML5. It is dropped from W3C HTML5 specification.Following is the syntax − Let us now see an example to implement the element in HTML −Example Live Demo Document Title Demo Heading One Demo Heading Two This is demo text. This is demo text. This is demo text. This is demo text. OutputIn the above example, we have set the two headings the − Demo Heading One Demo Heading Two

181 Views
The cite attribute of the element sets a URL to the HTML document and states why a specific text was deleted. Following is the syntax −Here, url is the link that displays the address of the document wherein it is specified why the text was deleted. Let us now see an example to implement the cite attribute of the element −Example Live Demo Subjects to Learn JavaScript A scripting language. Java It is a programming language. jQuery A JavaScript library. C# Object-oriented programming language. Internal Exams from 3rd May ... Read More

201 Views
The cite attribute of the element is used to set a URL that specified the reason to insert the text. Following is the syntax −Above, we have set url, which is the address to the document explaining the reason to insert the text. Let us now see an example to implement the cite attribute of the element −Example Live Demo Demo Heading Text is inserted. OutputIn the above example, we have inserted a text using the element − Text is inserted. Above, we have set the reason of insertion using the cite attribute −cite="new.htm

218 Views
The hreflang attribute of the element is used to set the language of the url in the area. Following is the syntax −Above, code is the ISO language code set for the language, for example, en for English, fr for French, js for Japanese, etc. Let us now see an example to implement the hreflang attribute for the element −Example Live Demo Learning Learn these technologies with ease.... OutputIn the above example, we have set the map on the following image −Now, we have set the map and ... Read More

430 Views
The strokeStyle property in HTML canvas is used to set the color, gradient or pattern for the stroke. The element allows you to draw graphics on a web page using JavaScript. Every canvas has two elements that describes the height and width of the canvas i.e. height and width respectively.Following is the syntax −context.strokeStyle=color|gradient|pattern;Above, the values, include −color − The stroke color of the drawing.gradient − Linear or radial gradient object to create gradient strokepattern − The pattern object to create pattern stroke.Let us now see an example to implement the strokeStyle property of canvas −Example Live Demo ... Read More

539 Views
The cords attribute of the element is used to set the coordinates of area in image map. Use the attribute with shape attribute and set the size & shape of an area.Following is the syntaxUnder the value above, you can set the following coordinates with different parameters −x1, y1, x2, y2Coordinates of the top-left and bottom-right corner of the rectangle (shape="rect")x, y, radiusCoordinates of the circle center and the radius (shape="circle")x1, y1, x2, y2, .., xn, ynCoordinates of the edges of the polygon.Let us now see an example to implement the cords attribute of the element −Example Live Demo ... Read More