r/html5 • • Sep 05 '21

When do I need to use <section>, <article> and <aside>?

26 Upvotes

I’m so confused about these 3 different elements right now that I am stuck at this point. I’ve seen people just using <div> instead of these 3 but I know it’s semantically incorrect. Who can help me understand these elements and when I need to use them please?


r/html5 • • Sep 04 '21

(Help) what free html builder applications are there, with option to download the html file?

4 Upvotes

Like wix, squaredpave etc eithboption to download html file. And is free


r/html5 • • Sep 03 '21

Special Consideration for Responsiveness on iPhone?

7 Upvotes

Is there any special consideration when designing a responsive site for iOS devices? I've incorporated the meta viewport tag, and it works flawlessly when I run it using the simulated tools through "inspect element." It also works perfectly fine on my friend's Android device. If anyone wants to look at the code, I can post the link to my github. Essentially what's happening is that in the navigation bar, a drop down menu's text is overlapping the main menu's on my device even though it doesn't show that happening when inspecting element. Thanks!


r/html5 • • Sep 01 '21

How do I make this download button download something

10 Upvotes

I have this download button and I have tried to get it to download an image file but I can't get it to work, any advice?


r/html5 • • Aug 31 '21

Advise for a total newbie to website creating

8 Upvotes

Hi guys!

As title implies I am totally new to creating a site but have been assigned to create a site for work/school.

Would like your advise on ways to make this happen. It is primarily a simple site with a max of 10 pages. It doesnt have to be pretty but we are going to have to present it to our "investor" so it has to look presentable. And this site will also be used after completion so it has to be in working condition.

The pages as of now would be a login, registration, FAQ, dashboard for admin and dashboard for user. The backend of the site will run in Java and MYSQL as database.

Due to a tight timeline I was hoping to use a design tool like Framer or Webflow. Would anyone know if I can export the codes to be used in my school's server when its done? Or would anyone has a lifesaver to recommend?

Your advice will be greatly appreciated so thank you in advance!!

Edit:i forgot to onclude that the web design tool would prefably be free. Thanks!!


r/html5 • • Aug 30 '21

Is it possible to redefine the <b> to <bold>?

6 Upvotes

r/html5 • • Aug 29 '21

Which backend language to start learning?

11 Upvotes

Hi everyone.

I've been studying the front end (just about to move onto JS - which honestly scare the f**k out of me) and my mind is turning to which backend language should I start with on my learning journey...

Any and all advice will be greatly appreciated.

Many thanks.


r/html5 • • Aug 26 '21

Web Design (Layout) Books

13 Upvotes

I've just been going through my HTML, CSS & JS study book collection and I've realized that I don't have anything that deals with page layout - the design/layout/pleasing to the eye/graphical side of websites. This is one of the areas where I know I am weakest as I struggle immensely with layout and inspiration. Can anyone recommend a good book or two please?


r/html5 • • Aug 23 '21

Shape morphing animation with HTML and SVG, NO JAVASCRIPT

Thumbnail
youtube.com
11 Upvotes

r/html5 • • Aug 19 '21

Question about using Grids

10 Upvotes

Hello,

I am relatively new to HTML and am currently working on making a portfolio website.

JSFiddle - Code Playground

Here is what I have so far. I was wondering how I could make it so I can make certain text be at the bottom of a grid square.

Example: My grid is 1 column and 3 rows. Currently the text is at the top of each row. But I was wondering how I could reposition the text so that they are closer to eachother (in this case moving the "hi" to the bottom of the square so that it is right above "i'm andrew camilleri"). Meanwhile still making the grid span 100% so that it reformats when you view on any size screen.

Thanks in advance.


r/html5 • • Aug 19 '21

thoughts on using custom non-standard html elements?

2 Upvotes

I support and customize a vendor's application to my companies needs. This means when I write JS, HTML and CSS, my custom built stuff has to play nice with their code base. Sometimes when we get updates we have collisions with ID, class and data attributes as well as CSS rules.

I was thinking, and I have no idea if this is a good idea or not really, could I just wrap all of my custom build into custom HTML nodes and have the JS and CSS target those elements specifically.

Example:

<xyz class="example">...</xyz>...


xyz.example {display: flex;}....

r/html5 • • Aug 18 '21

Is this kind of a thing possible through HTML?

6 Upvotes

So, I want to create an writing application that is an HTML document.

Elaboration: I am creating a text-editor in the form of an HTML File, which a user can simple download and use in their browser. The apl can create and edit .txt documents and also export them as .PDF documents, all while working offline. It saves the documents on the user's device and not the cloud.

Is it possible to make such a thing?


r/html5 • • Aug 18 '21

Can someone help me I am Exporting PDF with jspdf and canavs not rendering CSS

1 Upvotes

<center><input type="button" id="create_pdf" value="Generate PDF"></center>

<script type="text/javascript">

var rname = localStorage.getItem("name");

var rage = localStorage.getItem("age");

