Questions tagged as 'html'

2
answers

Navigation scroll in Bullets

I'm developing a one page scroll site and wanted every bullets I clicked to be active for the page I'm on. This is the example I'm doing the scroll script did not put in yet but wanted to leave the effect of clicking the bullets ready. <n...
asked by 18.02.2014 / 14:46
2
answers

What is the difference between event handlers in the DOM?

I would like to know the difference between, for example, <p onclick="fn()">click</p> , addEventListener('click', fn()); and document.getElementById().onclick = fn(); . Is there any relationship with performance...
asked by 18.11.2015 / 00:28
6
answers

Mark / Uncheck Checkbox from a button

I would like to use a button to be able to Mark / Uncheck checkbox. I have this button that calls a function, see: <button class='btn btn-large' type='button' title='Todos' id='todos' onclick='marcardesmarcar();' ><i class='icon-large...
asked by 30.05.2014 / 21:19
3
answers

View PDF in HTML page

I wonder if you can view the PDF in an HTML page. I do not want a link to open the PDF Or do I have to switch from PDF to an image?     
asked by 19.01.2015 / 16:28
3
answers

innerHTML VS innerTEXT

What's the difference between using innerHTML and innerText in Javascript? If I want to change the content of TEXT_NODE , which one should I use? For example: <p id="p1">I also wrote a book! Read it <a href="http://eloquentja...
asked by 17.09.2018 / 02:43
3
answers

With CSS to cut a text? Type a cut text effect or broken font?

I was wanting to create a text to use as <h2> in the site, I wanted the form of text to be maintained I do not want an image, because I want to keep the text semantic and accessible. Is there any way to get this result with CSS...
asked by 10.10.2018 / 20:50
3
answers

What is the best way to select an option by text and not by value in jQuery?

I have a select and would like to select a value according to the text of another field that the user clicked on. For example. When I click on a "p" tag with the text "April" I want to select the "April" text option in my select: <select...
asked by 24.02.2014 / 15:34
2
answers

Minimized pages and processing for each requisition

If I want to minify an HTML page from PHP, will I be gaining or losing more? More clearly: I want to keep formatting and practice for when editing the page, preserving the edentation. But I also worry about loading the page, since in developm...
asked by 10.06.2015 / 02:12
2
answers

Circle with curved edge

I was tasked to make a website, and I'm having a hard time doing a detail in CSS I need to make a round border that has a curved end, for you to understand better, I will show photo and post my code What I need (Photoshop) WhatIhave Iwoul...
asked by 18.05.2018 / 04:02
2
answers

Vertical text alignment with CSS

HowcanIalignthistext"Adopt the rhythm of nature: its secret is patience," vertically and horizontally within the white field? I used the following code: <ul> <li> <a> adote o ritmo da natuza: o segredo dela é...
asked by 07.03.2014 / 22:03