Hello I have been working on making a simple website.I had added a link to another page but everytime I use the link the page is blank and this error is emitted in the url about:blank#blocked.
I have used chrome and opera to test this.
Index
<body>
<div class="grid-container">
<div class="header">
<div id="headerText">
<h1>MyPortfolio</h1>
<h2>D</h2>
</div>
</div>
<div class="nav">
<div>
Skills
<a>Qualifiactions</a>
</div>
</div>
<div class="image">
</div>
<div class="aboutMe">
</div>
<div class="footer">
</div>
</div>
</div>
Other Page(skills.html)
<body >
<div class="grid-container">
<div class="header">
<div id="headerText">
<h1>Skills</h1>
<h2>D</h2>
</div>
</div>
<div class="nav">
<div>
OrderCoffe
<a>Qualifiactions</a>
</div>
</div>
<div class="image">
</div>
<div class="aboutMe">
</div>
<div class="footer">
</div>
</div>
</div>
I had my testing-new-things FTP open so I directly pasted your scripts to create two pages: index.html and skills.html and they worked as written on Chrome web browser.
About Blank is a web page built into your browser when the page has nothing to display. Perhaps check you are actually uploading your files to the correct directory- try testing them from your desktop as two .html files located in the same folder and dragging them to a new tab to display. If that doesn't work, try updating your html script with the correct syntax for creating a new document. Here is an example- remove the script tags which are used for javascript.
https://www.sitepoint.com/a-basic-html5-template/
And try basic "hello world" test documents to make sure everything is working before trying your script again.
Related
idk why this is happeing it is working in other html files but not in this one
the image is inside the templates folder and the file i am in is chat.html this is also happeing to me when i try to link to a css file
<body>
<div class = "All">
<div class="AllChats">
<div class="header">
<img src="cabin.png" alt="pfp" id="pfp">
</div>
</div>
<div class="Chat">
</div>
</div>
I have tried to copy my section in the webpage as it is but when I copied my HTML5 code one below the previous it gave me an error, Such that the image in the first is at left and the text to right and I want it reverse for second section.
<div id="showcase-container">
<div class="showcase1">
<div class="col-2">
<img class="showcase1pic" src="images/apple.jpeg">
</div>
<div class="col-2">
<div class="feature-text">
<h1 class="section-title">Yes, it even looks good on an iPhone</h1>
<p class="section-left">It is important to make sure that you are coding for responsive design.We want all of our work to function property on all devices. This is the awesome way</p>
</div>
</div> <!-- End of Feature Text -->
</div>
</div>
<div id="showcase-container">
<div class="showcase1">
<div class="col-2">
<img class="showcase1pic" src="images/apple.jpeg">
</div>
<div class="col-2">
<div class="feature-text">
<h1 class="section-title">Yes, it even looks good on an iPhone</h1>
<p class="section-left">It is important to make sure that you are coding for responsive design.We want all of our work to function property on all devices. This is the awesome way</p>
</div>
</div> <!-- End of Feature Text -->
</div>
</div>
This is the image i want to display consecutively below it
This is the output I am getting
I tried to format my HTML Selection of HTML Elements in Compact View I tried too many Visual Studio Extension but none of them working like Ctrl + J and Prettify so on
Here is the example of my code look likes
<div class="example">
<div class="section">
<div class="widget">
<div class="title">
<h3 class="title">I am a developer</h3>
</div>
</div>
</div>
</div>
I need Like this Below
<div class="example"><div class="section">
<div class="widget">
<div class="title"><h3 class="title">I am a developer</h3></div>
</div></div></div>
Like above this format there is too much code I need to format with help of any extension in VS code if possible Suggest me
Any Help is Highly Appreciated
it is always good to format your code well using indentation. This helps one identify parent and child elements especially when an element has more than to child elements.
e.g.
<div class="example">
<div class="section">
<div class="widget">
<div class="title">
<h3 class="title">I am a developer</h3>
</div>
</div>
</div>
</div>
I am using atom to write html and atom beautify to format the code. It works quite good but there is one problem that makes my code a little bit messy. Here is the code the way i want it to be:
<section id="hero">
<div class="container">
<div class="row">
<div class="col-sm-8">
<p>Hello world!</p>
</div><!--/col-->
</div><!--/row-->
</div><!--/container-->
</section><!--/hero-->
And here is the code they way atom beautify makes it:
<section id="hero">
<div class="container">
<div class="row">
<div class="col-sm-8">
<p>Hello world!</p>
</div>
<!--/col-->
</div>
<!--/row-->
</div>
<!--/container-->
</section>
<!--/hero-->
As you can see, it puts the html comment in a new line and then i have unnecessary lines in my code and also its not so easy to see the closing tag instantly. Is there any way to configure the beautifier?
I don't see a solution. The atom-beautify package allows you to configure it in a variety of ways. One of those is adding tags to be excluded from formatting. However, when I test it by adding "!--/col--" to the array, what I get is the whole back end of the snippet being unformatted.
<section id="hero">
<div class="container">
<div class="row">
<div class="col-sm-8">
<p>Hello world!</p>
</div>
<!--/col-->
</div><!--/row-->
</div><!--/container-->
</section><!--/hero-->
<polymer-dragula>
<div class="row-holder">
<div class="column">
<p>item-1</p>
</div>
<div class="column">
<p>item-2</p>
</div>
<div class="column">
<p>item-3</p>
</div>
<div class="column">
<p>item-4</p>
</div>
<div class="column">
<p>item-5</p>
</div>
</div>
</polymer-dragula>
This doesn't work.
For drag and drop i will recommend you
polymer-sortablejs
its also available
"polymer-sortablejs": "bmwalters/polymer-sortablejs#2.0-preview"
easy to handle and impliment
Perhaps you forgot to read the information mentioned in the github.
Information: Before bevacqua/dragula#470 gets merged into dragula this
element might not work correctly inside Shadow DOM.