1
Look at this example code:
<article>
<div>
<ul>
<li>
</li>
<li>
</li>
<li>
</li>
<li>
</li>
</ul>
In my code inside each li there are some to H4 and img, as you can see there are 4 li inside ul, those 4 li is the row of image with horizontal text. For each row are 4 images with text within 4 li which and within 1 ul, ie for each row is a ul with 4 li inside. My website, is a news site.
I have a piece on the website called "Latest News". Every time I add a new news I have to copy and paste the text from the top that is inside the li, at the bottom, so that the new news that add is on top, Understand?
So I wanted to know how I do so that whenever I add the "new news", it stays at the top of the page, being the first news of the row.
If I haven’t explained my problem properly, just tell me.
Note: If possible I would like to know how to solve this in HTML or CSS, which at the moment are the only language I know. If it is not possible to do this with HTML or CSS, then I would like you to tell me in which programming language this would be possible.
Good Diogenes your site it is static, IE, everything on it you have to open his Html and insert manually, then the answer is NAY, there is no way to do this only with Html and Css, you will need a programming language back-end(Java, Php, C#, etc...) to be able to 'search' the news in a database and a language front-end (Javascript and/or frameworks) to display this data.
– LeAndrade
What I would "advise" you is: as your site is news, it would be interesting you learn about wordpress, has enough material available on the Internet on it. Basically it already comes however ready, then would just insert the news by it.
– LeAndrade