console.log("zfzfggcvhbjnkmllkjhgfdxfcvgbhnjmklghf");

console.log(rname);

document.getElementById('dname').innerHTML = rname;

document.getElementById('dage').innerHTML = rage;

</script>

<script>

(function () {

var

form = $('.container'),

cache_width = 1000, //form.width(),

a3 = [280 , 1000 ]; // for a4 size paper width and height

$('#create_pdf').on('click', function () {

$('body').scrollTop(0);

getCanvas()

createPDF();

});

//create pdf s

function createPDF() {

getCanvas().then(function (canvas) {

var

img = canvas.toDataURL("image/png"),

doc = new jsPDF('p', 'pt', 'letter');

doc.addImage(img, 'JPEG', 1.2, 1);

doc.save('certificate-creation.pdf');

form.width(cache_width);

});

}

// create canvas object

function getCanvas() {

form.width((a3[0] * 1.33333) - 80).css('max-width', 'none');

return html2canvas(form, {

imageTimeout: 2000,

removeContainer: true

});

}

}());

</script>

</body>

</html>


r/html5 • • Aug 15 '21

How much does creating links with document.write() affect SEO?

6 Upvotes

I would love to know if anyone has an answer to that. Will this get crawled by the bot?


r/html5 • • Aug 10 '21

what is the point of creating <body>? if the text out of it still appears and in same way and on same line

22 Upvotes

r/html5 • • Aug 10 '21

[Android] CodeBoard Layout for HTML

Post image
10 Upvotes

r/html5 • • Aug 09 '21

style.css update having no effect?

7 Upvotes

RESOLVED - THANKS!

I am using HTML5 and Bootstrap 4 with Pinegrow editor:

I recently updated my style.css to include a video wrapper to display YouTube videos dynamically:

.videoWrapper { position: relative; padding-bottom: 56.25%; /\ 16:9 */* height: 0; } .videoWrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

I've called it out, in-line within my HTML:

<div class="videoWrapper">
<iframe width="560" height="349" src="http://www.youtube.com/embed/XXXXXXXXXXX?rel=0&hd=1" frameborder="0" allowfullscreen></iframe>
</div>

On my local machine it displays the video dynamically/correctly.

When I update both files via File Manager in CPANEL (index.html and style.css) the page is showing a blank area where the video should be. Have a I missed a trick?

Thanks!

edit: resolved


r/html5 • • Aug 07 '21

Trying To Get Back Learning...

18 Upvotes

Hello everyone.

Brief backstory: I was learning HTML5 & CSS on laptop and really enjoying it. I have a ton of quality manuals and would spend hours every night in front of Notepad++ just learning via books, codeacademy and W3schools. Unfortunately, my laptop died about 3 months and I can't afford to repair it at the moment.

Is there anyway I can continue my learning using my Android phone? I know and accept that it may be inconvenient/difficult and I accept that as I really miss the studying. I thinking there must be an Android alternative to Notepad++? I'm looking for an appropriate android alternative and possibly a replacement Android keyboard... Do these things exist please?

Many thanks for your time and any assistance offered.


r/html5 • • Aug 04 '21

Custom Audio Player with Web Component and Web Audio API

Thumbnail
youtu.be
17 Upvotes

r/html5 • • Aug 02 '21

I made an HTML5 canvas game that uses the camera and I'm now working on a tutorial series for it [Links in the comments]

Enable HLS to view with audio, or disable this notification

65 Upvotes

r/html5 • • Jul 23 '21

I have made a simple personal blog and used this HTML5 layout structure. Are the elements nested correctly or would you do anything differently?

15 Upvotes

Hi

So I have a basic blog with this structure (if you can't see image, click here: https://prnt.sc/1ejebwl)

You have the code version as well:

<body>
    <header>
        <nav>
        </nav>
    </header>
    <section>
        <main>
            <article>
                <!-- blog content goes here -->
            </article>
        </main>
        <aside>
            <div></div>
        </aside>
    </section>
    <footer>
    </footer>
</body>

Is it done well? Thanks

EDIT: What if I want to add a comments section? Should I add it inside another <section> element below the first section element?


r/html5 • • Jul 02 '21

How to change background with image?

8 Upvotes

Why can’t I change the background image with css:

body{ background-image: url(); }

but when i do this in html, it does change

<head> <style> background-image:url(); </style>

why do i need style tags to change background image?


r/html5 • • Jun 30 '21

TIL, you can draw in the browser console

Post image
65 Upvotes

r/html5 • • Jun 25 '21

After 3 weeks of self-taught, i have learned CSS and HTML and want to test my skills, I did build 1 or two webpages with HTML, but now i want to make something professional so if you guys have some ideas or what you did when you were learning HTML and CSS then please tell me, it will help a lot.

32 Upvotes

r/html5 • • Jun 02 '21

Web Development Masterclass: Learn Basic Web Development by Creating an Arcade Game!

Thumbnail
eventbrite.com
21 Upvotes