Found 2417 Articles for HTML

HTML
  • value Attribute
  • George John
    Updated on 30-Jul-2019 22:30:26

    177 Views

    The value attribute of the element is used to set the value of the list item. Since the value is a number, it would be set only for the ol element in HTML i.e. the ordered list.Following is the syntax −Above, num is the value of the list item in an ordered list. Let us now see an example to implement the value attribute of the element −Example Live Demo Subjects Following are the subjects −    Maths    Science    English    French Remaining subjects −    Coffee    Accounts    Programming    Networking ... Read More

    HTML width Attribute

    Arjun Thakur
    Updated on 30-Jul-2019 22:30:26

    172 Views

    The width attribute of the element is only used with image and allows you to set the width of the image added using −The width attribute introduced in HTML5 and acts as the submit button. Following is the syntax −Above, width represents the width in pixels.Let us now see an example to implement the width attribute of the element wherein the width is set for input type image −Example Live Demo Register    Id −    Password −    DOB −    Telephone −    Email −     ... Read More

    HTML size Attribute

    Ankith Reddy
    Updated on 30-Jul-2019 22:30:26

    283 Views

    The size attribute of the element is used to set the width of the input. The more the width would lead to a textbox with more width. You can set the size attribute for the following input types − text, search, email, password, tel and url.Following is the syntax −Above, size_num is the width of the input you need to set in numbers. The default is 20.Let us now see an example to implement the size attribute of the element −Example Live Demo Register Id − Password − ... Read More

    HTML canvas strokeRect() Method

    George John
    Updated on 30-Jul-2019 22:30:26

    320 Views

    The strokeRect() method of the HTML canvas is used to create a rectangle on a web page. 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.strokeRect(p, q, width, height);Above, p − The x-coordinate of the upper-left corner of the rectangleq − The y-coordinate of the upper-left corner of the rectanglewidth − Width of the rectangleheight − Height of the rectangleLet us now see an example to implement the strokeStyle property of canvas ... Read More

    HTML download Attribute

    Chandu yadav
    Updated on 30-Jul-2019 22:30:26

    132 Views

    The download attribute of the element is used to set the name of the file to be downloaded which would download when user clicks on the hyperlink.Following is the syntax −The file is the name of the file set for download.Let us now see an example to implement the download attribute of the element −Example Live Demo Learning Learn these technologies with ease.... OutputNow, when you will click on let’s say “PERL”, the file will download as shown below −Above, we ... Read More

    HTML